public interface PolicyTreeElement
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes this
PolicyTreeElement into its XML form |
void |
encode(StringBuilder builder)
Encodes this
PolicyTreeElement into its XML form and writes this out to the provided
StringBuilder |
AbstractResult |
evaluate(EvaluationCtx context)
Evaluates this element in the policy tree, and therefore all elements underneath this
element.
|
List |
getChildren()
Returns the
List of PolicyTreeElement objects that are the children
of this node. |
String |
getDescription()
Returns the given description of this element or null if there is no description
|
URI |
getId()
Returns the id of this element
|
AbstractTarget |
getTarget()
Returns the target for this element or null if there is no target
|
MatchResult |
match(EvaluationCtx context)
Given the input context sees whether or not the request matches this element's target.
|
List getChildren()
List
of PolicyTreeElement
objects that are the children
of this node. If this node has no children then this list is empty. The children are returned
as a List
instead of some unordered collection because in cases like combining
or evaluation the order is often important.List
of children of this nodeString getDescription()
URI getId()
AbstractTarget getTarget()
MatchResult match(EvaluationCtx context)
context
- the representation of the requestAbstractResult evaluate(EvaluationCtx context)
context
- the representation of the request we're evaluatingString encode()
PolicyTreeElement
into its XML formString
void encode(StringBuilder builder)
PolicyTreeElement
into its XML form and writes this out to the provided
StringBuilder
builder
- string stream into which the XML-encoded data is writtenCopyright © 2016 WSO2. All rights reserved.