org.apache.axis2.databinding.deserializers
Class SimpleDeserializer
java.lang.Object
org.apache.axis2.databinding.deserializers.SimpleDeserializer
- All Implemented Interfaces:
- Deserializer
- public class SimpleDeserializer
- extends Object
- implements Deserializer
SimpleDeserializer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRING_CLASS
public static final Class[] STRING_CLASS
SimpleDeserializer
public SimpleDeserializer(Class javaType,
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 Exception
- Specified by:
deserialize
in interface Deserializer
- Throws:
Exception
makeValue
public Object makeValue(String source)
throws 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:
Exception
- any exception thrown by this method will be wrapped
makeCalendar
public static Object makeCalendar(String source,
boolean returnDate)