org.opensaml.xml.io
Class BaseXMLObjectUnmarshaller

java.lang.Object
  extended by org.opensaml.xml.io.AbstractXMLObjectUnmarshaller
      extended by org.opensaml.xml.io.BaseXMLObjectUnmarshaller
All Implemented Interfaces:
Unmarshaller

public abstract class BaseXMLObjectUnmarshaller
extends AbstractXMLObjectUnmarshaller

Base class for 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 Summary
BaseXMLObjectUnmarshaller()
           
 
Method Summary
protected  void processAttribute(XMLObject xmlObject, org.w3c.dom.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, java.lang.String elementContent)
          Called if the element being unmarshalled contained textual content so that it can be added to the XMLObject.
 
Methods inherited from class org.opensaml.xml.io.AbstractXMLObjectUnmarshaller
buildXMLObject, checkElementIsTarget, checkIDAttribute, unmarshall, unmarshallAttribute, unmarshallChildElement, unmarshallNamespaceAttribute, unmarshallSchemaInstanceAttributes, unmarshallTextContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseXMLObjectUnmarshaller

public BaseXMLObjectUnmarshaller()
Method Detail

processAttribute

protected void processAttribute(XMLObject xmlObject,
                                org.w3c.dom.Attr attribute)
                         throws UnmarshallingException
Called after an attribute has been unmarshalled so that it can be added to the XMLObject.

Specified by:
processAttribute in class AbstractXMLObjectUnmarshaller
Parameters:
xmlObject - the XMLObject
attribute - the attribute
Throws:
UnmarshallingException - thrown if there is a problem adding the attribute to the XMLObject

processChildElement

protected void processChildElement(XMLObject parentXMLObject,
                                   XMLObject childXMLObject)
                            throws UnmarshallingException
Called after a child element has been unmarshalled so that it can be added to the parent XMLObject.

Specified by:
processChildElement in class AbstractXMLObjectUnmarshaller
Parameters:
parentXMLObject - the parent XMLObject
childXMLObject - the child XMLObject
Throws:
UnmarshallingException - thrown if there is a problem adding the child to the parent

processElementContent

protected void processElementContent(XMLObject xmlObject,
                                     java.lang.String elementContent)
Called if the element being unmarshalled contained textual content so that it can be added to the XMLObject.

Specified by:
processElementContent in class AbstractXMLObjectUnmarshaller
Parameters:
xmlObject - XMLObject the content will be given to
elementContent - the Element's content


Copyright © 2006-2010 Internet2. All Rights Reserved.