org.apache.axis.encoding.ser
public class SimpleDeserializer extends DeserializerImpl
| Modifier and Type | Field and Description |
|---|---|
protected SimpleDeserializer |
cacheStringDSer |
protected QName |
cacheXMLType |
protected DeserializationContext |
context |
java.lang.Class |
javaType |
static java.lang.Class[] |
STRING_CLASS |
QName |
xmlType |
componentsReadyFlag, defaultType, id, isEnded, isHref, isNil, log, targets, valuemyElement| Constructor and Description |
|---|
SimpleDeserializer(java.lang.Class javaType,
QName xmlType)
The Deserializer is constructed with the xmlType and
javaType (which could be a java primitive like int.class)
|
SimpleDeserializer(java.lang.Class javaType,
QName xmlType,
TypeDesc typeDesc) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] chars,
int start,
int end)
Append any characters received to the value.
|
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,
DeserializationContext context)
Append any characters to the value.
|
SOAPHandler |
onStartChild(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
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,
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.
|
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, startElement, valueCompletemakeNewElement, onEndChildendDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningpublic static final java.lang.Class[] STRING_CLASS
public QName xmlType
public java.lang.Class javaType
protected DeserializationContext context
protected SimpleDeserializer cacheStringDSer
protected QName cacheXMLType
public SimpleDeserializer(java.lang.Class javaType,
QName xmlType)
public void reset()
public void setConstructor(java.lang.reflect.Constructor c)
public SOAPHandler onStartChild(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, DeserializationContext context) throws org.xml.sax.SAXException
onStartChild in class DeserializerImplnamespace - is the namespace of the child elementlocalName - is the local name of the child elementprefix - is the prefix used on the name of the child elementattributes - are the attributes of the child elementcontext - is the deserialization context.org.xml.sax.SAXExceptionpublic void characters(char[] chars,
int start,
int end)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class SOAPHandlerorg.xml.sax.SAXExceptionpublic void onEndElement(java.lang.String namespace,
java.lang.String localName,
DeserializationContext context)
throws org.xml.sax.SAXException
onEndElement in class DeserializerImplnamespace - is the namespace of the child elementlocalName - is the local name of the child elementcontext - is the deserialization contextorg.xml.sax.SAXExceptionpublic java.lang.Object makeValue(java.lang.String source)
throws java.lang.Exception
source - the serialized value to be deserializedjava.lang.Exception - any exception thrown by this method will be wrappedpublic void onStartElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
throws org.xml.sax.SAXException
onStartElement in class DeserializerImplnamespace - is the namespace of the elementlocalName - is the name of the elementprefix - is the prefix of the elementattributes - are the attributes on the element...used to get the typecontext - is the DeserializationContextorg.xml.sax.SAXExceptionCopyright ? 2005 Apache Web Services Project. All Rights Reserved.