public class DataStructureBeanImpl extends MaintainableBeanImpl implements DataStructureBean
DEFAULT_VERSION
Constructor and Description |
---|
DataStructureBeanImpl(DataStructureMutableBean bean) |
DataStructureBeanImpl(org.sdmx.resources.sdmxml.schemas.v21.structure.DataStructureType bean) |
DataStructureBeanImpl(org.sdmx.resources.sdmxml.schemas.v20.structure.KeyFamilyType bean) |
DataStructureBeanImpl(org.sdmx.resources.sdmxml.schemas.v10.xmlbeans.structure.KeyFamilyType bean) |
Modifier and Type | Method and Description |
---|---|
boolean |
deepEquals(SDMXBean bean,
boolean includeFinalProperties)
Returns true if this SdmxBean equals the given bean in every respect (except for the validTo property of a maintainable artefact, this is not taken into consideration)
This method calls deepEquals on any SdmxBean composites.
|
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 conceptId)
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<CrossReferenceBean> |
getCrossReferencedConstrainables()
Returns a reference to any referenced structures that can also be constrained, examples are:
Registration would return reference to a provision agreement
Provision Agreement would return a reference to a dataflow and a Data Provider
Dataflow would return a reference to a data structure
Data Structure would return null
(example a provision agreement would return a reference to a dataflow)
|
java.util.List<AttributeBean> |
getDatasetAttributes()
Returns a subset of the DataStructure's attributes.
|
DimensionBean |
getDimension(java.lang.String conceptId)
Returns the dimension with the given Id.
|
AttributeBean |
getDimensionGroupAttribute(java.lang.String conceptId)
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... includeTypes)
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 conceptId)
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 conceptId)
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, compareTo, getAgencyId, getEndDate, getServiceURL, getStartDate, getStructureURL, getVersion, isExternalReference, isFinal
getAllTextTypes, getDescription, getDescriptions, getName, getNames
asReference, equals, getFullIdPath, getId, getUri, getUrn, hashCode, toString
getAnnotations, getAnnotationsByTitle, getAnnotationsByType, hasAnnotationType
getIdentifiableComposites, getIdentifiableParent, getMaintainableParent, getParent, getStructureType
getComposites, getComposites, getCrossReferences, getParent
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
getComposites, getComposites, getCrossReferences, getParent, getStructureType
public DataStructureBeanImpl(DataStructureMutableBean bean)
public DataStructureBeanImpl(org.sdmx.resources.sdmxml.schemas.v21.structure.DataStructureType bean)
public DataStructureBeanImpl(org.sdmx.resources.sdmxml.schemas.v20.structure.KeyFamilyType bean)
public DataStructureBeanImpl(org.sdmx.resources.sdmxml.schemas.v10.xmlbeans.structure.KeyFamilyType bean)
public boolean deepEquals(SDMXBean bean, boolean includeFinalProperties)
SDMXBean
deepEquals
in interface SDMXBean
deepEquals
in class SDMXBeanImpl
bean
- if null, then false will be returnedincludeFinalProperties
- - if true, then this method will check every single property from this bean is
equal to the passed in bean. If false, then this method will ignore the following properties:
public boolean isCompatible(SDMX_SCHEMA schemaVersion)
DataStructureBean
isCompatible
in interface DataStructureBean
public DataStructureBean getStub(java.net.URL actualLocation, boolean isServiceUrl)
DataStructureBean
getStub
in interface MaintainableBean
getStub
in interface DataStructureBean
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 attributepublic java.util.List<CrossReferenceBean> getCrossReferencedConstrainables()
ConstrainableBean
getCrossReferencedConstrainables
in interface ConstrainableBean
public DataStructureMutableBean getMutableInstance()
DataStructureBean
getMutableInstance
in interface MaintainableBean
getMutableInstance
in interface DataStructureBean
public DimensionListBean getDimensionList()
DataStructureBean
getDimensionList
in interface DataStructureBean
public AttributeListBean getAttributeList()
DataStructureBean
getAttributeList
in interface DataStructureBean
public MeasureListBean getMeasureList()
DataStructureBean
getMeasureList
in interface DataStructureBean
public java.util.List<ComponentBean> getComponents()
DataStructureBean
getComponents
in interface DataStructureBean
public AttributeBean getAttribute(java.lang.String id)
DataStructureBean
null
if no such attribute exists.getAttribute
in interface DataStructureBean
public java.util.List<AttributeBean> getSeriesAttributes(java.lang.String crossSectionalConcept)
DataStructureBean
getSeriesAttributes
in interface DataStructureBean
public java.util.List<AttributeBean> getObservationAttributes(java.lang.String crossSectionalConcept)
DataStructureBean
getObservationAttributes
in interface DataStructureBean
public java.util.List<DimensionBean> getDimensions(SDMX_STRUCTURE_TYPE... includeTypes)
DataStructureBean
getDimensions
in interface DataStructureBean
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 DimensionBean getDimension(java.lang.String conceptId)
DataStructureBean
getDimension
in interface DataStructureBean
public DimensionBean getFrequencyDimension()
DataStructureBean
null
if no dimension is playing the role of frequency.getFrequencyDimension
in interface DataStructureBean
public boolean hasFrequencyDimension()
DataStructureBean
hasFrequencyDimension
in interface DataStructureBean
public ComponentBean getComponent(java.lang.String conceptId)
DataStructureBean
getComponent
in interface DataStructureBean
public java.util.List<GroupBean> getGroups()
DataStructureBean
getGroups
in interface DataStructureBean
public GroupBean getGroup(java.lang.String groupId)
DataStructureBean
null
will be returned.getGroup
in interface DataStructureBean
public DimensionBean getTimeDimension()
DataStructureBean
null
is returnedgetTimeDimension
in interface DataStructureBean
public PrimaryMeasureBean getPrimaryMeasure()
DataStructureBean
getPrimaryMeasure
in interface DataStructureBean
public java.util.List<AttributeBean> getAttributes()
DataStructureBean
getAttributes
in interface DataStructureBean
public java.util.List<AttributeBean> getDatasetAttributes()
DataStructureBean
getDatasetAttributes
in interface DataStructureBean
public java.util.List<AttributeBean> getGroupAttributes(java.lang.String groupId, boolean includeDimensionGroups)
DataStructureBean
getGroupAttributes
in interface DataStructureBean
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<AttributeBean> getGroupAttributes()
DataStructureBean
getGroupAttributes
in interface DataStructureBean
public java.util.List<AttributeBean> getDimensionGroupAttributes()
DataStructureBean
getDimensionGroupAttributes
in interface DataStructureBean
public java.util.List<AttributeBean> getObservationAttributes()
DataStructureBean
getObservationAttributes
in interface DataStructureBean
public AttributeBean getGroupAttribute(java.lang.String conceptId)
DataStructureBean
null
if no such attribute exists.getGroupAttribute
in interface DataStructureBean
public AttributeBean getDimensionGroupAttribute(java.lang.String conceptId)
DataStructureBean
null
if no such attribute exists.getDimensionGroupAttribute
in interface DataStructureBean
public AttributeBean getObservationAttribute(java.lang.String conceptId)
DataStructureBean
null
if no such attribute exists.getObservationAttribute
in interface DataStructureBean