Class TextAction

  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
All Implemented Interfaces:
Executable, Identifiable, Presentable, NamespaceContextFactory
Direct Known Subclasses:
TextAction.InlineType, TextAction.Pattern, TextAction.Value

public abstract class TextAction
extends AbstractStepAction

At runtime, the <asl:text> element defines a text value, refers to a text type, or matches a pattern. When involved in a type definition, it is used to produce items of the data model. An ignorable "text action" is used to match a text that won't create a text item in the data model. Otherwise, the item created has a name and a value.

Philippe Poulard

Nested Class Summary
static class TextAction.InlineType
          Defines a text action that refers to a data type which is defined inline.
 class TextAction.Matcher
          A matcher that indicates if an attribute value or a text content matches : a text value, a regular expression, or a data type.
static class TextAction.Pattern
          Defines a text action that matches a pattern.
static class TextAction.TypeNameRef
          Defines a text action that refers to a data type by its name.
static class TextAction.Value
          Defines a text action that matches a value.
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.asl.AbstractStepAction
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
Fields inherited from class org.inria.ns.reflex.processor.core.AbstractAction
actions, parent, processorInstance
Constructor Summary
TextAction(Element element, AbstractAction parent)
          Creates a new instance of TextAction.
Method Summary
static AbstractAction unmarshal(AbstractAction parent, Element element)
          XML unmarshaller for TextAction.
Methods inherited from class org.inria.ns.reflex.processor.asl.AbstractStepAction
computeOccurs, getId, getMaxOccurs, getMinOccurs, invokeHandler, runAction, 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


public TextAction(Element element,
                  AbstractAction parent)
           throws XPathException
Creates a new instance of TextAction.

element - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Method Detail


public static AbstractAction unmarshal(AbstractAction parent,
                                       Element element)
                                throws XMLException
XML unmarshaller for TextAction.

parent - The action depending from.
element - The XML element to unmarshall.
The TextAction created.
XMLException - When the element and its content is not those expected.