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

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

public class SyncAttr
extends ForeignAttribute.Impl

The @xcl:sync foreign attribute provides basic support for synchronization.

When not specified, no synchronization is expected, otherwise this attribute may have the following values :

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.ForeignAttribute
ForeignAttribute.Impl, ForeignAttribute.Marker
 
Constructor Summary
SyncAttr()
           
 
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 10.
 
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

SyncAttr

public SyncAttr()
Method Detail

apply

public AbstractAction apply(AbstractAction parent,
                            Element element,
                            SortedList foreignAttrs)
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.

getPriority

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

Returns:
10 = the priority level of this foreign attribute.