com.sun.rave.web.ui.util
Class PermissionChecker.StringFunction

java.lang.Object
  extended by com.sun.rave.web.ui.util.PermissionChecker.StringFunction
All Implemented Interfaces:
PermissionChecker.Function
Enclosing class:
PermissionChecker

protected class PermissionChecker.StringFunction
extends java.lang.Object
implements PermissionChecker.Function

StringFunction implements Function and serves as the default function. This function is special in that it is NEVER registered and is the only function that SHOULD NOT be followed by ()'s. This function will process embedded expressions and evaulate to false if the entire string evaulates to null. Otherwise it will return true. This Function ignores all arguments (arguments only apply if it is registered, which shouldn't be the case anyway).


Constructor Summary
PermissionChecker.StringFunction(java.lang.String value)
          Constructor.
 
Method Summary
 boolean evaluate()
          This method is invoked by the PermissionCheck to evaluate the function to true or false.
 java.util.List getArguments()
          Not used.
 java.lang.Object getEvaluatedValue()
           
 void setArguments(java.util.List args)
          Not used.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionChecker.StringFunction

public PermissionChecker.StringFunction(java.lang.String value)
Constructor.

Parameters:
value - The expression to evaluate.
Method Detail

getArguments

public java.util.List getArguments()
Not used.

Specified by:
getArguments in interface PermissionChecker.Function

setArguments

public void setArguments(java.util.List args)
Not used.

Specified by:
setArguments in interface PermissionChecker.Function

evaluate

public boolean evaluate()
Description copied from interface: PermissionChecker.Function
This method is invoked by the PermissionCheck to evaluate the function to true or false.

Specified by:
evaluate in interface PermissionChecker.Function

getEvaluatedValue

public java.lang.Object getEvaluatedValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object