public abstract class BeanExceptionCodecBase extends BeanCodecBase
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Constructor |
exceptionCtor |
private static java.lang.Object |
NULL_MARKER |
QUALIFIED_TOP_LEVEL_ELE_ONLY
Constructor and Description |
---|
BeanExceptionCodecBase() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(XMLName name,
XMLInputStream reader,
DeserializationContext context)
Take an XML instance, create and populate the corresponding
Object.
|
private java.lang.reflect.Constructor |
getConstructor() |
protected abstract int[] |
getConstructorProperties() |
private java.lang.Object[] |
getConstuctorProps(java.lang.Object[] props) |
protected abstract java.lang.String |
getJavaType() |
private java.lang.Object |
invokeConstructor(java.lang.Object[] props) |
private void |
invokeSetters(java.lang.Object obj,
java.lang.Object[] props) |
private java.lang.Object[] |
processExceptionElements(XMLInputStream reader,
DeserializationContext context) |
createObject, findMatchingAttributeProperty, findMatchingElementProperty, gatherContents, getChoiceProperty, getCompositor, invokeGetter, invokeSetter, isPropertySet, processAllElements, processAttribute, processAttributes, processElement, processElements, smartCreateObject, writeAttributeContents, writeContents, writeElementContents
addPrefixToMap, checkForId, checkForRef, checkValidityConstraint, createIdAttribute, createRefAttribute, declareNamespace, deserialize, deserializeReferredObject, fillPrefixAddToMap, fillPrefixDeclareNamespace, getNextStartElement, getNextStartElement, getXmlType, isCompleteType, isSoapEncoding, isStrictValidation, isStrictValidation, removePrefixFromMap, serialize_internal, serialize, writeEndElement, writeStartElement, writeXsiType
getDeserializerAs, getMechanismType, getSerializerAs, getSupportedMechanismTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertyCount, getPropertyInfo
private static final java.lang.Object NULL_MARKER
private java.lang.reflect.Constructor exceptionCtor
protected abstract int[] getConstructorProperties()
protected abstract java.lang.String getJavaType()
public java.lang.Object deserialize(XMLName name, XMLInputStream reader, DeserializationContext context) throws DeserializationException
Deserializer
deserialize
may be called recusively as
needed to build contained Objects thus building up the full
graph of contained Objects.deserialize
in class BeanCodecBase
name
- The expected name of the XML elementreader
- The XML stream containing the XML to deserializecontext
- The context passed to each invocationDeserializationException
- If an error occursprivate java.lang.Object[] getConstuctorProps(java.lang.Object[] props)
private void invokeSetters(java.lang.Object obj, java.lang.Object[] props)
private java.lang.Object invokeConstructor(java.lang.Object[] props) throws DeserializationException
DeserializationException
private java.lang.reflect.Constructor getConstructor() throws DeserializationException
DeserializationException
private java.lang.Object[] processExceptionElements(XMLInputStream reader, DeserializationContext context) throws DeserializationException, XMLStreamException