Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.axis.encoding.ser
Class SimpleListDeserializer  view SimpleListDeserializer download SimpleListDeserializer.java

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.apache.axis.message.SOAPHandler
          extended byorg.apache.axis.encoding.DeserializerImpl
              extended byorg.apache.axis.encoding.ser.SimpleDeserializer
                  extended byorg.apache.axis.encoding.ser.SimpleListDeserializer
All Implemented Interfaces:
org.apache.axis.encoding.Callback, org.xml.sax.ContentHandler, org.apache.axis.encoding.Deserializer, javax.xml.rpc.encoding.Deserializer, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, java.io.Serializable

public class SimpleListDeserializer
extends SimpleDeserializer

Deserializer for based on SimpleDeserializer


Field Summary
private  java.util.HashMap attributeMap
           
protected  SimpleListDeserializer cacheStringDSer
           
protected  javax.xml.namespace.QName cacheXMLType
           
private  java.lang.reflect.Constructor constructor
           
private  org.apache.axis.encoding.DeserializationContext context
           
 java.lang.Class javaType
           
private  java.util.Map propertyMap
           
private  org.apache.axis.description.TypeDesc typeDesc
           
(package private)  java.lang.StringBuffer val
           
 javax.xml.namespace.QName xmlType
           
 
Fields inherited from class org.apache.axis.encoding.ser.SimpleDeserializer
STRING_CLASS
 
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(java.lang.Class javaType, javax.xml.namespace.QName xmlType)
          The Deserializer is constructed with the xmlType and javaType (which could be a java primitive like int.class)
SimpleListDeserializer(java.lang.Class javaType, javax.xml.namespace.QName xmlType, org.apache.axis.description.TypeDesc typeDesc)
           
 
Method Summary
 void characters(char[] chars, int start, int end)
          Append any characters received to the value.
private  java.lang.Object makeUnitValue(java.lang.String source)
           
 java.lang.Object makeValue(java.lang.String source)
          Convert the string that has been accumulated into an Object.
 void onEndElement(java.lang.String namespace, java.lang.String localName, org.apache.axis.encoding.DeserializationContext context)
          Append any characters to the value.
 org.apache.axis.message.SOAPHandler onStartChild(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)
          There should not be nested elements, so thow and exception if this occurs.
 void onStartElement(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)
          Set the bean properties that correspond to element attributes.
 void reset()
          Reset deserializer for re-use
 void setConstructor(java.lang.reflect.Constructor c)
          The Factory calls setConstructor.
private  void setSimpleTypeAttributes()
          Process any attributes we may have encountered (in onStartElement)
 
Methods inherited from class org.apache.axis.encoding.ser.SimpleDeserializer
 
Methods inherited from class org.apache.axis.encoding.DeserializerImpl
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, startElement, valueComplete
 
Methods inherited from class org.apache.axis.message.SOAPHandler
makeNewElement, onEndChild
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

val

java.lang.StringBuffer val

constructor

private java.lang.reflect.Constructor constructor

propertyMap

private java.util.Map propertyMap

attributeMap

private java.util.HashMap attributeMap

context

private org.apache.axis.encoding.DeserializationContext context

xmlType

public javax.xml.namespace.QName xmlType

javaType

public java.lang.Class javaType

typeDesc

private org.apache.axis.description.TypeDesc typeDesc

cacheStringDSer

protected SimpleListDeserializer cacheStringDSer

cacheXMLType

protected javax.xml.namespace.QName cacheXMLType
Constructor Detail

SimpleListDeserializer

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


SimpleListDeserializer

public SimpleListDeserializer(java.lang.Class javaType,
                              javax.xml.namespace.QName xmlType,
                              org.apache.axis.description.TypeDesc typeDesc)
Method Detail

reset

public void reset()
Reset deserializer for re-use

Overrides:
reset in class SimpleDeserializer

setConstructor

public void setConstructor(java.lang.reflect.Constructor c)
The Factory calls setConstructor.

Overrides:
setConstructor in class SimpleDeserializer

onStartChild

public org.apache.axis.message.SOAPHandler onStartChild(java.lang.String namespace,
                                                        java.lang.String localName,
                                                        java.lang.String prefix,
                                                        org.xml.sax.Attributes attributes,
                                                        org.apache.axis.encoding.DeserializationContext context)
                                                 throws org.xml.sax.SAXException
There should not be nested elements, so thow and exception if this occurs.

Specified by:
onStartChild in interface org.apache.axis.encoding.Deserializer
Overrides:
onStartChild in class SimpleDeserializer

characters

public void characters(char[] chars,
                       int start,
                       int end)
                throws org.xml.sax.SAXException
Append any characters received to the value. This method is defined by Deserializer.

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class SimpleDeserializer

onEndElement

public void onEndElement(java.lang.String namespace,
                         java.lang.String localName,
                         org.apache.axis.encoding.DeserializationContext context)
                  throws org.xml.sax.SAXException
Append any characters to the value. This method is defined by Deserializer.

Specified by:
onEndElement in interface org.apache.axis.encoding.Deserializer
Overrides:
onEndElement in class SimpleDeserializer

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.

Overrides:
makeValue in class SimpleDeserializer

makeUnitValue

private java.lang.Object makeUnitValue(java.lang.String source)
                                throws java.lang.Exception

onStartElement

public void onStartElement(java.lang.String namespace,
                           java.lang.String localName,
                           java.lang.String prefix,
                           org.xml.sax.Attributes attributes,
                           org.apache.axis.encoding.DeserializationContext context)
                    throws org.xml.sax.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 org.apache.axis.encoding.Deserializer
Overrides:
onStartElement in class SimpleDeserializer

setSimpleTypeAttributes

private void setSimpleTypeAttributes()
                              throws org.xml.sax.SAXException
Process any attributes we may have encountered (in onStartElement)