edu.cmu.aura.service.xml.xmlschema
Class TimeInstantSerializer

java.lang.Object
  |
  +--edu.cmu.aura.service.xml.xmlschema.TimeInstantSerializer
All Implemented Interfaces:
edu.cmu.aura.service.xml.Deserializer, edu.cmu.aura.service.xml.Serializer

public class TimeInstantSerializer
extends java.lang.Object
implements edu.cmu.aura.service.xml.Serializer, edu.cmu.aura.service.xml.Deserializer

TimeInstantSerializer converts to and from an XML definition of TimeInstant to an actual TimeInstant object.


Constructor Summary
TimeInstantSerializer()
          Create a new TimeInstantSerializer.
 
Method Summary
 java.lang.Object deserialize(org.w3c.dom.Element objElement, java.lang.Class objClass)
          Deserialize a TimeInstant from an XML definition.
 void serialize(java.lang.Object obj, java.lang.StringBuffer sBuf, int numTabs, java.lang.String objName, boolean includeType)
          Serialize a TimeInstant object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInstantSerializer

public TimeInstantSerializer()
Create a new TimeInstantSerializer.
Method Detail

serialize

public void serialize(java.lang.Object obj,
                      java.lang.StringBuffer sBuf,
                      int numTabs,
                      java.lang.String objName,
                      boolean includeType)
               throws edu.cmu.aura.service.xml.SerializationException
Serialize a TimeInstant object.
Specified by:
serialize in interface edu.cmu.aura.service.xml.Serializer
Parameters:
obj - the TimeInstant object to serialize.
sBuf - the StringBuffer to serialize the object to.
numTabs - the number of tabs to indent this object to.
objName - the XML tag name for this object.

deserialize

public java.lang.Object deserialize(org.w3c.dom.Element objElement,
                                    java.lang.Class objClass)
                             throws edu.cmu.aura.service.xml.DeserializationException
Deserialize a TimeInstant from an XML definition.
Specified by:
deserialize in interface edu.cmu.aura.service.xml.Deserializer
Parameters:
objElement - the TimeInstant DOM Element.
objClass - the Java class of this element.
Returns:
the TimeInstant Object.