| 
SunTM's XACML Implementation for JavaTM | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 | |
 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.  | 
| Method Detail | 
public 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 nodepublic String getDescription()
public URI getId()
public Target getTarget()
public MatchResult match(EvaluationCtx context)
context - the representation of the request
public Result evaluate(EvaluationCtx context)
context - the representation of the request we're evaluating
public void encode(OutputStream output)
OutputStream with no
 indentation.
output - a stream into which the XML-encoded data is written
public void encode(OutputStream output,
                   Indenter indenter)
OutputStream with
 indentation.
output - a stream into which the XML-encoded data is writtenindenter - an object that creates indentation strings
  | 
Sun's XACML Implementation Version 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.