org.sdmx.resources.sdmxml.schemas.v2_0.common
Class ConstraintType

java.lang.Object
  extended by org.sdmx.resources.sdmxml.schemas.v2_0.common.ConstraintType

public class ConstraintType
extends Object

Constraint specifies the object to which constraints are attached. Note that if the constraint is that for a Data Provider, then only ReleaseCalendar information is relevant, as there is no reliable way of determining which key family is being used to frame constraints in terms of cube regions or key sets. ReferencePeriod is used to report start date and end date constraints. MetadataConceptSet allows for conten t constraints to be described for metadata sets.

Java class for ConstraintType complex type.

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

 <complexType name="ConstraintType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="ConstraintID" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}IDType"/>
         <element name="CubeRegion" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}CubeRegionType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="MetadataConceptSet" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}MetadataConceptSetType" minOccurs="0"/>
         <element name="KeySet" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}KeySetType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="ReleaseCalendar" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}ReleaseCalendarType" minOccurs="0"/>
         <element name="ReferencePeriod" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}ReferencePeriodType" minOccurs="0"/>
       </sequence>
       <attribute name="ConstraintType" use="required" type="{http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common}ConstraintTypeType" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String constraintID
           
protected  ConstraintTypeType constraintType
           
protected  List<CubeRegionType> cubeRegion
           
protected  List<KeySetType> keySet
           
protected  MetadataConceptSetType metadataConceptSet
           
protected  ReferencePeriodType referencePeriod
           
protected  ReleaseCalendarType releaseCalendar
           
 
Constructor Summary
ConstraintType()
           
 
Method Summary
 String getConstraintID()
          Gets the value of the constraintID property.
 ConstraintTypeType getConstraintType()
          Gets the value of the constraintType property.
 List<CubeRegionType> getCubeRegion()
          Gets the value of the cubeRegion property.
 List<KeySetType> getKeySet()
          Gets the value of the keySet property.
 MetadataConceptSetType getMetadataConceptSet()
          Gets the value of the metadataConceptSet property.
 ReferencePeriodType getReferencePeriod()
          Gets the value of the referencePeriod property.
 ReleaseCalendarType getReleaseCalendar()
          Gets the value of the releaseCalendar property.
 void setConstraintID(String value)
          Sets the value of the constraintID property.
 void setConstraintType(ConstraintTypeType value)
          Sets the value of the constraintType property.
 void setMetadataConceptSet(MetadataConceptSetType value)
          Sets the value of the metadataConceptSet property.
 void setReferencePeriod(ReferencePeriodType value)
          Sets the value of the referencePeriod property.
 void setReleaseCalendar(ReleaseCalendarType value)
          Sets the value of the releaseCalendar property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraintID

protected String constraintID

cubeRegion

protected List<CubeRegionType> cubeRegion

metadataConceptSet

protected MetadataConceptSetType metadataConceptSet

keySet

protected List<KeySetType> keySet

releaseCalendar

protected ReleaseCalendarType releaseCalendar

referencePeriod

protected ReferencePeriodType referencePeriod

constraintType

protected ConstraintTypeType constraintType
Constructor Detail

ConstraintType

public ConstraintType()
Method Detail

getConstraintID

public String getConstraintID()
Gets the value of the constraintID property.

Returns:
possible object is String

setConstraintID

public void setConstraintID(String value)
Sets the value of the constraintID property.

Parameters:
value - allowed object is String

getCubeRegion

public List<CubeRegionType> getCubeRegion()
Gets the value of the cubeRegion 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 cubeRegion property.

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

    getCubeRegion().add(newItem);
 

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


getMetadataConceptSet

public MetadataConceptSetType getMetadataConceptSet()
Gets the value of the metadataConceptSet property.

Returns:
possible object is MetadataConceptSetType

setMetadataConceptSet

public void setMetadataConceptSet(MetadataConceptSetType value)
Sets the value of the metadataConceptSet property.

Parameters:
value - allowed object is MetadataConceptSetType

getKeySet

public List<KeySetType> getKeySet()
Gets the value of the keySet 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 keySet property.

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

    getKeySet().add(newItem);
 

Objects of the following type(s) are allowed in the list KeySetType


getReleaseCalendar

public ReleaseCalendarType getReleaseCalendar()
Gets the value of the releaseCalendar property.

Returns:
possible object is ReleaseCalendarType

setReleaseCalendar

public void setReleaseCalendar(ReleaseCalendarType value)
Sets the value of the releaseCalendar property.

Parameters:
value - allowed object is ReleaseCalendarType

getReferencePeriod

public ReferencePeriodType getReferencePeriod()
Gets the value of the referencePeriod property.

Returns:
possible object is ReferencePeriodType

setReferencePeriod

public void setReferencePeriod(ReferencePeriodType value)
Sets the value of the referencePeriod property.

Parameters:
value - allowed object is ReferencePeriodType

getConstraintType

public ConstraintTypeType getConstraintType()
Gets the value of the constraintType property.

Returns:
possible object is ConstraintTypeType

setConstraintType

public void setConstraintType(ConstraintTypeType value)
Sets the value of the constraintType property.

Parameters:
value - allowed object is ConstraintTypeType


Copyright © 2012. All Rights Reserved.