issrg.pba.rbac.xmlpolicy.ifstatement
Interface Term

All Known Subinterfaces:
NamedTerm
All Known Implementing Classes:
AndNode, ArgNode, ConstantNode, EnvironmentNode, EqNode, GeNode, GtNode, LeNode, LtNode, NamedTermNode, NotNode, OperationNode, OperatorNode, OrNode, PresentNode, SubstringsNode, TermNode

public interface Term

This interface defines the functionality necessary to deliver results. The IF-statement consists of terms, some of them being unary and binary operators, others being sources of data (Constants, Arguments, Environment).

Version:
1.0
Author:
A.Otenko

Method Summary
 java.lang.Object evaluate(Environment env)
          This method returns the evaluated result at run-time.
 java.lang.String getType()
          This method returns the type of the value this term returns.
 

Method Detail

getType

java.lang.String getType()
This method returns the type of the value this term returns. The types are defined by convention of the developers and RBAC policy administrators.

Returns:
a case-sensitive type name as calculated at run-time

evaluate

java.lang.Object evaluate(Environment env)
                          throws EvaluationException
This method returns the evaluated result at run-time. The actual type of the object depends on the term and is guaranteed to be of the type returned by getType().

Parameters:
env - is the execution environment
Returns:
an object representing the result
Throws:
EvaluationException - if the term cannot be evaluated