org.sdmx.resources.sdmxml.schemas.v2_1.common
Class ReferenceType

java.lang.Object
  extended by org.sdmx.resources.sdmxml.schemas.v2_1.common.ReferenceType
Direct Known Subclasses:
AnyLocalCodeReferenceType, ChildObjectReferenceType, ContainerChildObjectReferenceType, LocalCodelistMapReferenceType, LocalComponentListComponentReferenceBaseType, LocalComponentListReferenceType, LocalIdentifiableReferenceType, LocalItemReferenceType, LocalLevelReferenceType, MaintainableReferenceBaseType, ObjectReferenceType, URNReferenceType

public abstract class ReferenceType
extends Object

ReferenceType is an abstract base type. It is used as the basis for all references, to all for a top level generic object reference that can be substituted with an explicit reference to any object. Any reference can consist of a Ref (which contains all required reference fields separately) and/or a URN. These must result in the identification of the same object. Note that the Ref and URN elements are local and unqualified in order to allow for refinement of this structure outside of the namespace. This allows any reference to further refined by a different namespace. For example, a metadata structure definition specific metadata set might wish to restrict the URN to only allow for a value from an enumerated list. The general URN structure, for the purpose of mapping the reference fields is as follows: urn:sdmx:org.package-name.class-name=agency-id:(maintainable-parent-object-id[maintainable-parent-object-version].)?(container-object-id.)?object-id([object-version])?.

Java class for ReferenceType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ReferenceType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <sequence>
           <element name="Ref" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}RefBaseType" form="unqualified"/>
           <element name="URN" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0" form="unqualified"/>
         </sequence>
         <element name="URN" type="{http://www.w3.org/2001/XMLSchema}anyURI" form="unqualified"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<JAXBElement<?>> content
           
 
Constructor Summary
ReferenceType()
           
 
Method Summary
 List<JAXBElement<?>> getContent()
          Gets the rest of the content model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected List<JAXBElement<?>> content
Constructor Detail

ReferenceType

public ReferenceType()
Method Detail

getContent

public List<JAXBElement<?>> getContent()
Gets the rest of the content model.

You are getting this "catch-all" property because of the following reason: The field name "URN" is used by two different parts of a schema. See: line 121 of file:/home/luigi/Documents/SDMX/Standards/2.1/SDMX_2-1-1_SECTION_3B_SDMX_ML_Schemas_Samples_201108/schemas/SDMXCommonReferences.xsd line 115 of file:/home/luigi/Documents/SDMX/Standards/2.1/SDMX_2-1-1_SECTION_3B_SDMX_ML_Schemas_Samples_201108/schemas/SDMXCommonReferences.xsd

To get rid of this property, apply a property customization to one of both of the following declarations to change their names: Gets the value of the content 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 content property.

For example, to add a new item, do as follows:

    getContent().add(newItem);
 

Objects of the following type(s) are allowed in the list JAXBElement<String> JAXBElement<RefBaseType>



Copyright © 2012. All Rights Reserved.