issrg.pba.rbac.xmlpolicy.ifstatement
Class Environment
java.lang.Object
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 |
args
protected java.util.Map args
env
protected java.util.Map env
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 presentenvironment
- - the environment; if null, the environment is assumed
to be empty- See Also:
Types.construct(java.lang.String, java.lang.String)
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