issrg.pba.rbac.xmlpolicy.ifstatement
Class SubstringsNode
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.SubstringsNode
- All Implemented Interfaces:
- Term
public class SubstringsNode
- extends OperationNode
This is the class for Substrings node of the IF-statement. Its functionality
is
very much determined by OperationNode and StringInterpreter, which are
configured to deliver the following semantics:
This operation expects two and only two Terms of type Types.STRING_TYPE,
and
returns a
value of type Types.BOOLEAN_TYPE.
The evaluation result is "true", if and only if the first string Term occurs
somewhere in the second string Term.
StringInterpreter provides the default implementation
of the Substrings operation.
- Author:
- A.Otenko
- See Also:
StringInterpreter
Constructor Summary |
protected |
SubstringsNode()
|
|
SubstringsNode(XMLPolicyParser p,
org.xml.sax.Attributes attrs)
This constructor builds a SubstringsNode given the XMLPolicyParser and the
set of
attributes of this XML element. |
Method Summary |
static void |
register()
Call this method to register the SubstringsNode with the XMLPolicyParser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SUBSTRINGS_NODE
public static final java.lang.String SUBSTRINGS_NODE
- See Also:
- Constant Field Values
SubstringsNode
protected SubstringsNode()
SubstringsNode
public SubstringsNode(XMLPolicyParser p,
org.xml.sax.Attributes attrs)
- This constructor builds a SubstringsNode 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 SubstringsNodeattr
- - the attributes of this XML element
register
public static void register()
- Call this method to register the SubstringsNode with the XMLPolicyParser.
It also
registers the StringInterpreter in SUBSTRINGS_MODE.
- See Also:
StringInterpreter