|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.textx.BasicTextFunctionResolver
public class BasicTextFunctionResolver
This class provides support for some basic functions, that are useful in text replacement done by a TextEngine.
TextEngine| Field Summary | |
|---|---|
static java.lang.String |
DATE
Name for a function that gets one string parameter and returns it with a lower case first letter. |
static java.lang.String |
LOWERCASE
Name for a function that gets one string parameter and returns it with all letters changed to lower case. |
static java.lang.String |
LOWERCASE_FIRST_LETTER
Name for a function that gets one string parameter and returns it with a lower case first letter. |
static java.lang.String |
UPPERCASE
Name for a function that gets one string parameter and returns it with all letters changed to upper case. |
static java.lang.String |
UPPERCASE_FIRST_LETTER
Name for a function that gets one string parameter and returns it with a capitalized first letter. |
| Constructor Summary | |
|---|---|
BasicTextFunctionResolver()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
executeFunction(java.lang.String functionName,
java.util.Vector parameter)
Returns the value for the function with the given name. |
boolean |
isKnownFunction(java.lang.String functionName)
Returns if the function with the given name can be resolved by the receiver. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UPPERCASE_FIRST_LETTER
public static final java.lang.String LOWERCASE_FIRST_LETTER
public static final java.lang.String UPPERCASE
public static final java.lang.String LOWERCASE
public static final java.lang.String DATE
| Constructor Detail |
|---|
public BasicTextFunctionResolver()
| Method Detail |
|---|
public java.lang.Object executeFunction(java.lang.String functionName,
java.util.Vector parameter)
throws UnknownFunctionException,
InvalidParameterException
executeFunction in interface FunctionResolverfunctionName - The case sensitive name of the function.parameter - A collection of parameters for the function.
UnknownFunctionException - The receiver is not knowing the function.
InvalidParameterExceptionpublic boolean isKnownFunction(java.lang.String functionName)
isKnownFunction in interface FunctionResolverfunctionName - The case sensitive name of the function.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||