|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sdmx.resources.sdmxml.schemas.v2_1.common.AnnotableType
org.sdmx.resources.sdmxml.schemas.v2_1.structure.IdentifiableType
org.sdmx.resources.sdmxml.schemas.v2_1.structure.HierarchicalCodeBaseType
org.sdmx.resources.sdmxml.schemas.v2_1.structure.HierarchicalCodeType
public class HierarchicalCodeType
HierarchicalCodeType describes the structure of a hierarchical code. A hierarchical code provides for a reference to a code that is referenced within the hierarchical code list via either a complete reference to a code through either a URN or full set of reference fields, or a local reference which utilizes the included codelist reference alias and the identification of a code from the list. Codes are arranged in a hierarchy by this reference. Note that it is possible to reference a single code such that it has multiple parents within the hierarchy. Further, the hierarchy may or may not be a leveled one.
Java class for HierarchicalCodeType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="HierarchicalCodeType">
<complexContent>
<extension base="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/structure}HierarchicalCodeBaseType">
<sequence>
<choice>
<element name="Code" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}CodeReferenceType"/>
<sequence>
<element name="CodelistAliasRef" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}IDType"/>
<element name="CodeID" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}LocalCodeReferenceType"/>
</sequence>
</choice>
<element name="HierarchicalCode" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/structure}HierarchicalCodeType" maxOccurs="unbounded" minOccurs="0"/>
<element name="Level" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}LocalLevelReferenceType" minOccurs="0"/>
</sequence>
<attribute name="version" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}VersionType" />
<attribute name="validFrom" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
<attribute name="validTo" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
</extension>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected CodeReferenceType |
code
|
protected LocalCodeReferenceType |
codeID
|
protected String |
codelistAliasRef
|
protected List<HierarchicalCodeType> |
hierarchicalCode
|
protected LocalLevelReferenceType |
level
|
protected XMLGregorianCalendar |
validFrom
|
protected XMLGregorianCalendar |
validTo
|
protected String |
version
|
| Fields inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.IdentifiableType |
|---|
id, uri, urn |
| Fields inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.common.AnnotableType |
|---|
annotations |
| Constructor Summary | |
|---|---|
HierarchicalCodeType()
|
|
| Method Summary | |
|---|---|
CodeReferenceType |
getCode()
Gets the value of the code property. |
LocalCodeReferenceType |
getCodeID()
Gets the value of the codeID property. |
String |
getCodelistAliasRef()
Gets the value of the codelistAliasRef property. |
List<HierarchicalCodeType> |
getHierarchicalCode()
Gets the value of the hierarchicalCode property. |
LocalLevelReferenceType |
getLevel()
Gets the value of the level property. |
XMLGregorianCalendar |
getValidFrom()
Gets the value of the validFrom property. |
XMLGregorianCalendar |
getValidTo()
Gets the value of the validTo property. |
String |
getVersion()
Gets the value of the version property. |
void |
setCode(CodeReferenceType value)
Sets the value of the code property. |
void |
setCodeID(LocalCodeReferenceType value)
Sets the value of the codeID property. |
void |
setCodelistAliasRef(String value)
Sets the value of the codelistAliasRef property. |
void |
setLevel(LocalLevelReferenceType value)
Sets the value of the level property. |
void |
setValidFrom(XMLGregorianCalendar value)
Sets the value of the validFrom property. |
void |
setValidTo(XMLGregorianCalendar value)
Sets the value of the validTo property. |
void |
setVersion(String value)
Sets the value of the version property. |
| Methods inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.IdentifiableType |
|---|
getId, getUri, getUrn, setId, setUri, setUrn |
| Methods inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.common.AnnotableType |
|---|
getAnnotations, setAnnotations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CodeReferenceType code
protected String codelistAliasRef
protected LocalCodeReferenceType codeID
protected List<HierarchicalCodeType> hierarchicalCode
protected LocalLevelReferenceType level
protected String version
protected XMLGregorianCalendar validFrom
protected XMLGregorianCalendar validTo
| Constructor Detail |
|---|
public HierarchicalCodeType()
| Method Detail |
|---|
public CodeReferenceType getCode()
CodeReferenceTypepublic void setCode(CodeReferenceType value)
value - allowed object is
CodeReferenceTypepublic String getCodelistAliasRef()
Stringpublic void setCodelistAliasRef(String value)
value - allowed object is
Stringpublic LocalCodeReferenceType getCodeID()
LocalCodeReferenceTypepublic void setCodeID(LocalCodeReferenceType value)
value - allowed object is
LocalCodeReferenceTypepublic List<HierarchicalCodeType> getHierarchicalCode()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the hierarchicalCode property.
For example, to add a new item, do as follows:
getHierarchicalCode().add(newItem);
Objects of the following type(s) are allowed in the list
HierarchicalCodeType
public LocalLevelReferenceType getLevel()
LocalLevelReferenceTypepublic void setLevel(LocalLevelReferenceType value)
value - allowed object is
LocalLevelReferenceTypepublic String getVersion()
Stringpublic void setVersion(String value)
value - allowed object is
Stringpublic XMLGregorianCalendar getValidFrom()
XMLGregorianCalendarpublic void setValidFrom(XMLGregorianCalendar value)
value - allowed object is
XMLGregorianCalendarpublic XMLGregorianCalendar getValidTo()
XMLGregorianCalendarpublic void setValidTo(XMLGregorianCalendar value)
value - allowed object is
XMLGregorianCalendar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||