public class HierarchyBeanImpl extends NameableBeanImpl implements HierarchyBean
Constructor and Description |
---|
HierarchyBeanImpl(HierarchicalCodelistBean parent,
HierarchyMutableBean hierarchy) |
HierarchyBeanImpl(HierarchicalCodelistBean parent,
org.sdmx.resources.sdmxml.schemas.v21.structure.HierarchyType hierarchy) |
HierarchyBeanImpl(HierarchicalCodelistBean parent,
org.sdmx.resources.sdmxml.schemas.v20.structure.HierarchyType hierarchy) |
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.
|
java.util.List<HierarchicalCodeBean> |
getHierarchicalCodeBeans() |
LevelBean |
getLevel() |
LevelBean |
getLevelAtPosition(int levelPos)
Returns the LevelBean at the position indicated, by recursing the LevelBean hierarchy of this Hierarchy bean, returns null if there is no level
|
HierarchicalCodelistBean |
getMaintainableParent()
Recurses up the parent tree to find the maintainable parent.
|
boolean |
hasFormalLevels()
If true this indicates that the hierarchy has formal levels.
|
getAllTextTypes, getDescription, getDescriptions, getName, getNames
asReference, equals, getFullIdPath, getId, getUri, getUrn, hashCode, toString
getAnnotations, getAnnotationsByTitle, getAnnotationsByType, hasAnnotationType
getIdentifiableComposites, getIdentifiableParent, getParent, getStructureType
getComposites, getComposites, getCrossReferences, getParent
getDescription, getDescriptions, getName, getNames
asReference, getAllTextTypes, getFullIdPath, getId, getUri, getUrn
getAnnotations, getAnnotationsByTitle, getAnnotationsByType, hasAnnotationType
getIdentifiableComposites, getIdentifiableParent, getParent
getComposites, getComposites, getCrossReferences, getParent, getStructureType
public HierarchyBeanImpl(HierarchicalCodelistBean parent, HierarchyMutableBean hierarchy)
public HierarchyBeanImpl(HierarchicalCodelistBean parent, org.sdmx.resources.sdmxml.schemas.v21.structure.HierarchyType hierarchy)
public HierarchyBeanImpl(HierarchicalCodelistBean parent, org.sdmx.resources.sdmxml.schemas.v20.structure.HierarchyType hierarchy)
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 java.util.List<HierarchicalCodeBean> getHierarchicalCodeBeans()
getHierarchicalCodeBeans
in interface HierarchyBean
public LevelBean getLevel()
getLevel
in interface HierarchyBean
public LevelBean getLevelAtPosition(int levelPos)
HierarchyBean
getLevelAtPosition
in interface HierarchyBean
public boolean hasFormalLevels()
HierarchyBean
hasFormalLevels
in interface HierarchyBean
public HierarchicalCodelistBean getMaintainableParent()
SdmxStructureBean
getMaintainableParent
in interface SdmxStructureBean
getMaintainableParent
in interface HierarchyBean
getMaintainableParent
in class SdmxStructureBeanImpl