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

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

public class FallbackAction
extends AbstractAction
implements Fallback

The <xcl:fallback> element recovers its parent action when it fails to run.

According to its parent action, a fallback action also may be invoked when an unexpected condition occurs ; when the fallback action ends, its parent action may goes on.

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
FallbackAction(QName id, Node node, AbstractAction parent)
          Creates a new instance of FallbackAction.
 
Method Summary
 QName getId()
          The ID of this action.
static AbstractAction unmarshal(AbstractAction parent, Element element)
          XML unmarshaller for FallbackAction.
 
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
 
Methods inherited from interface org.inria.ns.reflex.structures.Executable
run
 

Constructor Detail

FallbackAction

public FallbackAction(QName id,
                      Node node,
                      AbstractAction parent)
Creates a new instance of FallbackAction.

Parameters:
id - The ID of this action.
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 FallbackAction.

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

getId

public QName getId()
The ID of this action.

Specified by:
getId in interface Identifiable
Returns:
The ID of this action, that may be null.
See Also:
Identifiable.getId()