org.apache.axis2.databinding.deserializers
Class SimpleDeserializer

java.lang.Object
  extended byorg.apache.axis2.databinding.deserializers.SimpleDeserializer
All Implemented Interfaces:
Deserializer

public class SimpleDeserializer
extends Object
implements Deserializer

SimpleDeserializer


Field Summary
static Class[] STRING_CLASS
           
 
Constructor Summary
SimpleDeserializer(Class javaType, QName xmlType)
           
 
Method Summary
 void deserialize(XMLStreamReader reader, DeserializationContext context)
           
static Object makeCalendar(String source, boolean returnDate)
           
 Object makeValue(String source)
          Convert the string that has been accumulated into an Object.
 void setTarget(DeserializationTarget target)
           
 void setTypeDesc(TypeDesc typeDesc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_CLASS

public static final Class[] STRING_CLASS
Constructor Detail

SimpleDeserializer

public SimpleDeserializer(Class javaType,
                          QName xmlType)
Method Detail

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)