|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.axis.message.SOAPHandler org.apache.axis.encoding.DeserializerImpl org.apache.axis.encoding.ser.BeanDeserializer
General purpose deserializer for an arbitrary java bean.
Field Summary | |
protected SimpleDeserializer |
cacheStringDSer
|
protected javax.xml.namespace.QName |
cacheXMLType
|
protected int |
collectionIndex
|
protected DeferedBeanConstruction |
deferedConstruction
|
protected String |
lastFieldName
|
protected javax.xml.namespace.QName |
prevQName
|
protected Map |
propertyMap
|
protected TypeDesc |
typeDesc
Type metadata about this class for XML deserialization |
Fields inherited from class org.apache.axis.encoding.DeserializerImpl |
defaultType, id, isEnded, isHref, isNil, targets, value |
Fields inherited from class org.apache.axis.message.SOAPHandler |
myElement |
Constructor Summary | |
BeanDeserializer(Class javaType,
javax.xml.namespace.QName xmlType)
|
|
BeanDeserializer(Class javaType,
javax.xml.namespace.QName xmlType,
TypeDesc typeDesc)
|
|
BeanDeserializer(Class javaType,
javax.xml.namespace.QName xmlType,
TypeDesc typeDesc,
Map propertyMap)
|
Method Summary | |
void |
characters(char[] p1,
int p2,
int p3)
This will assign text content to the bean property that is an element with the asContent flag set to true. |
BeanPropertyDescriptor |
getAnyPropertyDesc()
Get a BeanPropertyDescriptor which indicates where we should put extensibility elements (i.e. |
protected Deserializer |
getDeserializer(javax.xml.namespace.QName xmlType,
Class javaType,
String href,
DeserializationContext context)
Get the Deserializer for the attribute or child element. |
void |
onEndElement(String namespace,
String localName,
DeserializationContext context)
Check that we have a valid bean instance |
SOAPHandler |
onStartChild(String namespace,
String localName,
String prefix,
Attributes attributes,
DeserializationContext context)
Deserializer interface called on each child element encountered in the XML stream. |
void |
onStartElement(String namespace,
String localName,
String prefix,
Attributes attributes,
DeserializationContext context)
Set the bean properties that correspond to element attributes. |
Methods inherited from class org.apache.axis.encoding.DeserializerImpl |
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, startElement, valueComplete |
Methods inherited from class org.apache.axis.message.SOAPHandler |
makeNewElement, onEndChild |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Map propertyMap
protected javax.xml.namespace.QName prevQName
protected TypeDesc typeDesc
protected int collectionIndex
protected SimpleDeserializer cacheStringDSer
protected javax.xml.namespace.QName cacheXMLType
protected String lastFieldName
protected DeferedBeanConstruction deferedConstruction
Constructor Detail |
public BeanDeserializer(Class javaType, javax.xml.namespace.QName xmlType)
public BeanDeserializer(Class javaType, javax.xml.namespace.QName xmlType, TypeDesc typeDesc)
public BeanDeserializer(Class javaType, javax.xml.namespace.QName xmlType, TypeDesc typeDesc, Map propertyMap)
Method Detail |
public void onStartElement(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws SAXException
onStartElement
in interface Deserializer
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 attributes on the element...used to get the
typecontext
- is the DeserializationContext
SAXException
public SOAPHandler onStartChild(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws SAXException
onStartChild
in interface Deserializer
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 onEndElement(String namespace, String localName, DeserializationContext context) throws SAXException
onEndElement
in interface Deserializer
onEndElement
in class DeserializerImpl
namespace
- is the namespace of the child elementlocalName
- is the local name of the child elementcontext
- is the deserialization context
SAXException
public BeanPropertyDescriptor getAnyPropertyDesc()
protected Deserializer getDeserializer(javax.xml.namespace.QName xmlType, Class javaType, String href, DeserializationContext context)
xmlType
- QName of the attribute/child element or null if not known.javaType
- Class of the corresponding propertyhref
- String is the value of the href attribute, which is used
to determine whether the child element is complete or an
href to another element.context
- DeserializationContext
public void characters(char[] p1, int p2, int p3) throws SAXException
characters
in interface ContentHandler
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |