public class ObligationsImpl extends Object implements Obligations
Obligations
element is a container of
one or more Obligation
s issuded by
authorization authority.Constructor and Description |
---|
ObligationsImpl()
Default constructor
|
ObligationsImpl(Element element)
Constructs an
ObligationsImpl object from an XML DOM element |
ObligationsImpl(String xml)
Constructs an
ObligationsImpl object from an XML string |
Modifier and Type | Method and Description |
---|---|
void |
addObligation(Obligation obligation)
Adds an
Obligation to this object. |
List |
getObligations()
Returns the
Obligation objects set in this
Obligations |
boolean |
isMutable()
Checks if this object is mutable
|
void |
makeImmutable()
Makes this object immutable
|
void |
setObligations(List obligations)
Sets the
Obligation objects of this
Obligations |
String |
toXMLString()
Returns a string representation of this object
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a string representation of this object
|
public ObligationsImpl()
public ObligationsImpl(String xml) throws XACMLException
ObligationsImpl
object from an XML stringxml
- string representing an ObligationsImpl
objectXACMLException
- if the XML string could not be processedpublic ObligationsImpl(Element element) throws XACMLException
ObligationsImpl
object from an XML DOM elementelement
- XML DOM element representing a
ObligationsImpl
object.XACMLException
- If the DOM element could not be processed.public List getObligations()
Obligation
objects set in this
Obligations
getObligations
in interface Obligations
Obligation
objects set in this
Obligations
public void setObligations(List obligations) throws XACMLException
Obligation
objects of this
Obligations
setObligations
in interface Obligations
obligations
- the Obligation
objects to set in this
Obligations
XACMLException
- if the object is immutable.public void addObligation(Obligation obligation) throws XACMLException
Obligation
to this object.addObligation
in interface Obligations
obligation
- the Obligation
to add.XACMLException
- if the object is immutable.public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
toXMLString
in interface Obligations
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 Obligations
XACMLException
- if conversion fails for any reasonpublic void makeImmutable()
makeImmutable
in interface Obligations
public boolean isMutable()
isMutable
in interface Obligations
true
if the object is mutable,
false
otherwiseCopyright © 2010-2018, ForgeRock All Rights Reserved.