Class 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 the Marshaller interface that handles most of the boilerplate code for Marshallers.
    • Constructor Detail

      • AbstractSAMLObjectMarshaller

        public AbstractSAMLObjectMarshaller()
    • 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 class org.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 class org.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 interface org.opensaml.core.xml.io.Marshaller
        Overrides:
        marshall in class org.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 interface org.opensaml.core.xml.io.Marshaller
        Overrides:
        marshall in class org.opensaml.core.xml.io.AbstractXMLObjectMarshaller
        Throws:
        org.opensaml.core.xml.io.MarshallingException