|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectissrg.pba.rbac.xmlpolicy.PolicyXMLNode
issrg.pba.rbac.xmlpolicy.ifstatement.TermNode
issrg.pba.rbac.xmlpolicy.ifstatement.ArgNode
This is the class that represents an Arg node and evaluates the arguments of an action at run-time.
If the policy contains the arguments of types for which there is no constructor provided by the AEF (not registered with the Types), or the AEF failed to provide the argument with the name stated in the policy, an EvaluationException will occur at run-time.
Note that if the evaluation does not reach the point where the argument is needed, no exception will be thrown.
Field Summary | |
static java.lang.String |
ARG_NODE
This is the name of the node that represents the Arg - a reference to an argument of the action being authorised. |
protected java.lang.String |
parameter_name
|
protected java.lang.String |
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 |
ArgNode()
|
|
ArgNode(XMLPolicyParser p,
org.xml.sax.Attributes attr)
This constructor builds an ArgNode, given a XMLPolicyParser and the set of attributes of this XML element. |
Method Summary | |
java.lang.Object |
evaluate(Environment env)
This method returns the value of the action argument that this element refers to. |
java.lang.String |
getType()
This method returns the type of this argument. |
static void |
register()
This method should be called to register the node with the XML Parser |
Methods inherited from class issrg.pba.rbac.xmlpolicy.ifstatement.TermNode |
construct, 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 |
public static final java.lang.String ARG_NODE
protected java.lang.String type
protected java.lang.String parameter_name
Constructor Detail |
protected ArgNode()
public ArgNode(XMLPolicyParser p, org.xml.sax.Attributes attr) throws PolicyParsingException
p
- - the XMLPolicyParser that builds this ArgNodeattr
- - the attributes of this XML elementMethod Detail |
public static void register()
public java.lang.String getType()
public java.lang.Object evaluate(Environment env) throws EvaluationException
env
- - the Environment of the evaluation, including the arguments
of the Action
EvaluationException
- if the term cannot be evaluated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |