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

java.lang.Object
  extended by org.inria.ns.reflex.processor.ForeignAttribute.Impl
      extended by org.inria.ns.reflex.processor.xcl.TraverseAttr
All Implemented Interfaces:
Comparable, ForeignAttribute

public class TraverseAttr
extends ForeignAttribute.Impl

@xcl:traverse allows to traverse the content of an element without performing it.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.ForeignAttribute
ForeignAttribute.Impl, ForeignAttribute.Marker
 
Constructor Summary
TraverseAttr()
           
 
Method Summary
 AbstractAction apply(AbstractAction parent, Element element, SortedList foreignAttrs)
          Create a new abstract action that wraps the action to unmarshal.
 int getPriority()
          Return the priority of this foreign attribute, that is the MAX int.
 
Methods inherited from class org.inria.ns.reflex.processor.ForeignAttribute.Impl
compareTo, getName, getValue, setName, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraverseAttr

public TraverseAttr()
Method Detail

apply

public AbstractAction apply(AbstractAction parent,
                            Element element,
                            SortedList foreignAttrs)
                     throws XPathFunctionException
Create a new abstract action that wraps the action to unmarshal. This foreign attribute applied when unmarshalling only.

Parameters:
parent - The action depending from.
element - The XML element that contains the foreign attribute.
foreignAttrs - The other foreign attributes found within the element that hosts the attribute. Not used.
Returns:
The parent action, which is the wrapper action used for synchronisation purpose.
Throws:
XPathFunctionException - When the expression is incorrect.

getPriority

public int getPriority()
Return the priority of this foreign attribute, that is the MAX int.

Returns:
The priority level of this foreign attribute.
See Also:
Integer.MAX_VALUE