issrg.pba.rbac.xmlpolicy.ifstatement
Class Environment

java.lang.Object
  extended by issrg.pba.rbac.xmlpolicy.ifstatement.Environment

public class Environment
extends java.lang.Object

This class holds the execution environment parameters. They are the arguments to the action and other environmental variables, as defined by the AEF.


Field Summary
protected  java.util.Map args
           
protected  java.util.Map env
           
 
Constructor Summary
protected Environment()
           
  Environment(java.util.Map arguments, java.util.Map environment)
          This constructor builds an Environment from the given map of arguments and a map of environmental variables.
 
Method Summary
 java.util.Map getArgs()
          This method returns a map of action arguments, indexed by their name, as defined by the ActionPolicy.
 java.util.Map getEnv()
          This method returns a map of environmental parameters, indexed by their name, as defined by the AEF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

args

protected java.util.Map args

env

protected java.util.Map env
Constructor Detail

Environment

protected Environment()

Environment

public Environment(java.util.Map arguments,
                   java.util.Map environment)
This constructor builds an Environment from the given map of arguments and a map of environmental variables. Both maps have the variable names as keys and their string values as values. The values are then decoded using Types.construct() method.

Parameters:
arguments - - the arguments of the action; if null, no arguments of the action are present
environment - - the environment; if null, the environment is assumed to be empty
See Also:
Types.construct(java.lang.String, java.lang.String)
Method Detail

getArgs

public java.util.Map getArgs()
This method returns a map of action arguments, indexed by their name, as defined by the ActionPolicy.

Returns:
java.util.Map of the action arguments; never null, but may contain no entries

getEnv

public java.util.Map getEnv()
This method returns a map of environmental parameters, indexed by their name, as defined by the AEF.

Returns:
java.util.Map of the environmental parameters; never null, but may contain no entries