public interface PolicyTreeElement
Modifier and Type | Method and Description |
---|---|
void |
encode(OutputStream output)
Encodes this element into its XML representation and writes
this encoding to the given
OutputStream with no
indentation. |
void |
encode(OutputStream output,
Indenter indenter)
Encodes this element into its XML representation and writes
this encoding to the given
OutputStream with
indentation. |
Result |
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
|
Target |
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()
Target getTarget()
MatchResult match(EvaluationCtx context)
context
- the representation of the requestResult evaluate(EvaluationCtx context)
context
- the representation of the request we're evaluatingvoid encode(OutputStream output)
OutputStream
with no
indentation.output
- a stream into which the XML-encoded data is writtenvoid encode(OutputStream output, Indenter indenter)
OutputStream
with
indentation.output
- a stream into which the XML-encoded data is writtenindenter
- an object that creates indentation stringsCopyright © 2023 JBoss by Red Hat. All rights reserved.