public class SimpleListDeserializer extends SimpleDeserializer
Modifier and Type | Field and Description |
---|---|
protected SimpleListDeserializer |
cacheStringDSer |
protected QName |
cacheXMLType |
Class |
javaType |
QName |
xmlType |
STRING_CLASS
componentsReadyFlag, defaultType, id, isEnded, isHref, isNil, log, targets, value
myElement
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, startElement, valueComplete
makeNewElement, onEndChild
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public QName xmlType
public Class javaType
protected SimpleListDeserializer cacheStringDSer
protected QName cacheXMLType
public SimpleListDeserializer(Class javaType, QName xmlType)
public void reset()
reset
in class SimpleDeserializer
public void setConstructor(Constructor c)
setConstructor
in class SimpleDeserializer
public SOAPHandler onStartChild(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws SAXException
onStartChild
in class SimpleDeserializer
namespace
- 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.SAXException
public void characters(char[] chars, int start, int end) throws SAXException
characters
in interface ContentHandler
characters
in class SimpleDeserializer
SAXException
public void onEndElement(String namespace, String localName, DeserializationContext context) throws SAXException
onEndElement
in class SimpleDeserializer
namespace
- is the namespace of the child elementlocalName
- is the local name of the child elementcontext
- is the deserialization contextSAXException
public Object makeValue(String source) throws Exception
makeValue
in class SimpleDeserializer
source
- the serialized value to be deserializedException
- any exception thrown by this method will be wrappedpublic void onStartElement(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws SAXException
onStartElement
in class SimpleDeserializer
namespace
- 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 DeserializationContextSAXException
Copyright © The Apache Software Foundation. All Rights Reserved.