public class ObligationImpl extends Object implements Obligation
Obligation
element is a container of
one or more AttributeAssignment
s issuded by
authorization authority.Constructor and Description |
---|
ObligationImpl()
Default constructor
|
ObligationImpl(Element element)
This constructor is used to build
ObligationImpl object
from a block of existing XML that has already been built into a DOM. |
ObligationImpl(String xml)
This constructor is used to build
Obligation object
from an XML string. |
Modifier and Type | Method and Description |
---|---|
List |
getAttributeAssignments()
Returns XML elements corresponding to
AttributeAssignment elements for this obligation. |
String |
getFulfillOn()
Returns the FullFillOn effect type of this obligation
|
URI |
getObligationId()
Returns the ObligationId of this
Obligation |
boolean |
isMutable()
Checks if this object is mutable
|
void |
makeImmutable()
Makes this object immutable
|
void |
setAttributeAssignments(List attributeAssignments)
Sets XML elements corresponding to
AttributeAssignment elements for this obligation. |
void |
setFulfillOn(String fulfillOn)
Sets the FullFillOn effect type of this obligation
|
void |
setObligationId(URI obligationId)
Sets the ObligationId of the
Obligation |
String |
toXMLString()
Returns a string representation of this object
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a string representation of this object
|
public ObligationImpl()
public ObligationImpl(String xml) throws XACMLException
Obligation
object
from an XML string.xml
- a String
representation of
Obligation
objectXACMLException
- if it could not process the XML stringpublic ObligationImpl(Element element) throws XACMLException
ObligationImpl
object
from a block of existing XML that has already been built into a DOM.element
- DOM tree for Request
objectXACMLException
- If it could not process the Element.public URI getObligationId()
Obligation
getObligationId
in interface Obligation
URI
representing ObligationId of this
Obligation
public void setObligationId(URI obligationId) throws XACMLException
Obligation
setObligationId
in interface Obligation
obligationId
- URI
representing the ObligationId.XACMLException
- if the object is immutablepublic String getFulfillOn()
getFulfillOn
in interface Obligation
public void setFulfillOn(String fulfillOn) throws XACMLException
setFulfillOn
in interface Obligation
fulfillOn
- FullFillOn effect type of this obligationXACMLException
public List getAttributeAssignments()
AttributeAssignment
elements for this obligation.getAttributeAssignments
in interface Obligation
AttributeAssignment
elements for this obligation.public void setAttributeAssignments(List attributeAssignments) throws XACMLException
AttributeAssignment
elements for this obligation.setAttributeAssignments
in interface Obligation
attributeAssignments
- XML elements corresponding to
AttributeAssignment
elements for this obligation.XACMLException
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
toXMLString
in interface Obligation
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 String toXMLString() throws XACMLException
toXMLString
in interface Obligation
XACMLException
- if conversion fails for any reasonpublic void makeImmutable()
makeImmutable
in interface Obligation
public boolean isMutable()
isMutable
in interface Obligation
true
if the object is mutable,
false
otherwiseCopyright © 2010-2018, ForgeRock All Rights Reserved.