Class StatusCodeImpl

  • All Implemented Interfaces:
    StatusCode

    public class StatusCodeImpl
    extends Object
    implements StatusCode
    This class defines methods for StatusCode element.
    • Constructor Detail

      • StatusCodeImpl

        public StatusCodeImpl()
        Constructs the StatusCode Object.
      • StatusCodeImpl

        public StatusCodeImpl​(Element element)
                       throws SAML2Exception
        Constructs the StatusCode Object.
        Parameters:
        element - the Document Element of StatusCode object.
        Throws:
        SAML2Exception - if StatusCode cannot be created.
      • StatusCodeImpl

        public StatusCodeImpl​(String xmlString)
                       throws SAML2Exception
        Constructs the StatusCode Object.
        Parameters:
        xmlString - the XML String representation of this object.
        Throws:
        SAML2Exception - if StatusCode cannot be created.
    • Method Detail

      • getValue

        public String getValue()
        Returns the status code value of the value property.
        Specified by:
        getValue in interface StatusCode
        Returns:
        the value of the value property
        See Also:
        setValue(String)
      • toXMLString

        public String toXMLString()
                           throws SAML2Exception
        Returns the StatusCode in an XML document String format based on the StatusCode schema described above.
        Specified by:
        toXMLString in interface StatusCode
        Returns:
        An XML String representing the StatusCode.
        Throws:
        SAML2Exception - if some error occurs during conversion to String.
      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns the StatusCode in an XML document String format based on the StatusCode schema described above.
        Specified by:
        toXMLString in interface StatusCode
        Parameters:
        includeNSPrefix - Determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - Determines whether or not the namespace is declared within the Element.
        Returns:
        A XML String representing the StatusCode.
        Throws:
        SAML2Exception - if some error occurs during conversion to String.
      • makeImmutable

        public void makeImmutable()
        Makes this object immutable.
        Specified by:
        makeImmutable in interface StatusCode
      • isMutable

        public boolean isMutable()
        Returns value true if object is mutable.
        Specified by:
        isMutable in interface StatusCode
        Returns:
        true if object is mutable.