public abstract class BaseXMLObjectUnmarshaller extends AbstractXMLObjectUnmarshaller
Unmarshaller
classes.
This base class provides no-op implementations of the methods processAttribute(XMLObject, Attr)
,
processChildElement(XMLObject, XMLObject)
, and processElementContent(XMLObject, String)
.
Developers extending this class may need to override one or both of these.Constructor and Description |
---|
BaseXMLObjectUnmarshaller() |
Modifier and Type | Method and Description |
---|---|
protected void |
processAttribute(XMLObject xmlObject,
Attr attribute)
Called after an attribute has been unmarshalled so that it can be added to the XMLObject.
|
protected void |
processChildElement(XMLObject parentXMLObject,
XMLObject childXMLObject)
Called after a child element has been unmarshalled so that it can be added to the parent XMLObject.
|
protected void |
processElementContent(XMLObject xmlObject,
String elementContent)
Called if the element being unmarshalled contained textual content so that it can be added to the XMLObject.
|
buildXMLObject, checkElementIsTarget, checkIDAttribute, unmarshall, unmarshallAttribute, unmarshallChildElement, unmarshallNamespaceAttribute, unmarshallSchemaInstanceAttributes, unmarshallTextContent
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException
processAttribute
in class AbstractXMLObjectUnmarshaller
xmlObject
- the XMLObjectattribute
- the attributeUnmarshallingException
- thrown if there is a problem adding the attribute to the XMLObjectprotected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException
processChildElement
in class AbstractXMLObjectUnmarshaller
parentXMLObject
- the parent XMLObjectchildXMLObject
- the child XMLObjectUnmarshallingException
- thrown if there is a problem adding the child to the parentprotected void processElementContent(XMLObject xmlObject, String elementContent)
processElementContent
in class AbstractXMLObjectUnmarshaller
xmlObject
- XMLObject the content will be given toelementContent
- the Element's contentCopyright © 2018 JBoss by Red Hat. All rights reserved.