org.inria.ns.reflex.processor.asl
Class TextAction.Value

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.asl.AbstractStepAction
          extended by org.inria.ns.reflex.processor.asl.TextAction
              extended by org.inria.ns.reflex.processor.asl.TextAction.Value
All Implemented Interfaces:
Executable, Identifiable, Presentable, NamespaceContextFactory
Enclosing class:
TextAction

public static class TextAction.Value
extends TextAction

Defines a text action that matches a value. A text candidate matches the value if it starts with this value. The non-matching part is the remainder.


Nested Class Summary
 class TextAction.Value.ValueTextMatcher
          A text matcher on a value.
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.asl.TextAction
TextAction.InlineType, TextAction.Matcher, TextAction.Pattern, TextAction.TypeNameRef, TextAction.Value
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.asl.AbstractStepAction
AbstractStepAction.ItemsLists
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.core.AbstractAction
AbstractAction.ParameterAdapter, AbstractAction.UselessAction
 
Field Summary
 
Fields inherited from class org.inria.ns.reflex.processor.asl.AbstractStepAction
STEP_USED_BUBBLE_MESSAGE
 
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
 
Constructor Summary
TextAction.Value(Expression value, Element element, AbstractAction parent)
          Creates a new instance of TextAction that matches a simple value.
 
Method Summary
 void runAction(DataSet dataSet)
          Feed the context with a text matcher.
 
Methods inherited from class org.inria.ns.reflex.processor.asl.TextAction
unmarshal
 
Methods inherited from class org.inria.ns.reflex.processor.asl.AbstractStepAction
computeOccurs, getId, getMaxOccurs, getMinOccurs, invokeHandler, stableRun, unstableRun
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextAction.Value

public TextAction.Value(Expression value,
                        Element element,
                        AbstractAction parent)
                 throws XPathException
Creates a new instance of TextAction that matches a simple value.

Parameters:
value - The value 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
Method Detail

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