public class Obligation extends Object implements ObligationResult
Constructor and Description |
---|
Obligation(List<AttributeAssignment> assignments,
URI obligationId)
Constructor that creates a new
Obligation based on
the given elements. |
Modifier and Type | Method and Description |
---|---|
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. |
URI |
getObligationId()
Returns the obligation id of the obligation object
|
public Obligation(List<AttributeAssignment> assignments, URI obligationId)
Obligation
based on
the given elements.assignments
- List
of AttributeAssignment
obligationId
- Identifier that uniquely identify the Obligationpublic static Obligation getInstance(Node root) throws ParsingException
Obligation
based on its DOM node.root
- the DOM root of the ObligationType XML typeParsingException
- if the structure isn't validpublic void encode(StringBuilder builder)
Obligation
into its XML form and writes this out to the provided
StringBuilder
encode
in interface ObligationResult
builder
- string stream into which the XML-encoded data is writtenpublic List<AttributeAssignment> getAssignments()
List
contains
objects of type Attribute
with only the correct attribute fields being used.public URI getObligationId()
public String encode()
Obligation
into its XML formencode
in interface ObligationResult
String
Copyright © 2021 WSO2. All rights reserved.