XGTRBAC
Class LogicalExpr.SimplePredicate

java.lang.Object
  extended by XGTRBAC.LogicalExpr.SimplePredicate
Enclosing class:
LogicalExpr

public class LogicalExpr.SimplePredicate
extends java.lang.Object

An inner "SimplePredicate" class *


Field Summary
private  java.util.LinkedList ContextItemList
           
private  java.lang.String FuncName
           
private  java.lang.String operator
           
private  java.util.LinkedList ParameterList
           
private  java.lang.String RetValue
           
 
Constructor Summary
LogicalExpr.SimplePredicate()
          Creates a new instance of SimplePredicate
 
Method Summary
 int addContextItem(java.lang.Object item)
          Adds an item to the ContextItemList
 int addParameter(java.lang.String param_name)
          Adds a parameter to the ParameterList
 java.lang.Object getContextItem(int index)
          Returns a context item of a predicate function
 int getContextItemCount()
          Returns the number of context items of a predicate function
 java.lang.String getFuncName()
          Returns the function name
 java.lang.String getOperator()
          Returns the operator
 LogicalExpr.Parameter getParameter(java.lang.String param_name)
          Returns a parameter of a predicate function
 int getParameterCount()
          Returns the number of parameters of a predicate function
 java.lang.String getParameterName(int index)
          Returns the name of the parameter
 int getParameterOrder(int index)
          Returns the order of the parameter
 java.lang.String getRetValue()
          Returns the expected return value
 void setFuncName(java.lang.String func_name)
          Sets the function name
 void setOperator(java.lang.String operator)
          Sets the operator
 void setParameterOrder(java.lang.String param_name, int param_order)
          Sets the order of the parameter
 void setRetValue(java.lang.String ret_value)
          Sets the expected return value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operator

private java.lang.String operator

FuncName

private java.lang.String FuncName

ParameterList

private java.util.LinkedList ParameterList

ContextItemList

private java.util.LinkedList ContextItemList

RetValue

private java.lang.String RetValue
Constructor Detail

LogicalExpr.SimplePredicate

public LogicalExpr.SimplePredicate()
Creates a new instance of SimplePredicate

Method Detail

getOperator

public java.lang.String getOperator()
Returns the operator

Returns:
The operation as String

setOperator

public void setOperator(java.lang.String operator)
Sets the operator

Parameters:
operator - The operator supplied as String

getFuncName

public java.lang.String getFuncName()
Returns the function name

Returns:
The function name as String

setFuncName

public void setFuncName(java.lang.String func_name)
Sets the function name

Parameters:
func_name - The function name supplied as String

getParameterCount

public int getParameterCount()
Returns the number of parameters of a predicate function

Returns:
The parameter count as int

getParameterName

public java.lang.String getParameterName(int index)
Returns the name of the parameter

Parameters:
index - The integer index of the parameter in the ParameterList
Returns:
The parameter name as String

getParameterOrder

public int getParameterOrder(int index)
Returns the order of the parameter

Parameters:
index - The integer index of the parameter in the ParameterList
Returns:
The parameter order as int

setParameterOrder

public void setParameterOrder(java.lang.String param_name,
                              int param_order)
Sets the order of the parameter

Parameters:
param_name - The name of the parameter supplied as String
param_order - The order of the parameter supplied as int

getParameter

public LogicalExpr.Parameter getParameter(java.lang.String param_name)
Returns a parameter of a predicate function

Parameters:
param_name - The parameter name supplied as String
Returns:
The parameter object as Parameter

addParameter

public int addParameter(java.lang.String param_name)
Adds a parameter to the ParameterList

Parameters:
param_name - The parameter name supplied as String
Returns:
Integer representing state of the operation

getContextItemCount

public int getContextItemCount()
Returns the number of context items of a predicate function

Returns:
The item count as int

getContextItem

public java.lang.Object getContextItem(int index)
Returns a context item of a predicate function

Parameters:
index - The index into the ContextItemList
Returns:
The context item object as Object

addContextItem

public int addContextItem(java.lang.Object item)
Adds an item to the ContextItemList

Parameters:
item - The item supplied as Object
Returns:
Integer representing state of the operation

getRetValue

public java.lang.String getRetValue()
Returns the expected return value

Returns:
The expected return value as String

setRetValue

public void setRetValue(java.lang.String ret_value)
Sets the expected return value

Parameters:
ret_value - The expected return value supplied as String