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
A thread safe, abstract implementation of the
Marshaller interface
that handles most of the boilerplate code for Marshallers.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
AbstractSAMLObjectMarshaller
public AbstractSAMLObjectMarshaller()
-
-
Method Details
-
marshallAttributes
protected void marshallAttributes(@Nonnull XMLObject xmlObject, @Nonnull 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(@Nonnull XMLObject xmlObject, @Nonnull 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
@Nonnull public Element marshall(@Nonnull XMLObject xmlObject, @Nonnull Document document) throws MarshallingException - Specified by:
marshallin interfaceMarshaller- Overrides:
marshallin classAbstractXMLObjectMarshaller- Throws:
MarshallingException
-
marshall
@Nonnull public Element marshall(@Nonnull XMLObject xmlObject, @Nonnull Element parentElement) throws MarshallingException - Specified by:
marshallin interfaceMarshaller- Overrides:
marshallin classAbstractXMLObjectMarshaller- Throws:
MarshallingException
-