org.jembi.sdmxhd.cds
Class Obs

java.lang.Object
  extended by org.jembi.sdmxhd.cds.Obs
All Implemented Interfaces:
XMLWritable

public class Obs
extends java.lang.Object
implements XMLWritable

Author:
Ryan Crichton This object represents a SDMX-HD Obs element in a CDS

Field Summary
 java.lang.String namespace
           
 
Constructor Summary
Obs()
           
 
Method Summary
 void addAttribute(java.lang.String attributeName, java.lang.String value)
          Adds a logical attribute to this Obs element.
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
           
 java.lang.String getAttributeValue(java.lang.String attribute)
          Gets the specified attribute
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
           
 void toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
          Converts this Obs object to it SDMX-HD XML form.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace

public java.lang.String namespace
Constructor Detail

Obs

public Obs()
Method Detail

addAttribute

public void addAttribute(java.lang.String attributeName,
                         java.lang.String value)
Adds a logical attribute to this Obs element.

Parameters:
attributeName -
value -

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String attribute)
Gets the specified attribute

Parameters:
attribute -
Returns:
specified attribute

toXML

public void toXML(javax.xml.stream.XMLStreamWriter xmlWriter)
           throws javax.xml.stream.XMLStreamException,
                  java.lang.IllegalArgumentException,
                  java.lang.IllegalAccessException
Converts this Obs object to it SDMX-HD XML form.

Specified by:
toXML in interface XMLWritable
Parameters:
xmlWriter -
Throws:
javax.xml.stream.XMLStreamException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)