org.inria.ns.reflex.processor.asl
Class AttributeAction.NameRef

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.AttributeAction
              extended by org.inria.ns.reflex.processor.asl.AttributeAction.NameRef
All Implemented Interfaces:
Executable, Identifiable, Presentable, NamespaceContextFactory
Enclosing class:
AttributeAction

public static class AttributeAction.NameRef
extends AttributeAction

Refers to an attribute by its name.


Nested Class Summary
 class AttributeAction.NameRef.AttributeNameMatcher
          A concrete material item given by an attribute reference.
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.asl.AttributeAction
AttributeAction.Matcher, AttributeAction.NameRef, AttributeAction.NamespaceRef
 
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
AttributeAction.NameRef(QName nameRef, Element element, AbstractAction parent)
          Creates a new instance of NameRef.
 
Method Summary
 void runAction(DataSet dataSet)
          Execute the action by adding a data to the current context.
 void setAttributeDefinition(AttributeDefinition attributeDefinition)
          Set the inline attribute definition.
 
Methods inherited from class org.inria.ns.reflex.processor.asl.AttributeAction
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

AttributeAction.NameRef

public AttributeAction.NameRef(QName nameRef,
                               Element element,
                               AbstractAction parent)
                        throws XPathException
Creates a new instance of NameRef.

Parameters:
name - The name of the attribute definition.
element - The element 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

setAttributeDefinition

public void setAttributeDefinition(AttributeDefinition attributeDefinition)
Set the inline attribute definition.

Parameters:
attributeDefinition - The inline attribute definition

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Execute the action by adding a data to the current context.

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