public class DataStructureSuperBeanImpl extends MaintainableSuperBeanImpl implements DataStructureSuperBean
Constructor and Description |
---|
DataStructureSuperBeanImpl(DataStructureBean dataStructure,
java.util.List<DimensionSuperBean> dimensions,
java.util.List<AttributeSuperBean> attributes,
PrimaryMeasureSuperBean primaryMeasure) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeAttachmentGroup(java.lang.String id)
Returns the attribute attachment group for the specified attribute.
|
java.util.List<AttributeSuperBean> |
getAttributes()
Returns a list of all the attributes in this DataStructure.
|
DataStructureBean |
getBuiltFrom()
Returns the bean that was used to build this superBean
|
CodelistSuperBean |
getCodelistByComponentId(java.lang.String conceptId)
Returns a referenced codelist from a component with the given id.
|
ComponentSuperBean |
getComponentById(java.lang.String conceptId)
Returns a component from an id.
|
java.util.Set<ComponentSuperBean> |
getComponents()
Returns a set of all the components used within this DataStructure.
|
java.util.Set<MaintainableBean> |
getCompositeBeans()
Returns a set of beans that were used to build this superBean
|
java.util.List<AttributeSuperBean> |
getDatasetAttributes()
Returns a subset of the key family attributes.
|
DimensionSuperBean |
getDimensionById(java.lang.String conceptId)
Returns a dimension, that is referenced by the specified id.
|
java.util.List<DimensionSuperBean> |
getDimensions()
Returns a list of all the dimensions in the DataStructure.
|
java.util.List<DimensionSuperBean> |
getDimensions(SDMX_STRUCTURE_TYPE... includeTypes)
Returns the list of dimensions that belong to this DataStructure.
|
GroupSuperBean |
getGroup(java.lang.String id)
Returns the group with the given id.
|
java.util.Set<AttributeSuperBean> |
getGroupAttributes()
Returns a set of all the attributes attached to any group in the DataStructure.
|
java.util.List<AttributeSuperBean> |
getGroupAttributes(java.lang.String groupId,
boolean includeDimensionGroups)
Returns a subset of the DataStructure attributes.
|
java.lang.String |
getGroupId(java.util.Set<java.lang.String> dimensions)
Returns the group identifier that matches the dimensions set supplied .
|
java.util.List<GroupSuperBean> |
getGroups()
Returns all the groups in the DataStructure.
|
java.util.List<AttributeSuperBean> |
getObservationAttributes()
Returns a subset of the DataStructure attributes.
|
PrimaryMeasureSuperBean |
getPrimaryMeasure()
Returns the primary measure for this DataStructure.
|
java.util.Set<CodelistSuperBean> |
getReferencedCodelists()
Returns a set of all the codelists referenced within this DataStructure.
|
java.util.Set<ConceptSuperBean> |
getReferencedConcepts()
Returns a set of all the concepts referenced within this DataStructure.
|
java.util.List<AttributeSuperBean> |
getSeriesAttributes()
Returns a subset of the DataStructure attributes.
|
DimensionSuperBean |
getTimeDimension()
Returns the time dimension from this DataStructure.
|
getAgencyId, getVersion, isFinal
getDescription, getDescription, getDescriptions, getName, getName, getNames
equals, getId, getUrn, hashCode, toString
getAnnotationByTitle, getAnnotationByType, getAnnotationByUrl, getAnnotations, hasAnnotations
getAgencyId, getVersion, isFinal
getDescription, getDescription, getDescriptions, getName, getName, getNames
getId, getUrn
getAnnotationByTitle, getAnnotationByType, getAnnotationByUrl, getAnnotations, hasAnnotations
public DataStructureSuperBeanImpl(DataStructureBean dataStructure, java.util.List<DimensionSuperBean> dimensions, java.util.List<AttributeSuperBean> attributes, PrimaryMeasureSuperBean primaryMeasure)
public DataStructureBean getBuiltFrom()
SuperBean
getBuiltFrom
in interface MaintainableSuperBean
getBuiltFrom
in interface SuperBean
getBuiltFrom
in interface DataStructureSuperBean
getBuiltFrom
in class MaintainableSuperBeanImpl
public java.util.Set<CodelistSuperBean> getReferencedCodelists()
DataStructureSuperBean
getReferencedCodelists
in interface DataStructureSuperBean
public java.util.Set<ComponentSuperBean> getComponents()
DataStructureSuperBean
getComponents
in interface DataStructureSuperBean
public java.util.Set<ConceptSuperBean> getReferencedConcepts()
DataStructureSuperBean
getReferencedConcepts
in interface DataStructureSuperBean
public CodelistSuperBean getCodelistByComponentId(java.lang.String conceptId)
DataStructureSuperBean
getCodelistByComponentId
in interface DataStructureSuperBean
conceptId
- the id by which to refer to the codelist.public ComponentSuperBean getComponentById(java.lang.String conceptId)
DataStructureSuperBean
getComponentById
in interface DataStructureSuperBean
conceptId
- the id by which to refer to the component.public DimensionSuperBean getTimeDimension()
DataStructureSuperBean
getTimeDimension
in interface DataStructureSuperBean
public DimensionSuperBean getDimensionById(java.lang.String conceptId)
DataStructureSuperBean
getDimensionById
in interface DataStructureSuperBean
conceptId
- the id that the dimension has reference topublic java.util.List<DimensionSuperBean> getDimensions()
DataStructureSuperBean
getDimensions
in interface DataStructureSuperBean
public java.util.List<DimensionSuperBean> getDimensions(SDMX_STRUCTURE_TYPE... includeTypes)
DataStructureSuperBean
getDimensions
in interface DataStructureSuperBean
includeTypes
- an optional parameter of dimension types to include, types not specified will be excluded - the list must be from one of the following:
public java.util.List<AttributeSuperBean> getAttributes()
DataStructureSuperBean
getAttributes
in interface DataStructureSuperBean
public PrimaryMeasureSuperBean getPrimaryMeasure()
DataStructureSuperBean
getPrimaryMeasure
in interface DataStructureSuperBean
public java.util.List<AttributeSuperBean> getDatasetAttributes()
DataStructureSuperBean
getDatasetAttributes
in interface DataStructureSuperBean
public java.util.Set<AttributeSuperBean> getGroupAttributes()
DataStructureSuperBean
getGroupAttributes
in interface DataStructureSuperBean
public java.util.List<AttributeSuperBean> getGroupAttributes(java.lang.String groupId, boolean includeDimensionGroups)
DataStructureSuperBean
getGroupAttributes
in interface DataStructureSuperBean
groupId
- the group id of the group to return the attributes forincludeDimensionGroups
- if true, this will include attributes which are attached to a dimension group, which group the same dimensions as the
group with the given idpublic java.util.List<GroupSuperBean> getGroups()
DataStructureSuperBean
getGroups
in interface DataStructureSuperBean
public GroupSuperBean getGroup(java.lang.String id)
DataStructureSuperBean
getGroup
in interface DataStructureSuperBean
public java.util.List<AttributeSuperBean> getObservationAttributes()
DataStructureSuperBean
getObservationAttributes
in interface DataStructureSuperBean
public java.util.List<AttributeSuperBean> getSeriesAttributes()
DataStructureSuperBean
getSeriesAttributes
in interface DataStructureSuperBean
public java.lang.String getAttributeAttachmentGroup(java.lang.String id)
DataStructureSuperBean
getAttributeAttachmentGroup
in interface DataStructureSuperBean
id
- id of the attributepublic java.util.Set<MaintainableBean> getCompositeBeans()
SuperBean
getCompositeBeans
in interface SuperBean
getCompositeBeans
in class SuperBeanImpl
public java.lang.String getGroupId(java.util.Set<java.lang.String> dimensions)
DataStructureSuperBean
getGroupId
in interface DataStructureSuperBean
dimensions
- a set containing the complete collection of dimensions to be matched with a group