|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.attr.func.AbstractFunction
com.cafesoft.cams.attr.func.MatchFunction
public class MatchFunction
MatchFunction implements Cams intrinsic matching Functions.
| Field Summary | |
|---|---|
static String |
NAME_CONTAINS_IGNORECASE_STRING_MATCH
Function name for case insensitive "contains" String matching. |
static String |
NAME_CONTAINS_STRING_MATCH
Function name for case sensitive "contains" String matching. |
static String |
NAME_ENDS_WITH_IGNORECASE_STRING_MATCH
Function name for case insensitive "ends with" String matching. |
static String |
NAME_ENDS_WITH_STRING_MATCH
Function name for case sensitive "ends with" String matching. |
static String |
NAME_EQUALS_IGNORECASE_STRING_MATCH
Function name for case insensitive "equals" String matching. |
static String |
NAME_EQUALS_STRING_MATCH
Function name for case sensitive "equals" String matching. |
static String |
NAME_REGEXP_STRING_MATCH
Function name for regular expression String matching. |
static String |
NAME_STARTS_WITH_IGNORECASE_STRING_MATCH
Function name for case insensitive "starts with" String matching. |
static String |
NAME_STARTS_WITH_STRING_MATCH
Function name for case sensitive "starts with" String matching. |
| Fields inherited from class com.cafesoft.cams.attr.func.AbstractFunction |
|---|
FUNCTION_NS |
| Constructor Summary | |
|---|---|
protected |
MatchFunction(String functionName,
int functionId,
String argumentType)
Create a new MatchFunction that takes arguments that
are all the same type. |
protected |
MatchFunction(String functionName,
int functionId,
String[] argumentTypes)
Creates a new MatchFunction that takes arguments that
are of different types. |
| Method Summary | |
|---|---|
static void |
addFunctions(Map functionMap)
Static initializer to add all the functions supported by this class to the list of functions handled by this class. |
EvaluationResult |
evaluate(List argList,
EvaluationContext evalContext)
Evaluate the function, using the specified parameters. |
| Methods inherited from class com.cafesoft.cams.attr.func.AbstractFunction |
|---|
checkArgList, checkArgListAllowBags, evalArgs, getFunctionId, getFunctionName, getIdentifier, getReturnType, returnsBag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME_REGEXP_STRING_MATCH
public static final String NAME_EQUALS_STRING_MATCH
public static final String NAME_EQUALS_IGNORECASE_STRING_MATCH
public static final String NAME_STARTS_WITH_STRING_MATCH
public static final String NAME_STARTS_WITH_IGNORECASE_STRING_MATCH
public static final String NAME_ENDS_WITH_STRING_MATCH
public static final String NAME_ENDS_WITH_IGNORECASE_STRING_MATCH
public static final String NAME_CONTAINS_STRING_MATCH
public static final String NAME_CONTAINS_IGNORECASE_STRING_MATCH
| Constructor Detail |
|---|
protected MatchFunction(String functionName,
int functionId,
String argumentType)
MatchFunction that takes arguments that
are all the same type.
functionName - the name of the functionfunctionId - identifies which of the three functions it isargumentType - the type of all arguments
protected MatchFunction(String functionName,
int functionId,
String[] argumentTypes)
MatchFunction that takes arguments that
are of different types.
functionName - the name of the functionfunctionId - identifies which of the three functions it isargumentTypes - the types of the arguments| Method Detail |
|---|
public static void addFunctions(Map functionMap)
public EvaluationResult evaluate(List argList,
EvaluationContext evalContext)
evaluate in interface Functionevaluate in class AbstractFunctionargList - a List of Evaluatable
objects representing the arguments passed to the functionevalContext - an EvaluationContext so that the
Evaluatable objects can be evaluated
EvaluationResult representing the
function's result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||