public class ResultImpl extends Object implements Result
Result
element contains decision, status and obligations
per resource id
schema
<xs:complexType name="ResultType"> <xs:sequence> <xs:element ref="xacml-context:Decision"/> <xs:element ref="xacml-context:Status" minOccurs="0"/> <xs:element ref="xacml:Obligations" minOccurs="0"/> <xs:sequence> <xs:attribute name="ResourceId" type="xs:string" use="optional"/> <xs:complexType>
Constructor and Description |
---|
ResultImpl()
Constructs a
Result object |
ResultImpl(Element element)
Constructs a
Result object from an XML DOM element |
ResultImpl(String xml)
Constructs a
Result object from an XML string |
Modifier and Type | Method and Description |
---|---|
Decision |
getDecision()
Returns the
Decision of this object |
Obligations |
getObligations()
Returns the
Obligations of this object |
String |
getResourceId()
Returns
resourceId of this object |
Status |
getStatus()
Returns the
Status of this object |
boolean |
isMutable()
Checks if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setDecision(Decision decision)
Sets the
Decision of this object |
void |
setObligations(Obligations obligations)
Sets the
Obligations of this object |
void |
setResourceId(String resourceId)
Sets
resourceId of this object |
void |
setStatus(Status status)
Sets the
Status of this object |
String |
toXMLString()
Returns a string representation of this object
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a string representation of this object
|
public ResultImpl() throws XACMLException
Result
objectXACMLException
public ResultImpl(String xml) throws XACMLException
Result
object from an XML stringxml
- string representing a Result
objectSAMLException
- if the XML string could not be processedXACMLException
public ResultImpl(Element element) throws XACMLException
Result
object from an XML DOM elementelement
- XML DOM element representing a Result
objectSAMLException
- if the DOM element could not be processedXACMLException
public String getResourceId()
resourceId
of this objectgetResourceId
in interface Result
resourceId
of this objectpublic void setResourceId(String resourceId) throws XACMLException
resourceId
of this objectsetResourceId
in interface Result
resourceId
- resourceId
of this objectXACMLException
- if the object is immutablepublic Decision getDecision()
Decision
of this objectgetDecision
in interface Result
Decision
of this objectpublic void setDecision(Decision decision) throws XACMLException
Decision
of this objectsetDecision
in interface Result
XACMLException
- if the object is immutablepublic Status getStatus()
Status
of this objectpublic void setStatus(Status status) throws XACMLException
Status
of this objectsetStatus
in interface Result
XACMLException
- if the object is immutablepublic Obligations getObligations()
Obligations
of this objectgetObligations
in interface Result
Obligations
of this objectpublic void setObligations(Obligations obligations) throws XACMLException
Obligations
of this objectsetObligations
in interface Result
obligations
- Obligations
to setXACMLException
- if the object is immutablepublic String toXMLString() throws XACMLException
toXMLString
in interface Result
XACMLException
- if conversion fails for any reasonpublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
toXMLString
in interface Result
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.XACMLException
- if conversion fails for any reasonpublic boolean isMutable()
public void makeImmutable()
makeImmutable
in interface Result
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.