public class Action
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static char[][] |
EMPTY_NAMESPACE |
static char[][] |
nameSpaces |
| Constructor and Description |
|---|
Action() |
Action(java.lang.String nameSpace) |
Action(java.lang.String rootPath,
java.lang.String pageName,
char[][] nameSpaces) |
Action(java.lang.String rootPath,
java.lang.String pageName,
java.lang.String nameSpace) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEmptyNameSpace() |
void |
addNameSpace(char[] nameSpace)
Add this namespace to the static list of namespaces [] []
If this namespace already exists in the list then it wont be added.
|
void |
addNameSpace(java.lang.String nameSpace)
Add this namespace to the static list of namespaces [] []
If this namespace already exists in the list then it wont be added.
|
void |
addNameSpaces(char[][] newNameSpaces) |
void |
addNameSpaces(java.util.List<java.lang.String> newNameSpaces) |
java.util.List<ReplacementMarker> |
findMarkers(java.lang.String page,
char[][] nameSpaces,
IExecContext execContext,
java.lang.String actionMapName)
Find and return a list of all the markers on the page that begin with the
nameSpace.
|
java.util.List<ReplacementMarker> |
findMarkers(java.lang.String page,
IExecContext execContext,
java.lang.String actionMapName)
Find and return a list of all the xml nodes on the page.
|
char[][] |
getNameSpaces() |
java.lang.String |
getPageName() |
java.lang.String |
getRootPath() |
static java.lang.String |
loadPage(java.lang.String rootPath,
java.lang.String pageName) |
java.lang.String |
processPage(IExecContext execContext)
Process the page replacing any actions and / or markers.
|
java.lang.String |
processPage(IExecContext execContext,
java.lang.String page) |
BaseAction[] |
processXML(IExecContext execContext,
java.lang.String page)
Process an XML
|
java.lang.String |
replaceMarkers(IExecContext execContext,
java.lang.String pageContent,
java.util.List<ReplacementMarker> markers) |
void |
setNameSpaces(char[][] nameSpaces) |
void |
setPageName(java.lang.String pageName) |
void |
setRootPath(java.lang.String rootPath) |
public static char[][] EMPTY_NAMESPACE
public static char[][] nameSpaces
public Action()
public Action(java.lang.String nameSpace)
nameSpace - the nameSpace preceeding the action, e.g <pager:code...> where pager is the nameSpacepublic Action(java.lang.String rootPath,
java.lang.String pageName,
java.lang.String nameSpace)
rootPath - the root path of the sitepageName - the name of the page to load, may include path elementsnameSpace - the nameSpace preceeding the action, e.g <pager:code...> where
pager is the nameSpacepublic Action(java.lang.String rootPath,
java.lang.String pageName,
char[][] nameSpaces)
rootPath - the root path of the sitepageName - the name of the page to load, may include path elementsnameSpaces - the nameSpace preceeding the action, e.g <pager:code...> where
pager is the nameSpacepublic java.lang.String processPage(IExecContext execContext) throws java.io.IOException, NestedActionException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, BadXMLException
java.io.IOException - , NestedPagerException, ClassNotFoundException,
InstantiationException, IllegalAccessException,
InvocationTargetException, NoSuchMethodExceptionNestedActionExceptionjava.lang.ClassNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionBadXMLExceptionpublic java.lang.String processPage(IExecContext execContext, java.lang.String page) throws java.io.IOException, NestedActionException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, BadXMLException
java.io.IOExceptionNestedActionExceptionjava.lang.ClassNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionBadXMLExceptionpublic BaseAction[] processXML(IExecContext execContext, java.lang.String page) throws java.io.IOException, NestedActionException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, BadXMLException
java.io.IOException - , NestedPagerException, ClassNotFoundException,
InstantiationException, IllegalAccessException,
InvocationTargetException, NoSuchMethodExceptionNestedActionExceptionjava.lang.ClassNotFoundExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionBadXMLExceptionpublic static java.lang.String loadPage(java.lang.String rootPath,
java.lang.String pageName)
throws java.io.IOException
rootPath - the root path of the sitepageName - the name of the page to load, may include path elementsjava.io.IOExceptionpublic java.util.List<ReplacementMarker> findMarkers(java.lang.String page, char[][] nameSpaces, IExecContext execContext, java.lang.String actionMapName) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, NestedActionException, BadXMLException
page - the web pagenameSpaces - the name space of the markers we want to find.execContext - actionMapName - java.lang.ClassNotFoundException - InstantiationException IllegalAccessException InvocationTargetException
NoSuchMethodException NestedActionException BadXMLExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionNestedActionExceptionBadXMLExceptionpublic java.util.List<ReplacementMarker> findMarkers(java.lang.String page, IExecContext execContext, java.lang.String actionMapName) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, NestedActionException, BadXMLException
page - the web pagejava.lang.ClassNotFoundException - InstantiationException IllegalAccessException InvocationTargetException
NoSuchMethodException NestedActionException BadXMLExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.NoSuchMethodExceptionNestedActionExceptionBadXMLExceptionpublic java.lang.String replaceMarkers(IExecContext execContext, java.lang.String pageContent, java.util.List<ReplacementMarker> markers) throws NestedActionException
NestedActionExceptionpublic java.lang.String getRootPath()
public void setRootPath(java.lang.String rootPath)
public java.lang.String getPageName()
public void setPageName(java.lang.String pageName)
public char[][] getNameSpaces()
public void setNameSpaces(char[][] nameSpaces)
public void addNameSpaces(java.util.List<java.lang.String> newNameSpaces)
public void addNameSpaces(char[][] newNameSpaces)
public void addEmptyNameSpace()
public void addNameSpace(java.lang.String nameSpace)
nameSpace - - the namespace to addpublic void addNameSpace(char[] nameSpace)
nameSpace - - the namespace to add