public abstract class AbstractSAMLObjectMarshaller extends AbstractXMLObjectMarshaller
Marshaller
interface
that handles most of the boilerplate code for Marshallers.Constructor and Description |
---|
AbstractSAMLObjectMarshaller() |
Modifier and Type | Method and Description |
---|---|
Element |
marshall(XMLObject xmlObject,
Document document)
Marshall this element, and its children, into a W3C DOM element.
|
Element |
marshall(XMLObject xmlObject,
Element parentElement)
Marshall the given XMLObject and append it as a child to the given parent element.
|
protected void |
marshallAttributes(XMLObject xmlObject,
Element domElement)
No-op method.
|
protected void |
marshallElementContent(XMLObject xmlObject,
Element domElement)
No-op method.
|
marshall, marshallChildElements, marshallInto, marshallNamespacePrefix, marshallNamespaces, marshallSchemaInstanceAttributes, marshallUnknownAttributes, setDocumentElement
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException
marshallAttributes
in class AbstractXMLObjectMarshaller
xmlObject
- the XMLObject to marshalldomElement
- the W3C DOM elementMarshallingException
- thrown if there is a problem marshalling the elementprotected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException
marshallElementContent
in class AbstractXMLObjectMarshaller
xmlObject
- the XMLObjectdomElement
- the DOM element recieving the contentMarshallingException
- thrown if the textual content can not be added to the DOM elementpublic Element marshall(XMLObject xmlObject, Document document) throws MarshallingException
marshall
in interface Marshaller
marshall
in class AbstractXMLObjectMarshaller
xmlObject
- the object to marshalldocument
- the DOM document the marshalled element will be placed inMarshallingException
- thrown if there is a problem marshalling the given objectpublic Element marshall(XMLObject xmlObject, Element parentElement) throws MarshallingException
marshall
in interface Marshaller
marshall
in class AbstractXMLObjectMarshaller
xmlObject
- the XMLObject to be marshalledparentElement
- the parent of the Element resulting from marshalling the given XMLObjectMarshallingException
- thrown if the given XMLObject can not be marshalled.Copyright © 2016 JBoss by Red Hat. All rights reserved.