public interface DataStructureBean extends MaintainableBean, ConstrainableBean
DEFAULT_VERSION
Modifier and Type | Method and Description |
---|---|
AttributeBean |
getAttribute(java.lang.String id)
Returns the attribute with the given id, returns
null if no such attribute exists. |
AttributeListBean |
getAttributeList()
Returns the Attribute List.
|
java.util.List<AttributeBean> |
getAttributes()
Returns the attributes that belong to this DataStructure.
|
ComponentBean |
getComponent(java.lang.String id)
Returns the component with the given id.
|
java.util.List<ComponentBean> |
getComponents()
Returns a list of all components that belong to this DSD
|
java.util.List<AttributeBean> |
getDatasetAttributes()
Returns a subset of the DataStructure's attributes.
|
DimensionBean |
getDimension(java.lang.String id)
Returns the dimension with the given Id.
|
AttributeBean |
getDimensionGroupAttribute(java.lang.String id)
Returns the series attribute with the given id, returns
null if no such attribute exists. |
java.util.List<AttributeBean> |
getDimensionGroupAttributes()
Returns a subset of the DataStructure's attributes.
|
DimensionListBean |
getDimensionList()
Returns the Dimension List.
|
java.util.List<DimensionBean> |
getDimensions(SDMX_STRUCTURE_TYPE... include)
Returns the list of dimensions that belong to this DataStructure.
|
DimensionBean |
getFrequencyDimension()
Returns the dimension that is playing the role of frequency.
|
GroupBean |
getGroup(java.lang.String groupId)
Gets the group with the given id that belongs to this DataStructure.
|
AttributeBean |
getGroupAttribute(java.lang.String id)
Returns the group attribute with the given id, returns
null if no such attribute exists. |
java.util.List<AttributeBean> |
getGroupAttributes()
Returns a subset of the DataStructure's attributes.
|
java.util.List<AttributeBean> |
getGroupAttributes(java.lang.String groupId,
boolean includeDimensionGroups)
Returns a subset of the DataStructure's attributes.
|
java.util.List<GroupBean> |
getGroups()
Returns the list of groups that belongs to this DataStructure.
|
MeasureListBean |
getMeasureList()
Returns the Measure List.
|
DataStructureMutableBean |
getMutableInstance()
Returns a representation of itself in a bean which can be modified, modifications to the mutable bean
are not reflected in the instance of the MaintainableBean.
|
AttributeBean |
getObservationAttribute(java.lang.String id)
Returns the observation attribute with the given id, returns
null if no such attribute exists. |
java.util.List<AttributeBean> |
getObservationAttributes()
Returns a subset of the DataStructure's attributes.
|
java.util.List<AttributeBean> |
getObservationAttributes(java.lang.String crossSectionalConcept)
Returns a subset of the DataStructure's attributes.
|
PrimaryMeasureBean |
getPrimaryMeasure()
Gets the primary measure that belongs to this DataStructure.
|
java.util.List<AttributeBean> |
getSeriesAttributes(java.lang.String crossSectionalConcept)
Returns a subset of the DataStructure's attributes.
|
DataStructureBean |
getStub(java.net.URL actualLocation,
boolean isServiceUrl)
Returns a stub reference of itself.
|
DimensionBean |
getTimeDimension()
Gets the time dimension that belongs to this DataStructure.
|
boolean |
hasFrequencyDimension()
Returns true if there is a dimension that is playing the role of frequency.
|
boolean |
isCompatible(SDMX_SCHEMA schemaVersion)
Returns false if this data structure is not compatible with the target schema version.
|
addAnnotations, getAgencyId, getEndDate, getServiceURL, getStartDate, getStructureURL, getVersion, isExternalReference, isFinal
getDescription, getDescriptions, getName, getNames
asReference, getAllTextTypes, getFullIdPath, getId, getUri, getUrn
getAnnotations, getAnnotationsByTitle, getAnnotationsByType, hasAnnotationType
getIdentifiableComposites, getIdentifiableParent, getMaintainableParent, getParent
deepEquals, getComposites, getComposites, getCrossReferences, getParent, getStructureType
getCrossReferencedConstrainables
boolean isCompatible(SDMX_SCHEMA schemaVersion)
schemaVersion
- DimensionListBean getDimensionList()
AttributeListBean getAttributeList()
MeasureListBean getMeasureList()
java.util.List<DimensionBean> getDimensions(SDMX_STRUCTURE_TYPE... include)
include
- - an optional parameter of dimension types to include, types not specified will be excluded - the list must be from one of the following:
DimensionBean getFrequencyDimension()
null
if no dimension is playing the role of frequency.boolean hasFrequencyDimension()
DimensionBean getDimension(java.lang.String id)
conceptId
- ComponentBean getComponent(java.lang.String id)
conceptId
- java.util.List<ComponentBean> getComponents()
java.util.List<GroupBean> getGroups()
GroupBean getGroup(java.lang.String groupId)
null
will be returned.groupId
- DimensionBean getTimeDimension()
null
is returnedPrimaryMeasureBean getPrimaryMeasure()
java.util.List<AttributeBean> getAttributes()
java.util.List<AttributeBean> getDatasetAttributes()
java.util.List<AttributeBean> getGroupAttributes()
java.util.List<AttributeBean> getGroupAttributes(java.lang.String groupId, boolean includeDimensionGroups)
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 idjava.lang.IllegalArgumentException
- if the groupId does not match any groups for this Data Structurejava.util.List<AttributeBean> getDimensionGroupAttributes()
java.util.List<AttributeBean> getSeriesAttributes(java.lang.String crossSectionalConcept)
java.util.List<AttributeBean> getObservationAttributes()
java.util.List<AttributeBean> getObservationAttributes(java.lang.String crossSectionalConcept)
AttributeBean getAttribute(java.lang.String id)
null
if no such attribute exists.id
- AttributeBean getGroupAttribute(java.lang.String id)
null
if no such attribute exists.id
- AttributeBean getDimensionGroupAttribute(java.lang.String id)
null
if no such attribute exists.id
- AttributeBean getObservationAttribute(java.lang.String id)
null
if no such attribute exists.id
- DataStructureBean getStub(java.net.URL actualLocation, boolean isServiceUrl)
getStub
in interface MaintainableBean
actualLocation
- the URL indicating where the full structure can be returned fromisServiceUrl
- if true this URL will be present on the serviceURL attribute, otherwise it will be treated as a structureURL attributeDataStructureMutableBean getMutableInstance()
getMutableInstance
in interface MaintainableBean