|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sdmx.resources.sdmxml.schemas.v2_0.structure.CodeType
public class CodeType
CodeType defines the structure of a code. This allows for plain-text descriptions as element content, and the coded value as the value attribute. (Short descriptions or other presentational information may be added using Annotations with an indicative type field [eg, "ShortDescription"]). The urn attribute supplies a valid SDMX Registry URN (see the SDMX Registry Specification).The parentCode attribute provides the ability to describe simple hierarchies within a single codelist, by referenceing the id value of another code in the same codelist.
Java class for CodeType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CodeType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Description" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}TextType" maxOccurs="unbounded"/>
<element name="Annotations" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}AnnotationsType" minOccurs="0"/>
</sequence>
<attribute name="value" use="required" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}IDType" />
<attribute name="urn" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
<attribute name="parentCode" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}IDType" />
</restriction>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected AnnotationsType |
annotations
|
protected List<TextType> |
description
|
protected String |
parentCode
|
protected String |
urn
|
protected String |
value
|
| Constructor Summary | |
|---|---|
CodeType()
|
|
| Method Summary | |
|---|---|
AnnotationsType |
getAnnotations()
Gets the value of the annotations property. |
List<TextType> |
getDescription()
Gets the value of the description property. |
String |
getParentCode()
Gets the value of the parentCode property. |
String |
getUrn()
Gets the value of the urn property. |
String |
getValue()
Gets the value of the value property. |
void |
setAnnotations(AnnotationsType value)
Sets the value of the annotations property. |
void |
setParentCode(String value)
Sets the value of the parentCode property. |
void |
setUrn(String value)
Sets the value of the urn property. |
void |
setValue(String value)
Sets the value of the value property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<TextType> description
protected AnnotationsType annotations
protected String value
protected String urn
protected String parentCode
| Constructor Detail |
|---|
public CodeType()
| Method Detail |
|---|
public List<TextType> getDescription()
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 description property.
For example, to add a new item, do as follows:
getDescription().add(newItem);
Objects of the following type(s) are allowed in the list
TextType
public AnnotationsType getAnnotations()
AnnotationsTypepublic void setAnnotations(AnnotationsType value)
value - allowed object is
AnnotationsTypepublic String getValue()
Stringpublic void setValue(String value)
value - allowed object is
Stringpublic String getUrn()
Stringpublic void setUrn(String value)
value - allowed object is
Stringpublic String getParentCode()
Stringpublic void setParentCode(String value)
value - allowed object is
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||