|
|||||||||||
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.jboss.net.axis.server.EntityBeanDeserializer
Server-side deserializer hitting an existing entity bean. Derived from the axis BeanDeserializer. Currently relies on some silly conventions that must be configurable in the deployment descriptor.
Nested Class Summary | |
class |
EntityBeanDeserializer.BeanPropertyTarget
Class which knows how to update a bean property |
class |
EntityBeanDeserializer.FindPropertyTarget
|
Field Summary | |
protected int |
collectionIndex
|
protected Collection |
fieldSetters
|
protected List |
findElements
|
protected Method |
findMethod
|
protected Object[] |
findObjects
|
protected Object |
home
|
protected boolean |
initialized
|
protected Class |
javaType
|
protected Map |
options
|
protected Map |
propertyMap
|
protected org.apache.axis.description.TypeDesc |
typeDesc
|
protected javax.xml.namespace.QName |
xmlType
|
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 | |
EntityBeanDeserializer(Class remoteType,
javax.xml.namespace.QName xmlType)
Construct a new BeanSerializer |
Method Summary | |
Map |
getOptions()
return the set of options |
static org.jboss.net.axis.server.EntityBeanDeserializer.BeanPropertyDescriptor[] |
getPd(Class javaType)
Create a BeanPropertyDescriptor array for the indicated class. |
protected String |
getStringOption(String key,
String def)
returns an option string with a default |
protected void |
initialize(org.apache.axis.MessageContext ctx)
initialize the deserializer |
void |
onEndElement(String namespace,
String localName,
org.apache.axis.encoding.DeserializationContext context)
|
org.apache.axis.message.SOAPHandler |
onStartChild(String namespace,
String localName,
String prefix,
Attributes attributes,
org.apache.axis.encoding.DeserializationContext context)
Deserializer interface called on each child element encountered in the XML stream. |
void |
onStartElement(String namespace,
String localName,
String qName,
Attributes attributes,
org.apache.axis.encoding.DeserializationContext context)
Set the bean properties that correspond to element attributes. |
void |
setOptions(Map options)
register a set of options |
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 |
characters, 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 |
Methods inherited from interface javax.xml.rpc.encoding.Deserializer |
getMechanismType |
Field Detail |
protected Map options
protected Object home
protected Method findMethod
protected List findElements
protected Object[] findObjects
protected org.apache.axis.description.TypeDesc typeDesc
protected javax.xml.namespace.QName xmlType
protected Class javaType
protected Map propertyMap
protected int collectionIndex
protected Collection fieldSetters
protected boolean initialized
Constructor Detail |
public EntityBeanDeserializer(Class remoteType, javax.xml.namespace.QName xmlType) throws Exception
remoteType
- remote interface of the entity beanxmlType
- fully-qualified xml tag-name of the corresponding xml structureMethod Detail |
protected String getStringOption(String key, String def)
protected void initialize(org.apache.axis.MessageContext ctx) throws SAXException
SAXException
public void setOptions(Map options)
ParameterizableDeserializer
setOptions
in interface ParameterizableDeserializer
public Map getOptions()
ParameterizableDeserializer
getOptions
in interface ParameterizableDeserializer
public org.apache.axis.message.SOAPHandler onStartChild(String namespace, String localName, String prefix, Attributes attributes, org.apache.axis.encoding.DeserializationContext context) throws SAXException
onStartChild
in interface org.apache.axis.encoding.Deserializer
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 onStartElement(String namespace, String localName, String qName, Attributes attributes, org.apache.axis.encoding.DeserializationContext context) throws SAXException
onStartElement
in interface org.apache.axis.encoding.Deserializer
namespace
- is the namespace of the elementlocalName
- is the name of the elementqName
- is the prefixed qName of the elementattributes
- are the attributes on the element...used to get the typecontext
- is the DeserializationContext
SAXException
public void onEndElement(String namespace, String localName, org.apache.axis.encoding.DeserializationContext context) throws SAXException
onEndElement
in interface org.apache.axis.encoding.Deserializer
SAXException
public static org.jboss.net.axis.server.EntityBeanDeserializer.BeanPropertyDescriptor[] getPd(Class javaType)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |