org.sdmx.resources.sdmxml.schemas.v2_0.structure
Class CodeType

java.lang.Object
  extended by org.sdmx.resources.sdmxml.schemas.v2_0.structure.CodeType

public class CodeType
extends Object

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

description

protected List<TextType> description

annotations

protected AnnotationsType annotations

value

protected String value

urn

protected String urn

parentCode

protected String parentCode
Constructor Detail

CodeType

public CodeType()
Method Detail

getDescription

public List<TextType> getDescription()
Gets the value of the description property.

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


getAnnotations

public AnnotationsType getAnnotations()
Gets the value of the annotations property.

Returns:
possible object is AnnotationsType

setAnnotations

public void setAnnotations(AnnotationsType value)
Sets the value of the annotations property.

Parameters:
value - allowed object is AnnotationsType

getValue

public String getValue()
Gets the value of the value property.

Returns:
possible object is String

setValue

public void setValue(String value)
Sets the value of the value property.

Parameters:
value - allowed object is String

getUrn

public String getUrn()
Gets the value of the urn property.

Returns:
possible object is String

setUrn

public void setUrn(String value)
Sets the value of the urn property.

Parameters:
value - allowed object is String

getParentCode

public String getParentCode()
Gets the value of the parentCode property.

Returns:
possible object is String

setParentCode

public void setParentCode(String value)
Sets the value of the parentCode property.

Parameters:
value - allowed object is String


Copyright © 2012. All Rights Reserved.