public class ArrayDeserializer extends DeserializerImpl
Modifier and Type | Class and Description |
---|---|
class |
ArrayDeserializer.ArrayListExtension
During processing, the Array Deserializer stores the array in
an ArrayListExtension class.
|
Modifier and Type | Field and Description |
---|---|
QName |
arrayType |
int |
curIndex |
protected static org.apache.commons.logging.Log |
log |
componentsReadyFlag, defaultType, id, isEnded, isHref, isNil, targets, value
myElement
Constructor and Description |
---|
ArrayDeserializer() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] chars,
int i,
int i1) |
void |
onEndChild(String namespace,
String localName,
DeserializationContext context) |
SOAPHandler |
onStartChild(String namespace,
String localName,
String prefix,
Attributes attributes,
DeserializationContext context)
onStartChild is called on each child element.
|
void |
onStartElement(String namespace,
String localName,
String prefix,
Attributes attributes,
DeserializationContext context)
This method is invoked after startElement when the element requires
deserialization (i.e. the element is not an href & the value is not nil)
DeserializerImpl provides default behavior, which simply
involves obtaining a correct Deserializer and plugging its handler.
|
void |
setChildValue(Object value,
Object hint)
set is called during deserialization to assign
the Object value to the array position indicated by hint.
|
void |
valueComplete()
When valueComplete() is invoked on the array,
first convert the array value into the expected array.
|
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, onEndElement, registerValueTarget, removeValueTargets, setDefaultType, setValue, setValue, startElement
makeNewElement
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
protected static org.apache.commons.logging.Log log
public QName arrayType
public int curIndex
public void onStartElement(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws SAXException
onStartElement
in class DeserializerImpl
namespace
- is the namespace of the elementlocalName
- is the name of the elementprefix
- is the prefix of the elementattributes
- are the attrs on the element...used to get the typecontext
- is the DeserializationContextSAXException
public SOAPHandler onStartChild(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws SAXException
onStartChild
in class DeserializerImpl
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 onEndChild(String namespace, String localName, DeserializationContext context) throws SAXException
onEndChild
in class SOAPHandler
SAXException
public void characters(char[] chars, int i, int i1) throws SAXException
characters
in interface ContentHandler
characters
in class SOAPHandler
SAXException
public void setChildValue(Object value, Object hint) throws SAXException
setChildValue
in class DeserializerImpl
value
- value of the array elementhint
- index of the array element (Integer)SAXException
public void valueComplete() throws SAXException
valueComplete
in class DeserializerImpl
SAXException
Copyright © The Apache Software Foundation. All Rights Reserved.