Class DecisionImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.DecisionImpl
-
-
Constructor Summary
Constructors Constructor Description DecisionImpl()Constructs aDecisionobjectDecisionImpl(String xml)Constructs aDecisionobject from an XML stringDecisionImpl(Element element)Constructs aDecisionobject from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()Returns thevalues of this objectbooleanisMutable()Checks if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetValue(String value)Sets thevalues of this objectStringtoXMLString()Returns a string representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a string representation
-
-
-
Constructor Detail
-
DecisionImpl
public DecisionImpl() throws XACMLExceptionConstructs aDecisionobject- Throws:
XACMLException
-
DecisionImpl
public DecisionImpl(String xml) throws XACMLException
Constructs aDecisionobject from an XML string- Parameters:
xml- string representing aDecisionobject- Throws:
XACMLException- if the XML string could not be processed
-
DecisionImpl
public DecisionImpl(Element element) throws XACMLException
Constructs aDecisionobject from an XML DOM element- Parameters:
element- XML DOM element representing aDecisionobject- Throws:
XACMLException- if the DOM element could not be processed
-
-
Method Detail
-
getValue
public String getValue()
Returns thevalues of this object
-
setValue
public void setValue(String value) throws XACMLException
Sets thevalues of this object- Specified by:
setValuein interfaceDecision- Throws:
XACMLException- if the object is immutable
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLStringin 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:
toXMLStringin 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:
makeImmutablein interfaceDecision
-
-