|
||||||||||
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.SimpleDeserializer
A deserializer for any simple type with a (String) constructor. Note: this class is designed so that subclasses need only override the makeValue method in order to construct objects of their own type.
Field Summary | |
protected SimpleDeserializer (src) |
cacheStringDSer
|
protected QName (src) |
cacheXMLType
|
java.lang.Class |
javaType
|
QName (src) |
xmlType
|
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 | |
SimpleDeserializer(java.lang.Class javaType,
QName (src) xmlType)
The Deserializer is constructed with the xmlType and javaType (which could be a java primitive like int.class) |
|
SimpleDeserializer(java.lang.Class javaType,
QName (src) xmlType,
TypeDesc (src) typeDesc)
|
Method Summary | |
void |
characters(char[] chars,
int start,
int end)
Append any characters received to the value. |
java.lang.Object |
makeValue(java.lang.String source)
Convert the string that has been accumulated into an Object. |
void |
onEndElement(java.lang.String namespace,
java.lang.String localName,
DeserializationContext (src) context)
Append any characters to the value. |
SOAPHandler (src) |
onStartChild(java.lang.String namespace,
java.lang.String localName,
java.lang.String prefix,
org.xml.sax.Attributes attributes,
DeserializationContext (src) context)
There should not be nested elements, so thow and exception if this occurs. |
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. |
void |
removeValueTargets()
Remove the Value Targets of the Deserializer. |
void |
reset()
Reset deserializer for re-use |
void |
setConstructor(java.lang.reflect.Constructor c)
The Factory calls setConstructor. |
Methods inherited from class org.jboss.axis.encoding.DeserializerImpl (src) |
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, 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 |
public QName (src) xmlType
public java.lang.Class javaType
protected SimpleDeserializer (src) cacheStringDSer
protected QName (src) cacheXMLType
Constructor Detail |
public SimpleDeserializer(java.lang.Class javaType, QName (src) xmlType)
public SimpleDeserializer(java.lang.Class javaType, QName (src) xmlType, TypeDesc (src) typeDesc)
Method Detail |
public void reset()
public void removeValueTargets()
removeValueTargets
in interface Deserializer (src)
removeValueTargets
in class DeserializerImpl (src)
public void setConstructor(java.lang.reflect.Constructor c)
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 characters(char[] chars, int start, int end) throws org.xml.sax.SAXException
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 java.lang.Object makeValue(java.lang.String source) throws java.lang.Exception
source
- the serialized value to be deserialized
java.lang.Exception
- any exception thrown by this method will be wrappedpublic 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
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |