org.sdmx.resources.sdmxml.schemas.v2_1.message
Class MessageType

java.lang.Object
  extended by org.sdmx.resources.sdmxml.schemas.v2_1.message.MessageType
Direct Known Subclasses:
CategorisationQueryType, CategorySchemeQueryType, CodelistQueryType, ConceptSchemeQueryType, ConstraintQueryType, DataflowQueryType, DataQueryType, DataSchemaQueryType, DataStructureQueryType, GenericDataType, GenericMetadataType, HierarchicalCodelistQueryType, MetadataflowQueryType, MetadataQueryType, MetadataSchemaQueryType, MetadataStructureQueryType, OrganisationSchemeQueryType, ProcessQueryType, ProvisionAgreementQueryType, RegistryInterfaceType, ReportingTaxonomyQueryType, StructureSetQueryType, StructureSpecificDataType, StructureSpecificMetadataType, StructuresQueryType, StructureType

public abstract class MessageType
extends Object

MessageType is an abstract type which is used by all of the messages, to allow inheritance of common features. Every message consists of a mandatory header, followed by optional payload (which may occur multiple times), and finally an optional footer section for conveying error, warning, and informational messages.

Java class for MessageType complex type.

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

 <complexType name="MessageType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="Header" type="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message}BaseHeaderType"/>
         <any namespace='http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message' maxOccurs="unbounded" minOccurs="0"/>
         <element ref="{http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer}Footer" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Object> any
           
protected  FooterType footer
           
protected  BaseHeaderType header
           
 
Constructor Summary
MessageType()
           
 
Method Summary
 List<Object> getAny()
          Gets the value of the any property.
 FooterType getFooter()
          Gets the value of the footer property.
 BaseHeaderType getHeader()
          Gets the value of the header property.
 void setFooter(FooterType value)
          Sets the value of the footer property.
 void setHeader(BaseHeaderType value)
          Sets the value of the header property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

header

protected BaseHeaderType header

any

protected List<Object> any

footer

protected FooterType footer
Constructor Detail

MessageType

public MessageType()
Method Detail

getHeader

public BaseHeaderType getHeader()
Gets the value of the header property.

Returns:
possible object is BaseHeaderType

setHeader

public void setHeader(BaseHeaderType value)
Sets the value of the header property.

Parameters:
value - allowed object is BaseHeaderType

getAny

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

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

    getAny().add(newItem);
 

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


getFooter

public FooterType getFooter()
Gets the value of the footer property.

Returns:
possible object is FooterType

setFooter

public void setFooter(FooterType value)
Sets the value of the footer property.

Parameters:
value - allowed object is FooterType


Copyright © 2012. All Rights Reserved.