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

java.lang.Object
  extended by org.sdmx.resources.sdmxml.schemas.v2_1.common.AnnotableType
      extended by org.sdmx.resources.sdmxml.schemas.v2_1.structure.IdentifiableType
          extended by org.sdmx.resources.sdmxml.schemas.v2_1.structure.NameableType
              extended by org.sdmx.resources.sdmxml.schemas.v2_1.structure.VersionableType
                  extended by org.sdmx.resources.sdmxml.schemas.v2_1.structure.MaintainableBaseType
                      extended by org.sdmx.resources.sdmxml.schemas.v2_1.structure.MaintainableType
                          extended by org.sdmx.resources.sdmxml.schemas.v2_1.structure.ConstraintBaseType
                              extended by org.sdmx.resources.sdmxml.schemas.v2_1.structure.ConstraintType
Direct Known Subclasses:
AttachmentConstraintType, ContentConstraintBaseType

public abstract class ConstraintType
extends ConstraintBaseType

ConstraintType is an abstract base type that specific types of constraints (content and attachment) restrict and extend to describe their details. The inclusion of a key or region in a constraint is determined by first processing the included key sets, and then removing those keys defined in the excluded key sets. If no included key sets are defined, then it is assumed the all possible keys or regions are included, and any excluded key or regions are removed from this complete set.

Java class for ConstraintType complex type.

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

 <complexType name="ConstraintType">
   <complexContent>
     <extension base="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/structure}ConstraintBaseType">
       <sequence>
         <element name="ConstraintAttachment" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/structure}ConstraintAttachmentType" minOccurs="0"/>
         <choice maxOccurs="unbounded" minOccurs="0">
           <element name="DataKeySet" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/structure}DataKeySetType"/>
           <element name="MetadataKeySet" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/structure}MetadataKeySetType"/>
           <element name="CubeRegion" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}CubeRegionType"/>
           <element name="MetadataTargetRegion" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common}MetadataTargetRegionType"/>
         </choice>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  ConstraintAttachmentType constraintAttachment
           
protected  List<Object> dataKeySetOrMetadataKeySetOrCubeRegion
           
 
Fields inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.MaintainableType
agencyID, isExternalReference, isFinal, serviceURL, structureURL
 
Fields inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.VersionableType
validFrom, validTo, version
 
Fields inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.NameableType
description, name
 
Fields inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.IdentifiableType
id, uri, urn
 
Fields inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.common.AnnotableType
annotations
 
Constructor Summary
ConstraintType()
           
 
Method Summary
 ConstraintAttachmentType getConstraintAttachment()
          Gets the value of the constraintAttachment property.
 List<Object> getDataKeySetOrMetadataKeySetOrCubeRegion()
          Gets the value of the dataKeySetOrMetadataKeySetOrCubeRegion property.
 void setConstraintAttachment(ConstraintAttachmentType value)
          Sets the value of the constraintAttachment property.
 
Methods inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.MaintainableType
getAgencyID, getServiceURL, getStructureURL, isIsExternalReference, isIsFinal, setAgencyID, setIsExternalReference, setIsFinal, setServiceURL, setStructureURL
 
Methods inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.VersionableType
getValidFrom, getValidTo, getVersion, setValidFrom, setValidTo, setVersion
 
Methods inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.NameableType
getDescription, getName
 
Methods inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.structure.IdentifiableType
getId, getUri, getUrn, setId, setUri, setUrn
 
Methods inherited from class org.sdmx.resources.sdmxml.schemas.v2_1.common.AnnotableType
getAnnotations, setAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraintAttachment

protected ConstraintAttachmentType constraintAttachment

dataKeySetOrMetadataKeySetOrCubeRegion

protected List<Object> dataKeySetOrMetadataKeySetOrCubeRegion
Constructor Detail

ConstraintType

public ConstraintType()
Method Detail

getConstraintAttachment

public ConstraintAttachmentType getConstraintAttachment()
Gets the value of the constraintAttachment property.

Returns:
possible object is ConstraintAttachmentType

setConstraintAttachment

public void setConstraintAttachment(ConstraintAttachmentType value)
Sets the value of the constraintAttachment property.

Parameters:
value - allowed object is ConstraintAttachmentType

getDataKeySetOrMetadataKeySetOrCubeRegion

public List<Object> getDataKeySetOrMetadataKeySetOrCubeRegion()
Gets the value of the dataKeySetOrMetadataKeySetOrCubeRegion 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 dataKeySetOrMetadataKeySetOrCubeRegion property.

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

    getDataKeySetOrMetadataKeySetOrCubeRegion().add(newItem);
 

Objects of the following type(s) are allowed in the list MetadataKeySetType DataKeySetType MetadataTargetRegionType CubeRegionType



Copyright © 2012. All Rights Reserved.