org.sdmx.resources.sdmxml.schemas.v2_1.structure
Class ConstraintAttachmentType

java.lang.Object
  extended by org.sdmx.resources.sdmxml.schemas.v2_1.structure.ConstraintAttachmentType
Direct Known Subclasses:
AttachmentConstraintAttachmentType, ContentConstraintAttachmentType

public abstract class ConstraintAttachmentType
extends Object

ConstraintAttachmentType describes a collection of references to constrainable artefacts.

Java class for ConstraintAttachmentType complex type.

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

 <complexType name="ConstraintAttachmentType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <element name="DataProvider" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}DataProviderReferenceType"/>
         <element name="DataSet" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}SetReferenceType" maxOccurs="unbounded"/>
         <element name="MetadataSet" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}SetReferenceType" maxOccurs="unbounded"/>
         <element name="SimpleDataSource" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded"/>
         <choice>
           <sequence>
             <element name="DataStructure" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}DataStructureReferenceType" maxOccurs="unbounded"/>
             <element name="QueryableDataSource" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}QueryableDataSourceType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <sequence>
             <element name="MetadataStructure" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}MetadataStructureReferenceType" maxOccurs="unbounded"/>
             <element name="QueryableDataSource" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}QueryableDataSourceType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <sequence>
             <element name="Dataflow" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}DataflowReferenceType" maxOccurs="unbounded"/>
             <element name="QueryableDataSource" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}QueryableDataSourceType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <sequence>
             <element name="Metadataflow" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}MetadataflowReferenceType" maxOccurs="unbounded"/>
             <element name="QueryableDataSource" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}QueryableDataSourceType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <sequence>
             <element name="ProvisionAgreement" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}ProvisionAgreementReferenceType" maxOccurs="unbounded"/>
             <element name="QueryableDataSource" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}QueryableDataSourceType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </choice>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<JAXBElement<?>> content
           
 
Constructor Summary
ConstraintAttachmentType()
           
 
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

ConstraintAttachmentType

public ConstraintAttachmentType()
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 "QueryableDataSource" is used by two different parts of a schema. See: line 274 of file:/home/luigi/Documents/SDMX/Standards/2.1/SDMX_2-1-1_SECTION_3B_SDMX_ML_Schemas_Samples_201108/schemas/SDMXStructureConstraint.xsd line 262 of file:/home/luigi/Documents/SDMX/Standards/2.1/SDMX_2-1-1_SECTION_3B_SDMX_ML_Schemas_Samples_201108/schemas/SDMXStructureConstraint.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<MetadataStructureReferenceType> JAXBElement<SetReferenceType> JAXBElement<ProvisionAgreementReferenceType> JAXBElement<DataflowReferenceType> JAXBElement<DataProviderReferenceType> JAXBElement<String> JAXBElement<SetReferenceType> JAXBElement<QueryableDataSourceType> JAXBElement<DataStructureReferenceType> JAXBElement<MetadataflowReferenceType>



Copyright © 2012. All Rights Reserved.