|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.xacml3.Obligation
public class Obligation
Represents the ObligationType XML type found in the context scheme in XACML 3.0
Constructor Summary | |
---|---|
Obligation(List<AttributeAssignment> assignments,
URI obligationId)
Constructor that creates a new Obligation based on
the given elements. |
Method Summary | |
---|---|
String |
encode()
Encodes this Obligation into its XML form |
void |
encode(StringBuilder builder)
Encodes this Obligation into its XML form and writes this out to the provided
StringBuilder |
List<AttributeAssignment> |
getAssignments()
Returns the attribute assignment data in this obligation. |
static Obligation |
getInstance(Node root)
creates a Obligation based on its DOM node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Obligation(List<AttributeAssignment> assignments, URI obligationId)
Obligation
based on
the given elements.
assignments
- List
of AttributeAssignment
obligationId
- Identifier that uniquely identify the ObligationMethod Detail |
---|
public static Obligation getInstance(Node root) throws ParsingException
Obligation
based on its DOM node.
root
- the DOM root of the ObligationType XML type
ParsingException
- if the structure isn't validpublic void encode(StringBuilder builder)
Obligation
into its XML form and writes this out to the provided
StringBuilder
- Specified by:
encode
in interface ObligationResult
- Parameters:
builder
- string stream into which the XML-encoded data is written
public List<AttributeAssignment> getAssignments()
List
contains
objects of type Attribute
with only the correct attribute fields being used.
public String encode()
Obligation
into its XML form
encode
in interface ObligationResult
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |