org.apache.axis2.databinding.deserializers
Class SimpleDeserializer
java.lang.Object
org.apache.axis2.databinding.deserializers.SimpleDeserializer
- All Implemented Interfaces:
- Deserializer
- public class SimpleDeserializer
- extends java.lang.Object
- implements Deserializer
SimpleDeserializer
Constructor Summary |
SimpleDeserializer(java.lang.Class javaType,
javax.xml.namespace.QName xmlType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRING_CLASS
public static final java.lang.Class[] STRING_CLASS
SimpleDeserializer
public SimpleDeserializer(java.lang.Class javaType,
javax.xml.namespace.QName xmlType)
setTypeDesc
public void setTypeDesc(TypeDesc typeDesc)
setTarget
public void setTarget(DeserializationTarget target)
- Specified by:
setTarget
in interface Deserializer
deserialize
public void deserialize(XMLStreamReader reader,
DeserializationContext context)
throws java.lang.Exception
- Specified by:
deserialize
in interface Deserializer
- Throws:
java.lang.Exception
makeValue
public java.lang.Object makeValue(java.lang.String source)
throws java.lang.Exception
- Convert the string that has been accumulated into an Object. Subclasses
may override this. Note that if the javaType is a primitive, the returned
object is a wrapper class.
- Parameters:
source
- the serialized value to be deserialized
- Throws:
java.lang.Exception
- any exception thrown by this method will be wrapped
makeCalendar
public static java.lang.Object makeCalendar(java.lang.String source,
boolean returnDate)