|
||||||||||
| 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.CodeListType
public class CodeListType
CodeListType defines the contents of a codelist. This includes an ID, the agency which maintains the codelist, its version, and a URL where it is located. Elements are provided for supplying a name and the codes. It is acceptable to provide only the id, name, and uri fields at a minimum, with the uri pointing to an SDMX Structure message containing complete details on the codelist. (This is termed an "external reference".) If an external reference is being made, the isExternalReference attribute must be set to "true". The urn attribute holds a valiud SDMX Registry URN (see SDMX Registry Specification). The validFrom and validTo attributes provide inclusive dates for providing supplemental validity information about the version.
Java class for CodeListType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CodeListType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Name" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}TextType" maxOccurs="unbounded"/>
<element name="Description" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}TextType" maxOccurs="unbounded" minOccurs="0"/>
<element name="Code" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure}CodeType" maxOccurs="unbounded" minOccurs="0"/>
<element name="Annotations" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}AnnotationsType" minOccurs="0"/>
</sequence>
<attribute name="id" use="required" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}IDType" />
<attribute name="agencyID" use="required" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}IDType" />
<attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
<attribute name="urn" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
<attribute name="isExternalReference" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="isFinal" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="validFrom" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}TimePeriodType" />
<attribute name="validTo" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}TimePeriodType" />
</restriction>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected String |
agencyID
|
protected AnnotationsType |
annotations
|
protected List<CodeType> |
code
|
protected List<TextType> |
description
|
protected String |
id
|
protected Boolean |
isExternalReference
|
protected Boolean |
isFinal
|
protected List<TextType> |
name
|
protected String |
uri
|
protected String |
urn
|
protected String |
validFrom
|
protected String |
validTo
|
protected String |
version
|
| Constructor Summary | |
|---|---|
CodeListType()
|
|
| Method Summary | |
|---|---|
String |
getAgencyID()
Gets the value of the agencyID property. |
AnnotationsType |
getAnnotations()
Gets the value of the annotations property. |
List<CodeType> |
getCode()
Gets the value of the code property. |
List<TextType> |
getDescription()
Gets the value of the description property. |
String |
getId()
Gets the value of the id property. |
List<TextType> |
getName()
Gets the value of the name property. |
String |
getUri()
Gets the value of the uri property. |
String |
getUrn()
Gets the value of the urn property. |
String |
getValidFrom()
Gets the value of the validFrom property. |
String |
getValidTo()
Gets the value of the validTo property. |
String |
getVersion()
Gets the value of the version property. |
Boolean |
isIsExternalReference()
Gets the value of the isExternalReference property. |
Boolean |
isIsFinal()
Gets the value of the isFinal property. |
void |
setAgencyID(String value)
Sets the value of the agencyID property. |
void |
setAnnotations(AnnotationsType value)
Sets the value of the annotations property. |
void |
setId(String value)
Sets the value of the id property. |
void |
setIsExternalReference(Boolean value)
Sets the value of the isExternalReference property. |
void |
setIsFinal(Boolean value)
Sets the value of the isFinal property. |
void |
setUri(String value)
Sets the value of the uri property. |
void |
setUrn(String value)
Sets the value of the urn property. |
void |
setValidFrom(String value)
Sets the value of the validFrom property. |
void |
setValidTo(String value)
Sets the value of the validTo property. |
void |
setVersion(String value)
Sets the value of the version property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<TextType> name
protected List<TextType> description
protected List<CodeType> code
protected AnnotationsType annotations
protected String id
protected String agencyID
protected String version
protected String uri
protected String urn
protected Boolean isExternalReference
protected Boolean isFinal
protected String validFrom
protected String validTo
| Constructor Detail |
|---|
public CodeListType()
| Method Detail |
|---|
public List<TextType> getName()
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 name property.
For example, to add a new item, do as follows:
getName().add(newItem);
Objects of the following type(s) are allowed in the list
TextType
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 List<CodeType> getCode()
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 code property.
For example, to add a new item, do as follows:
getCode().add(newItem);
Objects of the following type(s) are allowed in the list
CodeType
public AnnotationsType getAnnotations()
AnnotationsTypepublic void setAnnotations(AnnotationsType value)
value - allowed object is
AnnotationsTypepublic String getId()
Stringpublic void setId(String value)
value - allowed object is
Stringpublic String getAgencyID()
Stringpublic void setAgencyID(String value)
value - allowed object is
Stringpublic String getVersion()
Stringpublic void setVersion(String value)
value - allowed object is
Stringpublic String getUri()
Stringpublic void setUri(String value)
value - allowed object is
Stringpublic String getUrn()
Stringpublic void setUrn(String value)
value - allowed object is
Stringpublic Boolean isIsExternalReference()
Booleanpublic void setIsExternalReference(Boolean value)
value - allowed object is
Booleanpublic Boolean isIsFinal()
Booleanpublic void setIsFinal(Boolean value)
value - allowed object is
Booleanpublic String getValidFrom()
Stringpublic void setValidFrom(String value)
value - allowed object is
Stringpublic String getValidTo()
Stringpublic void setValidTo(String value)
value - allowed object is
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||