Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.xacml.cond
Interface Evaluatable  view Evaluatable download Evaluatable.java

All Known Implementing Classes:
Apply

public interface Evaluatable

Generic interface that is implemented by all objects that can appear in an ApplyType. This lets the evaluation code of Apply and functions iterate through their members and evaluate them, working only on the returned values or errors.

Since:
1.0

Method Summary
 void encode(java.io.OutputStream output)
          Encodes this Evaluatable into its XML representation and writes this encoding to the given OutputStream with no indentation.
 void encode(java.io.OutputStream output, com.sun.xacml.Indenter indenter)
          Encodes this Evaluatable into its XML representation and writes this encoding to the given OutputStream with indentation.
 EvaluationResult evaluate(com.sun.xacml.EvaluationCtx context)
          Evaluates the object using the given context, and either returns an error or a resulting value.
 boolean evaluatesToBag()
          Tells whether evaluation will return a bag or a single value.
 java.util.List getChildren()
          Returns all children, in order, of this element in the Condition tree, or en empty set if this element has no children.
 java.net.URI getType()
          Get the type of this object.
 

Method Detail

evaluate

public EvaluationResult evaluate(com.sun.xacml.EvaluationCtx context)
Evaluates the object using the given context, and either returns an error or a resulting value.


getType

public java.net.URI getType()
Get the type of this object. This may be the data type of an Attribute or the return type of an AttributeDesignator, etc.


evaluatesToBag

public boolean evaluatesToBag()
Tells whether evaluation will return a bag or a single value.


getChildren

public java.util.List getChildren()
Returns all children, in order, of this element in the Condition tree, or en empty set if this element has no children. In XACML 1.x, only the ApplyType ever has children.


encode

public void encode(java.io.OutputStream output)
Encodes this Evaluatable into its XML representation and writes this encoding to the given OutputStream with no indentation.


encode

public void encode(java.io.OutputStream output,
                   com.sun.xacml.Indenter indenter)
Encodes this Evaluatable into its XML representation and writes this encoding to the given OutputStream with indentation.