Class DecisionImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.DecisionImpl
-
- All Implemented Interfaces:
Decision
@SupportedAll public class DecisionImpl extends Object implements Decision
TheDecision
element is a container of one or moreDecision
s issued by policy decision point
-
-
Constructor Summary
Constructors Constructor Description DecisionImpl()
Constructs aDecision
objectDecisionImpl(String xml)
Constructs aDecision
object from an XML stringDecisionImpl(Element element)
Constructs aDecision
object from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Returns thevalue
s of this objectboolean
isMutable()
Checks if the object is mutablevoid
makeImmutable()
Makes the object immutablevoid
setValue(String value)
Sets thevalue
s of this objectString
toXMLString()
Returns a string representationString
toXMLString(boolean includeNSPrefix, boolean declareNS)
Returns a string representation
-
-
-
Constructor Detail
-
DecisionImpl
public DecisionImpl() throws XACMLException
Constructs aDecision
object- Throws:
XACMLException
-
DecisionImpl
public DecisionImpl(String xml) throws XACMLException
Constructs aDecision
object from an XML string- Parameters:
xml
- string representing aDecision
object- Throws:
XACMLException
- if the XML string could not be processed
-
DecisionImpl
public DecisionImpl(Element element) throws XACMLException
Constructs aDecision
object from an XML DOM element- Parameters:
element
- XML DOM element representing aDecision
object- Throws:
XACMLException
- if the DOM element could not be processed
-
-
Method Detail
-
getValue
public String getValue()
Returns thevalue
s of this object
-
setValue
public void setValue(String value) throws XACMLException
Sets thevalue
s of this object- Specified by:
setValue
in interfaceDecision
- Throws:
XACMLException
- if the object is immutable
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLString
in interfaceDecision
- Returns:
- a string representation
- Throws:
XACMLException
- if conversion fails for any reason
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
Returns a string representation- Specified by:
toXMLString
in interfaceDecision
- Parameters:
includeNSPrefix
- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS
- 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
-
makeImmutable
public void makeImmutable()
Makes the object immutable- Specified by:
makeImmutable
in interfaceDecision
-
-