issrg.pba.rbac.xmlpolicy.ifstatement
Class AndNode

java.lang.Object
  extended by issrg.pba.rbac.xmlpolicy.PolicyXMLNode
      extended by issrg.pba.rbac.xmlpolicy.ifstatement.TermNode
          extended by issrg.pba.rbac.xmlpolicy.ifstatement.OperationNode
              extended by issrg.pba.rbac.xmlpolicy.ifstatement.AndNode
All Implemented Interfaces:
Term

public class AndNode
extends OperationNode

This is the class for And node of the IF-statement. Its functionality is very much determined by OperationNode and AndInterpreter, which are configured to deliver the following semantics:

This operation expects one or more Terms, each returning a Types.BOOLEAN_TYPE type, and returns a value of type Types.BOOLEAN_TYPE. The evaluation result is "true", if and only if all Terms of the AndNode evaluate to boolean "true".

Author:
A.Otenko

Field Summary
static java.lang.String AND_NODE
           
 
Fields inherited from class issrg.pba.rbac.xmlpolicy.ifstatement.OperationNode
interpreter, type
 
Fields inherited from class issrg.pba.rbac.xmlpolicy.ifstatement.TermNode
maxOperand, minOperand, terms
 
Fields inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode
attributes, children, name, nodeStr
 
Constructor Summary
protected AndNode()
           
  AndNode(XMLPolicyParser p, org.xml.sax.Attributes attrs)
          This constructor builds an AndNode, given a XMLPolicyParser and the set of attributes of this XML element.
 
Method Summary
static void register()
          Call this method to register the node with the XMLPolicyParser.
 
Methods inherited from class issrg.pba.rbac.xmlpolicy.ifstatement.OperationNode
construct, evaluate, getType
 
Methods inherited from class issrg.pba.rbac.xmlpolicy.ifstatement.TermNode
getInterpretersForNode, registerInterpreterForNode
 
Methods inherited from class issrg.pba.rbac.xmlpolicy.PolicyXMLNode
addChild, addString, getAttributes, getChildren, getName, getString, toString, toXML, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AND_NODE

public static final java.lang.String AND_NODE
See Also:
Constant Field Values
Constructor Detail

AndNode

protected AndNode()

AndNode

public AndNode(XMLPolicyParser p,
               org.xml.sax.Attributes attrs)
This constructor builds an AndNode, given a XMLPolicyParser and the set of attributes of this XML element.

Parameters:
p - - the XMLPolicyParser that builds this AndNode
attrs - - the attributes of this XML element
Method Detail

register

public static void register()
Call this method to register the node with the XMLPolicyParser. This method also registers the default AndInterpreter.