Class XSQNameUnmarshaller
- java.lang.Object
-
- org.opensaml.core.xml.io.AbstractXMLObjectUnmarshaller
-
- org.opensaml.core.xml.schema.impl.XSQNameUnmarshaller
-
- All Implemented Interfaces:
Unmarshaller
public class XSQNameUnmarshaller extends AbstractXMLObjectUnmarshaller
A thread-safe unmarshaller forXSQNames.
-
-
Constructor Summary
Constructors Constructor Description XSQNameUnmarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprocessChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)Called after a child element has been unmarshalled so that it can be added to the parent XMLObject.protected voidunmarshallTextContent(XMLObject xmlObject, Text content)Unmarshalls the given Text node into a usable string by way ofCharacterData.getData()and passes it off toAbstractXMLObjectUnmarshaller.processElementContent(XMLObject, String)if the string is not null and contains something other than whitespace.-
Methods inherited from class org.opensaml.core.xml.io.AbstractXMLObjectUnmarshaller
buildXMLObject, checkIDAttribute, processAttribute, processElementContent, processUnknownAttribute, unmarshall, unmarshallAttribute, unmarshallChildElement, unmarshallNamespaceAttribute, unmarshallSchemaInstanceAttributes
-
-
-
-
Method Detail
-
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. The default implementation of this method is a no-op.- Overrides:
processChildElementin classAbstractXMLObjectUnmarshaller- Parameters:
parentXMLObject- the parent XMLObjectchildXMLObject- the child XMLObject- Throws:
UnmarshallingException- thrown if there is a problem adding the child to the parent
-
unmarshallTextContent
protected void unmarshallTextContent(XMLObject xmlObject, Text content) throws UnmarshallingException
Unmarshalls the given Text node into a usable string by way ofCharacterData.getData()and passes it off toAbstractXMLObjectUnmarshaller.processElementContent(XMLObject, String)if the string is not null and contains something other than whitespace.- Overrides:
unmarshallTextContentin classAbstractXMLObjectUnmarshaller- Parameters:
xmlObject- the XMLObject receiving the element contentcontent- the textual content- Throws:
UnmarshallingException- thrown if there is a problem unmarshalling the text node
-
-