issrg.pba.rbac.xmlpolicy.ifstatement
Class GeNode
java.lang.Object
issrg.pba.rbac.xmlpolicy.PolicyXMLNode
issrg.pba.rbac.xmlpolicy.ifstatement.TermNode
issrg.pba.rbac.xmlpolicy.ifstatement.OperationNode
issrg.pba.rbac.xmlpolicy.ifstatement.GeNode
- All Implemented Interfaces:
- Term
public class GeNode
- extends OperationNode
This is the class for GE node of the IF-statement. Its functionality is
very much determined by OperationNode, which is
configured to deliver the following semantics:
This operation expects two and only two Terms of any type, and
returns a
value of type Types.BOOLEAN_TYPE.
The evaluation result is "true", if and only if there is an interpreter for
the required set of Terms, and it evaluates that the first Term is
greater than or equal to the second Term.
It is possible to register the interpreters for specific
combinations of Terms. Use registerInterpreter method to do that. There is no
default
Interpreter.
- Author:
- A.Otenko
- See Also:
registerInterpreter(issrg.pba.rbac.xmlpolicy.ifstatement.Interpreter)
Field Summary |
static java.lang.String |
GE_NODE
|
Constructor Summary |
protected |
GeNode()
|
|
GeNode(XMLPolicyParser p,
org.xml.sax.Attributes attrs)
This constructor builds a GeNode given the XMLPolicyParser and the set of
attributes of this XML element. |
Method Summary |
static void |
register()
Call this method to register this node with the XMLPolicyParser. |
static void |
registerInterpreter(Interpreter i)
This method maintains a register of interpreters for specific combinations
of Terms. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GE_NODE
public static final java.lang.String GE_NODE
- See Also:
- Constant Field Values
GeNode
protected GeNode()
GeNode
public GeNode(XMLPolicyParser p,
org.xml.sax.Attributes attrs)
- This constructor builds a GeNode given the XMLPolicyParser and the set of
attributes of this XML element. It expects that there are two and only two
child nodes.
- Parameters:
p
- - the XMLPolicyParser that builds this GeNodeattr
- - the attributes of this XML element
register
public static void register()
- Call this method to register this node with the XMLPolicyParser.
registerInterpreter
public static void registerInterpreter(Interpreter i)
- This method maintains a register of interpreters for specific combinations
of Terms. If no special interpreters are registered, the evaluation error
occurs. The semantics of the interpreters should make sure that the first
Term is greater or equal to the second Term in the array passed to the
evaluate method of that Interpreter.
- Parameters:
i
- - the Interpreter instance that can evaluate inequality expression
for some combination of Terms- See Also:
Interpreter.evaluate(issrg.pba.rbac.xmlpolicy.ifstatement.Environment, issrg.pba.rbac.xmlpolicy.ifstatement.Term[])