|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.axis.message.SOAPHandler
org.apache.axis.encoding.DeserializerImpl
org.apache.axis.encoding.ser.BeanDeserializer
public class BeanDeserializer
General purpose deserializer for an arbitrary java bean.
Field Summary | |
---|---|
protected SimpleDeserializer |
cacheStringDSer
|
protected QName |
cacheXMLType
|
protected int |
collectionIndex
|
protected Target |
constructorTarget
Constructor Target object to use (if constructorToUse != null) |
protected java.lang.reflect.Constructor |
constructorToUse
Constructor if no default constructor |
protected static org.apache.commons.logging.Log |
log
|
protected QName |
prevQName
|
protected java.util.Map |
propertyMap
|
protected TypeDesc |
typeDesc
Type metadata about this class for XML deserialization |
Fields inherited from class org.apache.axis.encoding.DeserializerImpl |
---|
componentsReadyFlag, defaultType, id, isEnded, isHref, isNil, targets, value |
Fields inherited from class org.apache.axis.message.SOAPHandler |
---|
myElement |
Constructor Summary | |
---|---|
BeanDeserializer(java.lang.Class javaType,
QName xmlType)
|
|
BeanDeserializer(java.lang.Class javaType,
QName xmlType,
TypeDesc typeDesc)
|
|
BeanDeserializer(java.lang.Class javaType,
QName xmlType,
TypeDesc typeDesc,
java.util.Map propertyMap)
|
Method Summary | |
---|---|
void |
characters(char[] chars,
int start,
int end)
|
BeanPropertyDescriptor |
getAnyPropertyDesc()
Get a BeanPropertyDescriptor which indicates where we should put extensibility elements (i.e. |
protected Deserializer |
getDeserializer(QName xmlType,
java.lang.Class javaType,
java.lang.String href,
DeserializationContext context)
Get the Deserializer for the attribute or child element. |
protected void |
handleMixedContent()
|
void |
onEndElement(java.lang.String namespace,
java.lang.String localName,
DeserializationContext context)
onEndElement is called by endElement. |
SOAPHandler |
onStartChild(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
Deserializer interface called on each child element encountered in the XML stream. |
void |
onStartElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
Set the bean properties that correspond to element attributes. |
void |
startElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext context)
startElement The ONLY reason that this method is overridden is so that the object value can be set or a reasonable exception is thrown indicating that the object cannot be created. |
Methods inherited from class org.apache.axis.encoding.DeserializerImpl |
---|
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, 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 static org.apache.commons.logging.Log log
protected java.util.Map propertyMap
protected QName prevQName
protected java.lang.reflect.Constructor constructorToUse
protected Target constructorTarget
protected TypeDesc typeDesc
protected int collectionIndex
protected SimpleDeserializer cacheStringDSer
protected QName cacheXMLType
Constructor Detail |
---|
public BeanDeserializer(java.lang.Class javaType, QName xmlType)
public BeanDeserializer(java.lang.Class javaType, QName xmlType, TypeDesc typeDesc)
public BeanDeserializer(java.lang.Class javaType, QName xmlType, TypeDesc typeDesc, java.util.Map propertyMap)
Method Detail |
---|
public void startElement(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, DeserializationContext context) throws org.xml.sax.SAXException
startElement
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
org.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 BeanPropertyDescriptor getAnyPropertyDesc()
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 attributes on the element...used to get the
typecontext
- is the DeserializationContext
org.xml.sax.SAXException
protected Deserializer getDeserializer(QName xmlType, java.lang.Class javaType, java.lang.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[] chars, int start, int end) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class SOAPHandler
org.xml.sax.SAXException
public void onEndElement(java.lang.String namespace, java.lang.String localName, DeserializationContext context) throws org.xml.sax.SAXException
DeserializerImpl
onEndElement
in class DeserializerImpl
namespace
- is the namespace of the child elementlocalName
- is the local name of the child elementcontext
- is the deserialization context
org.xml.sax.SAXException
protected void handleMixedContent() throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |