org.inria.ns.reflex.processor.xcl
Class SetItemAction

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

public abstract class SetItemAction
extends AbstractAction

The <xcl:item> element adds a value to a multi-valuated property defined on a nested element.

Author:
Philippe Poulard
See Also:
SetAction

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
SetItemAction(Node node, AbstractAction parent)
          Creates a new instance of SetItemAction.
 
Method Summary
static SetItemAction newSetNamedItemAction(QExpression key, Expression value, Node node, AbstractAction parent)
          Create a new instance of SetItemAction for retrieving the value from an expression.
static SetItemAction newSetNamedItemAction(QExpression key, Node node, AbstractAction parent)
          Create a new instance of SetItemAction for retrieving the value from a sub-collection or a DOM document.
static SetItemAction newSetUnnamedItemAction(Expression value, Node node, AbstractAction parent)
          Create a new instance of SetItemAction for retrieving the value from an expression.
static SetItemAction newSetUnnamedItemAction(Node node, AbstractAction parent)
          Create a new instance of SetItemAction for retrieving the value from a sub-collection or a DOM document.
static AbstractAction unmarshal(AbstractAction parent, Element element)
          XML unmarshaller for SetItemAction.
 
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, runAction, runActions, toPrettyString, toPrettyString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetItemAction

public SetItemAction(Node node,
                     AbstractAction parent)
Creates a new instance of SetItemAction.

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.
Method Detail

unmarshal

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

Parameters:
parent - The action depending from.
element - The XML element to unmarshall.
Returns:
The SetItemAction created.
Throws:
UnmarshalException - When the element and its content is not those expected.
XMLException

newSetNamedItemAction

public static SetItemAction newSetNamedItemAction(QExpression key,
                                                  Expression value,
                                                  Node node,
                                                  AbstractAction parent)
Create a new instance of SetItemAction for retrieving the value from an expression.

Parameters:
key - The key associated to the value, as a QExpression.
value - The value of the property, as an Expression.
node - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Returns:
The SetItemAction for retrieving the value from an expression.

newSetNamedItemAction

public static SetItemAction newSetNamedItemAction(QExpression key,
                                                  Node node,
                                                  AbstractAction parent)
Create a new instance of SetItemAction for retrieving the value from a sub-collection or a DOM document.

Parameters:
key - The key associated to the value, as an QExpression.
node - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Returns:
The SetItemAction for retrieving the value from an expression.

newSetUnnamedItemAction

public static SetItemAction newSetUnnamedItemAction(Expression value,
                                                    Node node,
                                                    AbstractAction parent)
Create a new instance of SetItemAction for retrieving the value from an expression.

Parameters:
value - The value of the property, as an Expression.
node - The node from which the action has been unmarshalled. Used for namespace prefix resolution when performing XPath expressions.
parent - The action depending from.
Returns:
The SetItemAction for retrieving the value from an expression.

newSetUnnamedItemAction

public static SetItemAction newSetUnnamedItemAction(Node node,
                                                    AbstractAction parent)
Create a new instance of SetItemAction for retrieving the value from a sub-collection or a DOM document.

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.
Returns:
The SetItemAction for retrieving the value from an expression.