Package org.opensaml.saml.common
Class AbstractSAMLObjectMarshaller
- java.lang.Object
-
- org.opensaml.core.xml.io.AbstractXMLObjectMarshaller
-
- org.opensaml.saml.common.AbstractSAMLObjectMarshaller
-
- All Implemented Interfaces:
Marshaller
public abstract class AbstractSAMLObjectMarshaller extends AbstractXMLObjectMarshaller
A thread safe, abstract implementation of theMarshallerinterface that handles most of the boilerplate code for Marshallers.
-
-
Constructor Summary
Constructors Constructor Description AbstractSAMLObjectMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Elementmarshall(XMLObject xmlObject, Document document)Elementmarshall(XMLObject xmlObject, Element parentElement)protected voidmarshallAttributes(XMLObject xmlObject, Element domElement)No-op method.protected voidmarshallElementContent(XMLObject xmlObject, Element domElement)No-op method.-
Methods inherited from class org.opensaml.core.xml.io.AbstractXMLObjectMarshaller
marshall, marshallAttributeIDness, marshallChildElements, marshallInto, marshallNamespacePrefix, marshallNamespaces, marshallSchemaInstanceAttributes, marshallUnknownAttributes, setDocumentElement
-
-
-
-
Method Detail
-
marshallAttributes
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException
No-op method. Extending implementations should override this method if they have attributes to marshall into the Element.- Overrides:
marshallAttributesin classAbstractXMLObjectMarshaller- Throws:
MarshallingException
-
marshallElementContent
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException
No-op method. Extending implementations should override this method if they have text content to marshall into the Element.- Overrides:
marshallElementContentin classAbstractXMLObjectMarshaller- Throws:
MarshallingException
-
marshall
public Element marshall(XMLObject xmlObject, Document document) throws MarshallingException
- Specified by:
marshallin interfaceMarshaller- Overrides:
marshallin classAbstractXMLObjectMarshaller- Throws:
MarshallingException
-
marshall
public Element marshall(XMLObject xmlObject, Element parentElement) throws MarshallingException
- Specified by:
marshallin interfaceMarshaller- Overrides:
marshallin classAbstractXMLObjectMarshaller- Throws:
MarshallingException
-
-