|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.jboss.axis.message.SOAPHandler (src)
org.jboss.axis.encoding.DeserializerImpl (src)
org.jboss.axis.encoding.ser.BeanDeserializer
General purpose deserializer for an arbitrary java bean.
Field Summary | |
protected SimpleDeserializer (src) |
cacheStringDSer
|
protected QName (src) |
cacheXMLType
|
protected int |
collectionIndex
|
protected DeferedBeanConstruction (src) |
deferedConstruction
|
protected java.lang.String |
lastFieldName
|
protected QName (src) |
prevQName
|
protected java.util.Map |
propertyMap
|
protected TypeDesc (src) |
typeDesc
Type metadata about this class for XML deserialization |
Fields inherited from class org.jboss.axis.encoding.DeserializerImpl (src) |
defaultType, id, isEnded, isHref, isNil, targets, value |
Fields inherited from class org.jboss.axis.message.SOAPHandler (src) |
myElement |
Constructor Summary | |
BeanDeserializer(java.lang.Class javaType,
QName (src) xmlType)
|
|
BeanDeserializer(java.lang.Class javaType,
QName (src) xmlType,
TypeDesc (src) typeDesc)
|
|
BeanDeserializer(java.lang.Class javaType,
QName (src) xmlType,
TypeDesc (src) typeDesc,
java.util.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 (src) |
getAnyPropertyDesc()
Get a BeanPropertyDescriptor which indicates where we should put extensibility elements (i.e. |
protected Deserializer (src) |
getDeserializer(QName (src) xmlType,
java.lang.Class javaType,
java.lang.String href,
DeserializationContext (src) context)
Get the Deserializer for the attribute or child element. |
void |
onEndElement(java.lang.String namespace,
java.lang.String localName,
DeserializationContext (src) context)
Check that we have a valid bean instance |
SOAPHandler (src) |
onStartChild(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext (src) 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 (src) context)
Set the bean properties that correspond to element attributes. |
Methods inherited from class org.jboss.axis.encoding.DeserializerImpl (src) |
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, startElement, valueComplete |
Methods inherited from class org.jboss.axis.message.SOAPHandler (src) |
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 java.util.Map propertyMap
protected QName (src) prevQName
protected TypeDesc (src) typeDesc
protected int collectionIndex
protected SimpleDeserializer (src) cacheStringDSer
protected QName (src) cacheXMLType
protected java.lang.String lastFieldName
protected DeferedBeanConstruction (src) deferedConstruction
Constructor Detail |
public BeanDeserializer(java.lang.Class javaType, QName (src) xmlType)
public BeanDeserializer(java.lang.Class javaType, QName (src) xmlType, TypeDesc (src) typeDesc)
public BeanDeserializer(java.lang.Class javaType, QName (src) xmlType, TypeDesc (src) typeDesc, java.util.Map propertyMap)
Method Detail |
public void onStartElement(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, DeserializationContext (src) context) throws org.xml.sax.SAXException
onStartElement
in interface Deserializer (src)
onStartElement
in class DeserializerImpl (src)
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 (src) onStartChild(java.lang.String namespace, java.lang.String localName, java.lang.String prefix, org.xml.sax.Attributes attributes, DeserializationContext (src) context) throws org.xml.sax.SAXException
onStartChild
in interface Deserializer (src)
onStartChild
in class DeserializerImpl (src)
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 onEndElement(java.lang.String namespace, java.lang.String localName, DeserializationContext (src) context) throws org.xml.sax.SAXException
onEndElement
in interface Deserializer (src)
onEndElement
in class DeserializerImpl (src)
namespace
- is the namespace of the child elementlocalName
- is the local name of the child elementcontext
- is the deserialization context
org.xml.sax.SAXException
public BeanPropertyDescriptor (src) getAnyPropertyDesc()
protected Deserializer (src) getDeserializer(QName (src) xmlType, java.lang.Class javaType, java.lang.String href, DeserializationContext (src) 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 org.xml.sax.SAXException
org.xml.sax.SAXException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |