Class DecisionImpl

  • All Implemented Interfaces:
    Decision

    @SupportedAll
    public class DecisionImpl
    extends Object
    implements Decision
    The Decision element is a container of one or more Decisions issued by policy decision point
    • Constructor Detail

      • DecisionImpl

        public DecisionImpl​(String xml)
                     throws XACMLException
        Constructs a Decision object from an XML string
        Parameters:
        xml - string representing a Decision object
        Throws:
        XACMLException - if the XML string could not be processed
      • DecisionImpl

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

      • getValue

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

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws XACMLException
        Returns a string representation
        Specified by:
        toXMLString in interface Decision
        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 Decision
        Returns:
        true if the object is mutable, false otherwise
      • makeImmutable

        public void makeImmutable()
        Makes the object immutable
        Specified by:
        makeImmutable in interface Decision