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

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
All Implemented Interfaces:
Executable, Identifiable, Presentable, NamespaceContextFactory
Direct Known Subclasses:
AttributeAction.NameRef, AttributeAction.NamespaceRef

public class AttributeAction
extends AbstractStepAction

At runtime, the <asl:attribute> element defines or refer to an attribute.

Author:
Philippe Poulard

Nested Class Summary
 class AttributeAction.Matcher
          A material item based on an attribute.
static class AttributeAction.NameRef
          Refers to an attribute by its name.
static class AttributeAction.NamespaceRef
          Refers to an attribute set by its namespace URI.
 
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(Element element, AbstractAction parent)
          Creates a new instance of AttributeAction.
 
Method Summary
static AbstractAction unmarshal(AbstractAction parent, Element element)
          XML unmarshaller for AttributeAction.
 
Methods inherited from class org.inria.ns.reflex.processor.asl.AbstractStepAction
computeOccurs, getId, getMaxOccurs, getMinOccurs, invokeHandler, runAction, 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

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

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.
Throws:
XPathException
Method Detail

unmarshal

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

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