org.apache.axis.encoding.ser
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(java.lang.String namespace,
java.lang.String localName,
DeserializationContext context) |
SOAPHandler |
onStartChild(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
onStartChild is called on each child element.
|
void |
onStartElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
This method is invoked after startElement when the element requires
deserialization (i.e.
|
void |
setChildValue(java.lang.Object value,
java.lang.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(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 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 DeserializationContextorg.xml.sax.SAXException
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 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.org.xml.sax.SAXException
public void onEndChild(java.lang.String namespace, java.lang.String localName, DeserializationContext context) throws org.xml.sax.SAXException
onEndChild
in class SOAPHandler
org.xml.sax.SAXException
public void characters(char[] chars, int i, int i1) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class SOAPHandler
org.xml.sax.SAXException
public void setChildValue(java.lang.Object value, java.lang.Object hint) throws org.xml.sax.SAXException
setChildValue
in class DeserializerImpl
value
- value of the array elementhint
- index of the array element (Integer)org.xml.sax.SAXException
public void valueComplete() throws org.xml.sax.SAXException
valueComplete
in class DeserializerImpl
org.xml.sax.SAXException
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.