org.inria.ns.reflex.processor.asl
Class TextAction.Pattern
java.lang.Object
org.inria.ns.reflex.processor.core.AbstractAction
org.inria.ns.reflex.processor.asl.AbstractStepAction
org.inria.ns.reflex.processor.asl.TextAction
org.inria.ns.reflex.processor.asl.TextAction.Pattern
- All Implemented Interfaces:
- Executable, Identifiable, Presentable, NamespaceContextFactory
- Enclosing class:
- TextAction
public static class TextAction.Pattern
- extends TextAction
Defines a text action that matches a pattern.
|
Method Summary |
void |
runAction(DataSet dataSet)
Feed the context with a text matcher. |
| Methods inherited from class org.inria.ns.reflex.processor.core.AbstractAction |
addAction, addFallbackAction, createContext, getCanonicalPath, getFallbackAction, getLocalFallbackAction, getLogger, getNamespaceContext, getNode, getParent, recover, recover, removeFallbackAction, reorganize, run, runActions, toPrettyString, toPrettyString, toString |
TextAction.Pattern
public TextAction.Pattern(Pattern regexp,
Element element,
AbstractAction parent)
throws XPathException
- Creates a new instance of
TextAction that matches a
regular expression.
- Parameters:
regexp - The pattern to match.element - The node from which the action has been unmarshalled. Used
for namespace prefix resolution when performing XPath
expressions.parent - The action depending from.
- Throws:
XPathException
runAction
public void runAction(DataSet dataSet)
throws ExecutionException,
XPathException
- Feed the context with a text matcher.
- Overrides:
runAction in class AbstractStepAction
- Parameters:
dataSet - The set of datas used when the action is running.
- Throws:
ExecutionException - If the action can't be performed.
XPathException