edu.cmu.aura.service.xml.xmlschema
Class TimeDurationSerializer
java.lang.Object
|
+--edu.cmu.aura.service.xml.xmlschema.TimeDurationSerializer
- All Implemented Interfaces:
- edu.cmu.aura.service.xml.Deserializer, edu.cmu.aura.service.xml.Serializer
- public class TimeDurationSerializer
- extends java.lang.Object
- implements edu.cmu.aura.service.xml.Serializer, edu.cmu.aura.service.xml.Deserializer
TimeDurationSerializer converts to and from an XML definition
of TimeDuration to an actual TimeDuration object.
|
Method Summary |
java.lang.Object |
deserialize(org.w3c.dom.Element objElement,
java.lang.Class objClass)
Deserialize a TimeDuration from an XML definition. |
void |
serialize(java.lang.Object obj,
java.lang.StringBuffer sBuf,
int numTabs,
java.lang.String objName,
boolean includeType)
Serialize a TimeDuration object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeDurationSerializer
public TimeDurationSerializer()
- Create a new TimeDurationSerializer.
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 TimeDuration object.
- Specified by:
serialize in interface edu.cmu.aura.service.xml.Serializer
- Parameters:
obj - the TimeDuration 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 TimeDuration from an XML definition.
- Specified by:
deserialize in interface edu.cmu.aura.service.xml.Deserializer
- Parameters:
objElement - the TimeDuration DOM Element.objClass - the Java class of this element.- Returns:
- the TimeDuration Object.