public class HierarchicalCodeBeanImpl extends IdentifiableBeanImpl implements HierarchicalCodeBean
Constructor and Description |
---|
HierarchicalCodeBeanImpl(CodeRefMutableBean bean,
SdmxStructureBean parent) |
HierarchicalCodeBeanImpl(org.sdmx.resources.sdmxml.schemas.v20.structure.CodeRefType codeRef,
SdmxStructureBean parent) |
HierarchicalCodeBeanImpl(org.sdmx.resources.sdmxml.schemas.v21.structure.HierarchicalCodeType codeRef,
SdmxStructureBean parent) |
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.lang.String |
getCodeId()
Returns the code id of the code being referenced, to be used in conjunction with the codelist alias ref
|
java.lang.String |
getCodelistAliasRef()
Returns the codelist alias used to resolve this codelist reference, returns null if the reference is achieved by using the
CrossReferenceBean (getCodeReference() returns a value)
|
CrossReferenceBean |
getCodeReference()
Returns the code referenced by this CodeRef, this will never be null as it will be resolved from the codelist alias and code id
|
java.util.List<HierarchicalCodeBean> |
getCodeRefs()
Returns any child HierarchicalCodeBean beans as a copy of the underlying list.
|
LevelBean |
getLevel(boolean acceptDefault) |
int |
getLevelInHierarchy()
Returns the level of this code ref bean in the hierarchy, 1 indexed
|
SdmxDate |
getValidFrom() |
SdmxDate |
getValidTo() |
asReference, equals, getAllTextTypes, getFullIdPath, getId, getUri, getUrn, hashCode, toString
getAnnotations, getAnnotationsByTitle, getAnnotationsByType, hasAnnotationType
getIdentifiableComposites, getIdentifiableParent, getMaintainableParent, getParent, getStructureType
getComposites, getComposites, getCrossReferences, getParent
asReference, getAllTextTypes, getFullIdPath, getId, getUri, getUrn
getAnnotations, getAnnotationsByTitle, getAnnotationsByType, hasAnnotationType
getIdentifiableComposites, getIdentifiableParent, getMaintainableParent, getParent
getComposites, getComposites, getCrossReferences, getParent, getStructureType
public HierarchicalCodeBeanImpl(CodeRefMutableBean bean, SdmxStructureBean parent)
public HierarchicalCodeBeanImpl(org.sdmx.resources.sdmxml.schemas.v21.structure.HierarchicalCodeType codeRef, SdmxStructureBean parent)
public HierarchicalCodeBeanImpl(org.sdmx.resources.sdmxml.schemas.v20.structure.CodeRefType codeRef, SdmxStructureBean parent)
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> getCodeRefs()
HierarchicalCodeBean
getCodeRefs
in interface HierarchicalCodeBean
public int getLevelInHierarchy()
HierarchicalCodeBean
getLevelInHierarchy
in interface HierarchicalCodeBean
public LevelBean getLevel(boolean acceptDefault)
getLevel
in interface HierarchicalCodeBean
acceptDefault
- - if this code reference was not explicitly assigned a level, but the hierarchy is leveled then this code
reference will default the level to that of the level in the same hierarchical level. If true then will pass out the defaulted level if the
level was not explicitly set on creation, if false, then will return the level if it was explicitly set, and will return null if it wasn't.public CrossReferenceBean getCodeReference()
HierarchicalCodeBean
getCodeReference
in interface HierarchicalCodeBean
public java.lang.String getCodelistAliasRef()
HierarchicalCodeBean
getCodelistAliasRef
in interface HierarchicalCodeBean
public java.lang.String getCodeId()
HierarchicalCodeBean
getCodeId
in interface HierarchicalCodeBean
public SdmxDate getValidFrom()
getValidFrom
in interface HierarchicalCodeBean
public SdmxDate getValidTo()
getValidTo
in interface HierarchicalCodeBean