|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PolicyTreeElement
This represents a single node in a policy tree. A node is either a policy set, a policy, or a rule. This interface is used to interact with these node types in a general way. Note that rules are leaf nodes in a policy tree as they never contain children.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 request
AbstractResult evaluate(EvaluationCtx context)
context
- the representation of the request we're evaluating
String encode()
PolicyTreeElement
into its XML form
String
void encode(StringBuilder builder)
PolicyTreeElement
into its XML form and writes this out to the provided
StringBuilder
- Parameters:
builder
- string stream into which the XML-encoded data is written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |