public class QNameDeserializer extends SimpleDeserializer
cacheStringDSer, cacheXMLType, javaType, STRING_CLASS, xmlType
componentsReadyFlag, defaultType, id, isEnded, isHref, isNil, log, targets, value
myElement
Constructor and Description |
---|
QNameDeserializer(Class javaType,
QName xmlType)
The Deserializer is constructed with the xmlType and
javaType
|
Modifier and Type | Method and Description |
---|---|
Object |
makeValue(String source)
The simple deserializer provides most of the stuff.
|
void |
onStartElement(String namespace,
String localName,
String prefix,
Attributes attributes,
DeserializationContext context)
Set the bean properties that correspond to element attributes.
|
characters, onEndElement, onStartChild, reset, setConstructor
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, startElement, valueComplete
makeNewElement, onEndChild
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public Object makeValue(String source)
makeValue
in class SimpleDeserializer
source
- the serialized value to be deserializedpublic void onStartElement(String namespace, String localName, String prefix, Attributes attributes, DeserializationContext context) throws SAXException
SimpleDeserializer
onStartElement
in class SimpleDeserializer
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 DeserializationContextSAXException
Copyright © The Apache Software Foundation. All Rights Reserved.