org.inria.ns.reflex.processor.catalog
Class GroupAction
java.lang.Object
org.inria.ns.reflex.processor.core.AbstractAction
org.inria.ns.reflex.processor.catalog.GroupAction
- All Implemented Interfaces:
- Executable, Presentable, NamespaceContextFactory
- Direct Known Subclasses:
- AbstractIdentifierAction, CatalogAction, NextCatalogAction
public class GroupAction
- extends AbstractAction
At runtime, the <cat:group> element wraps a set of actions.
- Author:
- Philippe Poulard
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 |
GroupAction
public GroupAction(Element element,
AbstractAction parent)
throws XPathException
- Creates a new instance of
CatalogAction
.
- Parameters:
base
- The xml:base attribute as an expression.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
unmarshal
public static AbstractAction unmarshal(AbstractAction parent,
Element element)
throws XMLException
- XML unmarshaller for
GroupAction
.
- Parameters:
parent
- The action depending from.element
- The XML element to unmarshall.
- Returns:
- The
GroupAction
created.
- Throws:
UnmarshalException
- When the element and its content is not those expected.
XMLException
runAction
public void runAction(DataSet dataSet)
throws ExecutionException,
XPathException
- Process the xml:base and prefer attributes,
and run the sub-actions ; after processing, previous values
of these attribues are restored.
- 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