Class DecisionImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.DecisionImpl
-
- All Implemented Interfaces:
XmlSerializable
,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 objectDocumentFragment
toDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS)
Serializes the element into an XMLDocumentFragment
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.identity.xacml.context.Decision
toXMLString, toXMLString
-
-
-
-
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
-
toDocumentFragment
public DocumentFragment toDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Description copied from interface:XmlSerializable
Serializes the element into an XMLDocumentFragment
. A default implementation is provided for compatibility with legacy code that implementsXmlSerializable.toXMLString()
, but it is highly recommended to override this method.- Specified by:
toDocumentFragment
in interfaceXmlSerializable
- Parameters:
document
- the parentDocument
to create the document fragment from.includeNSPrefix
- whether to include a namespace prefix in the document elements.declareNS
- whether to declare any namespaces or assume that they are already declared.- Returns:
- the XML document fragment representing this SAML2 element.
- Throws:
SAML2Exception
- if the element cannot be serialized 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
-
-