|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.dataengine.AbstractContext
planetj.dataengine.HTMLContext
Field Summary | |
static java.lang.String |
className
Class name. |
Fields inherited from class planetj.dataengine.AbstractContext |
DEFAULT_TYPE, mCode, mLocked, mParameterized, mParameterNames, mParameterSource, mParameterValues, PARAM_ESCAPE_NUMBERED, PARAM_ESCAPE_TABLE, PARAM_ESCAPE_USAGE_ID, PARAM_ESCAPE_USER, PARAM_ESCAPE_USER_USAGE_ID, PARAM_NUMBERED, PARAM_TABLE, PARAM_USAGE_ID, PARAM_USER, PARAM_USER_USAGE_ID, TYPE_TABLE_PARAMETER |
Constructor Summary | |
HTMLContext()
Constructor |
|
HTMLContext(ExecutingContext ec)
Constructor |
|
HTMLContext(IUser user)
Deprecated. replaced with HTMLContext(ExecutingContext) |
Method Summary | |
protected java.lang.StringBuffer |
appendProperties(java.lang.StringBuffer info)
Gets a String representation of this context's HTML code. |
java.lang.Object |
execute()
Gets a modified HTML code String with parameters replaced with their set values. |
static java.lang.String |
execute(java.lang.String code,
Row parameterRow,
ExecutingContext ec)
Creates a new HTMLContext from the given ExecutingContext and executes the context using the given Row for parameter values. |
static java.lang.String |
execute(java.lang.String code,
Row parameterRow,
int valueType,
ExecutingContext ec)
Creates a new HTMLContext from the given ExecutingContext and executes the context using the given Row for parameter values. |
PropertyGroupList |
getPropertyGroups()
Get all the property groups stored in this context. |
protected int |
handleParameter(int startIndex,
java.lang.StringBuffer code)
Handles a parameter token in a StringBuffer of code. |
protected boolean |
isParameterTokenEnd(char c)
Tests if the specified character signals the end of a parameter token |
protected java.lang.String |
rectifyCode(java.lang.String code)
Subclasses need to handle the logic of finding parameters out of the code string. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String className
Constructor Detail |
public HTMLContext()
public HTMLContext(IUser user)
public HTMLContext(ExecutingContext ec)
Method Detail |
public static java.lang.String execute(java.lang.String code, Row parameterRow, ExecutingContext ec)
public static java.lang.String execute(java.lang.String code, Row parameterRow, int valueType, ExecutingContext ec)
code
- parameterRow
- valueType
- ec
-
protected java.lang.StringBuffer appendProperties(java.lang.StringBuffer info)
appendProperties
in class AbstractContext
public java.lang.Object execute() throws CMException
execute
in class AbstractContext
CMException
public PropertyGroupList getPropertyGroups()
getPropertyGroups
in interface IContext
getPropertyGroups
in class AbstractContext
protected int handleParameter(int startIndex, java.lang.StringBuffer code)
handleParameter
in class AbstractContext
protected boolean isParameterTokenEnd(char c)
isParameterTokenEnd
in class AbstractContext
protected java.lang.String rectifyCode(java.lang.String code)
AbstractContext
rectifyCode
in class AbstractContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |