org.inria.ns.reflex.processor.xcl.xml
Class SetXMLAttribute

java.lang.Object
  extended by org.inria.ns.reflex.processor.core.AbstractAction
      extended by org.inria.ns.reflex.processor.xcl.xml.SetXMLAttribute
All Implemented Interfaces:
Executable, Presentable, NamespaceContextFactory

public class SetXMLAttribute
extends AbstractAction

SetXMLAttribute sets an attribute to an X-operable object.

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
SetXMLAttribute(Expression referent, QExpression name, Expression value, boolean normalize, Node node, AbstractAction parent)
           
 
Method Summary
 void runAction(DataSet dataSet)
          Execute the action by setting an attribute to the referent.
 
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

SetXMLAttribute

public SetXMLAttribute(Expression referent,
                       QExpression name,
                       Expression value,
                       boolean normalize,
                       Node node,
                       AbstractAction parent)
Parameters:
referent - The X-operable object, as an Expression.
name - The name of the attribute to set.
value - The value of the attribute to set.
normalize - true if the attribute text value must be normalized, false if the value must be preserve as is.
node - 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

runAction

public void runAction(DataSet dataSet)
               throws ExecutionException,
                      XPathException
Execute the action by setting an attribute to the referent.

Overrides:
runAction in class AbstractAction
Parameters:
dataSet - The set of datas used when the action is running.
Throws:
ExecutionException - If the action can't be performed.
XPathException
See Also:
AbstractAction.runAction(org.inria.ns.reflex.processor.DataSet)