Package org.opensaml.saml.common
Class AbstractSAMLObjectMarshaller
- java.lang.Object
-
- org.opensaml.core.xml.io.AbstractXMLObjectMarshaller
-
- org.opensaml.saml.common.AbstractSAMLObjectMarshaller
-
- All Implemented Interfaces:
org.opensaml.core.xml.io.Marshaller
public abstract class AbstractSAMLObjectMarshaller extends org.opensaml.core.xml.io.AbstractXMLObjectMarshaller
A thread safe, abstract implementation of theMarshaller
interface 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 Element
marshall(org.opensaml.core.xml.XMLObject xmlObject, Document document)
Element
marshall(org.opensaml.core.xml.XMLObject xmlObject, Element parentElement)
protected void
marshallAttributes(org.opensaml.core.xml.XMLObject xmlObject, Element domElement)
No-op method.protected void
marshallElementContent(org.opensaml.core.xml.XMLObject xmlObject, Element domElement)
No-op method.
-
-
-
Method Detail
-
marshallAttributes
protected void marshallAttributes(org.opensaml.core.xml.XMLObject xmlObject, Element domElement) throws org.opensaml.core.xml.io.MarshallingException
No-op method. Extending implementations should override this method if they have attributes to marshall into the Element.- Overrides:
marshallAttributes
in classorg.opensaml.core.xml.io.AbstractXMLObjectMarshaller
- Throws:
org.opensaml.core.xml.io.MarshallingException
-
marshallElementContent
protected void marshallElementContent(org.opensaml.core.xml.XMLObject xmlObject, Element domElement) throws org.opensaml.core.xml.io.MarshallingException
No-op method. Extending implementations should override this method if they have text content to marshall into the Element.- Overrides:
marshallElementContent
in classorg.opensaml.core.xml.io.AbstractXMLObjectMarshaller
- Throws:
org.opensaml.core.xml.io.MarshallingException
-
marshall
public Element marshall(org.opensaml.core.xml.XMLObject xmlObject, Document document) throws org.opensaml.core.xml.io.MarshallingException
- Specified by:
marshall
in interfaceorg.opensaml.core.xml.io.Marshaller
- Overrides:
marshall
in classorg.opensaml.core.xml.io.AbstractXMLObjectMarshaller
- Throws:
org.opensaml.core.xml.io.MarshallingException
-
marshall
public Element marshall(org.opensaml.core.xml.XMLObject xmlObject, Element parentElement) throws org.opensaml.core.xml.io.MarshallingException
- Specified by:
marshall
in interfaceorg.opensaml.core.xml.io.Marshaller
- Overrides:
marshall
in classorg.opensaml.core.xml.io.AbstractXMLObjectMarshaller
- Throws:
org.opensaml.core.xml.io.MarshallingException
-
-