JBoss port of sunxacml 2.0.5-redhat-1

org.jboss.security.xacml.sunxacml.cond
Interface Evaluatable

All Superinterfaces:
Expression
All Known Implementing Classes:
AnyURIAttribute, Apply, AttributeDesignator, AttributeSelector, AttributeValue, BagAttribute, Base64BinaryAttribute, BooleanAttribute, Condition, DateAttribute, DateTimeAttribute, DayTimeDurationAttribute, DNSNameAttribute, DoubleAttribute, HexBinaryAttribute, IntegerAttribute, IPAddressAttribute, IPv4AddressAttribute, IPv6AddressAttribute, RFC822NameAttribute, StringAttribute, TimeAttribute, VariableReference, X500NameAttribute, YearMonthDurationAttribute

public interface Evaluatable
extends Expression

Generic interface that is implemented by all objects that can be evaluated directly (AttributeDesignator, Apply, AttributeValue, etc.). As of version 2.0 several methods were extracted to the new Expression super-interface.

Since:
1.0
Author:
Seth Proctor

Method Summary
 EvaluationResult evaluate(EvaluationCtx context)
          Evaluates the object using the given context, and either returns an error or a resulting value.
 boolean evaluatesToBag()
          Deprecated. As of 2.0, you should use the returnsBag method from the super-interface Expression.
 List getChildren()
          Returns all children, in order, of this element in the Condition tree, or en empty set if this element has no children.
 
Methods inherited from interface org.jboss.security.xacml.sunxacml.cond.Expression
encode, encode, getType, returnsBag
 

Method Detail

evaluate

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

Parameters:
context - the representation of the request
Returns:
the result of evaluation

evaluatesToBag

boolean evaluatesToBag()
Deprecated. As of 2.0, you should use the returnsBag method from the super-interface Expression.

Tells whether evaluation will return a bag or a single value.

Returns:
true if evaluation will return a bag, false otherwise

getChildren

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.

Returns:
a List of Evaluatables

JBoss port of sunxacml 2.0.5-redhat-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.