com.openharbor.beck.unmarshal
Class DateUnmarshaller

java.lang.Object
  extended bycom.openharbor.beck.unmarshal.DefaultUnmarshaller
      extended bycom.openharbor.beck.unmarshal.DateUnmarshaller
All Implemented Interfaces:
MapFromXML.Aware, Unmarshaller

public class DateUnmarshaller
extends DefaultUnmarshaller

Maps to a java.util.Date object.


Field Summary
 java.text.DateFormat ISO8601
           
 
Fields inherited from class com.openharbor.beck.unmarshal.DefaultUnmarshaller
data, documentState, log
 
Constructor Summary
DateUnmarshaller()
           
 
Method Summary
protected  java.lang.Object newObject()
           
protected  java.util.Date parse(java.lang.String from)
           
protected  void setValue(java.lang.StringBuffer data)
          Convert the text and store the resulting data into the object.
 
Methods inherited from class com.openharbor.beck.unmarshal.DefaultUnmarshaller
addChild, addToParent, addValue, afterEndObject, disengage, disengaged, endElement, endObject, engage, getChildClass, getMap, getMapFromXML, getObject, getObjectClass, getParent, getSource, getSourceXPath, getXMLContext, getXName, getXPath, isEngaged, processAttributes, referToThis, reset, rethrow, setMapFromXML, setObject, setObjectClass, setParentAndSource, setXMLContext, startElement, startObject, toString, trim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO8601

public final java.text.DateFormat ISO8601
Constructor Detail

DateUnmarshaller

public DateUnmarshaller()
Method Detail

newObject

protected java.lang.Object newObject()
Overrides:
newObject in class DefaultUnmarshaller

setValue

protected void setValue(java.lang.StringBuffer data)
                 throws java.text.ParseException
Description copied from class: DefaultUnmarshaller
Convert the text and store the resulting data into the object.

Overrides:
setValue in class DefaultUnmarshaller
Throws:
java.text.ParseException

parse

protected java.util.Date parse(java.lang.String from)
                        throws java.text.ParseException
Throws:
java.text.ParseException