org.apache.axis.encoding.ser

Class SimpleListDeserializer

Implemented Interfaces:
Deserializer, java.io.Serializable, Callback, Deserializer, Deserializer

public class SimpleListDeserializer
extends SimpleDeserializer

Deserializer for based on SimpleDeserializer
Author:
Ias (iasandcb@tmax.co.kr)

Field Summary

protected SimpleListDeserializer
cacheStringDSer
protected QName
cacheXMLType
Class
javaType
QName
xmlType

Fields inherited from class org.apache.axis.encoding.ser.SimpleDeserializer

STRING_CLASS, cacheStringDSer, cacheXMLType, context, javaType, xmlType

Fields inherited from class org.apache.axis.encoding.DeserializerImpl

componentsReadyFlag, defaultType, id, isEnded, isHref, isNil, log, targets, value

Fields inherited from class org.apache.axis.message.SOAPHandler

myElement

Constructor Summary

SimpleListDeserializer(Class javaType, QName xmlType)
The Deserializer is constructed with the xmlType and javaType (which could be a java primitive like int.class)
SimpleListDeserializer(Class javaType, QName xmlType, TypeDesc typeDesc)

Method Summary

void
characters(char[] chars, int start, int end)
Append any characters received to the value.
Object
makeValue(String source)
Convert the string that has been accumulated into an Object.
void
onEndElement(String namespace, String localName, DeserializationContext context)
Append any characters to the value.
SOAPHandler
onStartChild(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context)
There should not be nested elements, so thow and exception if this occurs.
void
onStartElement(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context)
Set the bean properties that correspond to element attributes.
void
reset()
Reset deserializer for re-use
void
setConstructor(Constructor c)
The Factory calls setConstructor.

Methods inherited from class org.apache.axis.encoding.ser.SimpleDeserializer

characters, makeValue, onEndElement, onStartChild, onStartElement, reset, setConstructor

Methods inherited from class org.apache.axis.encoding.DeserializerImpl

addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, onEndElement, onStartChild, onStartElement, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, startElement, valueComplete

Methods inherited from class org.apache.axis.message.SOAPHandler

characters, endElement, makeNewElement, onEndChild, onStartChild, startElement

Field Details

cacheStringDSer

protected SimpleListDeserializer cacheStringDSer

cacheXMLType

protected QName cacheXMLType

javaType

public Class javaType

xmlType

public QName xmlType

Constructor Details

SimpleListDeserializer

public SimpleListDeserializer(Class javaType,
                              QName xmlType)
The Deserializer is constructed with the xmlType and javaType (which could be a java primitive like int.class)

SimpleListDeserializer

public SimpleListDeserializer(Class javaType,
                              QName xmlType,
                              TypeDesc typeDesc)

Method Details

characters

public void characters(char[] chars,
                       int start,
                       int end)
            throws SAXException
Append any characters received to the value. This method is defined by Deserializer.
Overrides:
characters in interface SimpleDeserializer

makeValue

public Object makeValue(String source)
            throws Exception
Convert the string that has been accumulated into an Object. Subclasses may override this.
Overrides:
makeValue in interface SimpleDeserializer
Parameters:
source - the serialized value to be deserialized

onEndElement

public void onEndElement(String namespace,
                         String localName,
                         DeserializationContext context)
            throws SAXException
Append any characters to the value. This method is defined by Deserializer.
Specified by:
onEndElement in interface Deserializer
Overrides:
onEndElement in interface SimpleDeserializer

onStartChild

public SOAPHandler onStartChild(String namespace,
                                String localName,
                                String prefix,
                                Attributes attributes,
                                DeserializationContext context)
            throws SAXException
There should not be nested elements, so thow and exception if this occurs.
Specified by:
onStartChild in interface Deserializer
Overrides:
onStartChild in interface SimpleDeserializer

onStartElement

public void onStartElement(String namespace,
                           String localName,
                           String prefix,
                           Attributes attributes,
                           DeserializationContext context)
            throws SAXException
Set the bean properties that correspond to element attributes. This method is invoked after startElement when the element requires deserialization (i.e. the element is not an href and the value is not nil.)
Specified by:
onStartElement in interface Deserializer
Overrides:
onStartElement in interface SimpleDeserializer
Parameters:
namespace - is the namespace of the element
localName - is the name of the element
prefix - is the prefix of the element
attributes - are the attributes on the element...used to get the type
context - is the DeserializationContext

reset

public void reset()
Reset deserializer for re-use
Overrides:
reset in interface SimpleDeserializer

setConstructor

public void setConstructor(Constructor c)
The Factory calls setConstructor.
Overrides:
setConstructor in interface SimpleDeserializer

Copyright © 2005 Apache Web Services Project. All Rights Reserved.