Class StatusMessageImpl

  • All Implemented Interfaces:
    StatusMessage

    @SupportedAll
    public class StatusMessageImpl
    extends Object
    implements StatusMessage
    The StatusMessage element is a container of one or more StatusMessages issuded by authorization authority.
    • Constructor Detail

      • StatusMessageImpl

        public StatusMessageImpl​(String xml)
                          throws XACMLException
        Constructs a StatusMessage object from an XML string
        Parameters:
        xml - string representing a StatusMessage object
        Throws:
        XACMLException - If the XML string could not be processed.
      • StatusMessageImpl

        public StatusMessageImpl​(Element element)
                          throws XACMLException
        Constructs a StatusMessage object from an XML DOM element
        Parameters:
        element - XML DOM element representing a StatusMessage object
        Throws:
        XACMLException - If the DOM element could not be processed.
    • Method Detail

      • getValue

        public String getValue()
        Returns the value of this object
        Specified by:
        getValue in interface StatusMessage
        Returns:
        the value of this object
      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws XACMLException
        Returns a string representation
        Specified by:
        toXMLString in interface StatusMessage
        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 string representation
        Throws:
        XACMLException - if conversion fails for any reason
      • isMutable

        public boolean isMutable()
        Checks if the object is mutable
        Specified by:
        isMutable in interface StatusMessage
        Returns:
        true if the object is mutable, false otherwise