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, valuemyElement| 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, startElementmakeNewElementendDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningprotected 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 DeserializerImplnamespace - 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 DeserializationContextSAXExceptionpublic SOAPHandler onStartChild(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws 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.SAXExceptionpublic void onEndChild(String namespace, String localName, DeserializationContext context) throws SAXException
onEndChild in class SOAPHandlerSAXExceptionpublic void characters(char[] chars,
int i,
int i1)
throws SAXException
characters in interface ContentHandlercharacters in class SOAPHandlerSAXExceptionpublic void setChildValue(Object value, Object hint) throws SAXException
setChildValue in class DeserializerImplvalue - value of the array elementhint - index of the array element (Integer)SAXExceptionpublic void valueComplete()
throws SAXException
valueComplete in class DeserializerImplSAXExceptionCopyright © The Apache Software Foundation. All Rights Reserved.