|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--intradoc.common.ScriptExtensionsAdaptor
|
+--intradoc.common.ScriptCommonEvaluations
Provides standard evaluations of variables and functions in Intradoc.
| Field Summary | |
static java.lang.String[] |
COMMON_FUNCTIONS
List of functions that are supported and configuration data for each function. |
static int[][] |
COMMON_FUNCTIONS_CONFIG
Configuration data for functions. |
protected static java.lang.String |
m_overflowChars
|
protected static int |
m_overflowCharsLength
|
| Fields inherited from class intradoc.common.ScriptExtensionsAdaptor |
m_functionDefinitionTable, m_functionTable, m_variableDefinitionTable, m_variableTable |
| Constructor Summary | |
ScriptCommonEvaluations()
|
|
| Method Summary | |
protected java.lang.String |
doPad(java.lang.String str,
int left,
int right)
adds white space to the left and right of the string passed, or returns the string if either pad numbers are negative. |
static java.lang.Object |
doRegex(int function,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
execute a regEx method |
protected static boolean |
doRegexInit()
Use reflection to initialize the regular expression Java methods (1.4 only) |
boolean |
evaluateFunction(ScriptInfo info,
java.lang.Object[] args,
ExecutionContext cxt)
Evaluate standard functions. |
void |
load(ScriptRegistrator reg)
Initializes configuration hashtable. |
protected static java.lang.String |
stringFill(java.lang.String str,
java.lang.String fill,
long len,
boolean isRight)
This function either right or left fills the given string with the specified character up the desired length. |
protected static java.lang.String |
stringReplace(java.lang.String str,
java.lang.String fromStr,
java.lang.String toStr)
This function works on the first parameter replacing all occurrences of fromStr with toStr. |
protected static java.lang.String |
stringReplaceIgnoreCase(java.lang.String str,
java.lang.String fromStr,
java.lang.String toStr)
|
| Methods inherited from class intradoc.common.ScriptExtensionsAdaptor |
evaluateValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.lang.String m_overflowChars
protected static int m_overflowCharsLength
public static final java.lang.String[] COMMON_FUNCTIONS
public static final int[][] COMMON_FUNCTIONS_CONFIG
| Constructor Detail |
public ScriptCommonEvaluations()
| Method Detail |
public void load(ScriptRegistrator reg)
load in interface ScriptExtensionsload in class ScriptExtensionsAdaptor
public boolean evaluateFunction(ScriptInfo info,
java.lang.Object[] args,
ExecutionContext cxt)
throws ServiceException
evaluateFunction in interface ScriptExtensionsevaluateFunction in class ScriptExtensionsAdaptorServiceException
protected static java.lang.String stringReplace(java.lang.String str,
java.lang.String fromStr,
java.lang.String toStr)
protected static java.lang.String stringReplaceIgnoreCase(java.lang.String str,
java.lang.String fromStr,
java.lang.String toStr)
protected static java.lang.String stringFill(java.lang.String str,
java.lang.String fill,
long len,
boolean isRight)
protected java.lang.String doPad(java.lang.String str,
int left,
int right)
protected static boolean doRegexInit()
public static java.lang.Object doRegex(int function,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
throws ServiceException
function - 41-matches, 42-replaceFirst, 43-replaceAllarg1 - haystackarg2 - needlearg3 - replacement needle, can be null
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
(c) 1996-2005 All rights reserved. Stellent, Inc. |