org.inria.ns.reflex.processor.exp
Class AbstractDefinitionAction

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.core.AbstractFeedAction
          extended by org.inria.ns.reflex.processor.exp.AbstractDefinitionAction
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory
Direct Known Subclasses:
ElementAction, ExtendedFunctionAction, ForeignAttributeAction, PredefinedPropertyAction

public abstract class AbstractDefinitionAction
extends AbstractFeedAction

The parent class for all active material, that provides convenient methods. An active material is defined with :

These elements may have a name attribute that is the name of the active material. This attribute is mandatory for foreign attribute definitions.

These elements may have an source attribute that is the class name of the active material. This attribute is mandatory for foreign attribute definitions.

Author:
Philippe Poulard

Nested Class Summary
 
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.core.AbstractAction
actions, parent, processorInstance
 
Constructor Summary
AbstractDefinitionAction(Element element, AbstractAction parent)
          Create a new definition action.
 
Method Summary
abstract  void addToModule(Module module)
          Add this definition to a module.
 Object getData(DataSet dataSet)
          Return this action that will feed the context.
 
Methods inherited from class org.inria.ns.reflex.processor.core.AbstractFeedAction
runAction
 
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, unmarshal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDefinitionAction

public AbstractDefinitionAction(Element element,
                                AbstractAction parent)
                         throws XMLException
Create a new definition action.

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

getData

public Object getData(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Return this action that will feed the context.

Specified by:
getData in class AbstractFeedAction
Parameters:
dataSet - The set of datas used when the name is computed.
Returns:
The computed data.
Throws:
ExecutionException - If the computation can't be performed.
XPathException

addToModule

public abstract void addToModule(Module module)
Add this definition to a module.

Parameters:
module - The target module.