@Configurable(preConstruction=true) public class StructureWorkspaceImpl extends java.lang.Object implements StructureWorkspace
Constructor and Description |
---|
StructureWorkspaceImpl(SdmxBeans beans)
Creates a workspace
|
StructureWorkspaceImpl(SdmxBeans beans,
IdentifiableRetrievalManager retrievalManager,
boolean retrieveCrossRefefences,
boolean retrieveAgencies,
int resolutionDepth)
Creates a workspace, gets all cross referenced objects using the retrieval manager (if it is not null)
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<IdentifiableBean,java.util.Set<IdentifiableBean>> |
getCrossReferences()
Returns the cross references, if it is null then the references were never resolved as there was no retrieval
manager provided on the construction of this class
|
HeaderBean |
getHeader()
Returns the header that was present with the file
|
SdmxBeans |
getStructureBeans(boolean includeCrossReferences)
Returns structure beans, if include cross references is set to true then it will also include
any cross referenced beans - if there were no cross references supplied, then an exception will
be thrown
|
StructureWorkspace |
getSubsetWorkspace(StructureReferenceBean... query)
Returns a subset of the workspace, based on the query objects.
|
SuperBeans |
getSuperBeans()
Returns the super beans.
|
void |
mergeWorkspace(StructureWorkspace workspace)
Merges a structure workspace into the current workspace.
|
void |
writeStructures(SDMX_SCHEMA structureType,
java.io.OutputStream out,
boolean includeCrossReferences)
Writes all of the structures in the workspace to the specified OutputStream as a SDMX Structure document
|
public StructureWorkspaceImpl(SdmxBeans beans)
beans
- public StructureWorkspaceImpl(SdmxBeans beans, IdentifiableRetrievalManager retrievalManager, boolean retrieveCrossRefefences, boolean retrieveAgencies, int resolutionDepth)
beans
- - the beans to populate the workspace withretrievalManager
- - this will be used to retrieve all the cross references if it is not nullretrieveAgencies
- - this will also retrieve all the agencies if truepublic void writeStructures(SDMX_SCHEMA structureType, java.io.OutputStream out, boolean includeCrossReferences)
StructureWorkspace
writeStructures
in interface StructureWorkspace
public HeaderBean getHeader()
getHeader
in interface StructureWorkspace
public java.util.Map<IdentifiableBean,java.util.Set<IdentifiableBean>> getCrossReferences()
getCrossReferences
in interface StructureWorkspace
public SdmxBeans getStructureBeans(boolean includeCrossReferences)
StructureWorkspace
getStructureBeans
in interface StructureWorkspace
public SuperBeans getSuperBeans()
StructureWorkspace
getSuperBeans
in interface StructureWorkspace
public StructureWorkspace getSubsetWorkspace(StructureReferenceBean... query)
StructureWorkspace
getSubsetWorkspace
in interface StructureWorkspace
public void mergeWorkspace(StructureWorkspace workspace)
StructureWorkspace
mergeWorkspace
in interface StructureWorkspace