org.inria.ns.reflex.processor
Class ForeignAttribute.Marker

java.lang.Object
  extended by org.inria.ns.reflex.processor.ForeignAttribute.Impl
      extended by org.inria.ns.reflex.processor.ForeignAttribute.Marker
All Implemented Interfaces:
Comparable, ForeignAttribute
Enclosing interface:
ForeignAttribute

public static class ForeignAttribute.Marker
extends ForeignAttribute.Impl

A foreign attribute that is just a marker (does nothing).

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.ForeignAttribute
ForeignAttribute.Impl, ForeignAttribute.Marker
 
Constructor Summary
ForeignAttribute.Marker()
          Default constructor used for automatic unmarshalling.
ForeignAttribute.Marker(Attr attr)
          Create a marker from an attribute.
ForeignAttribute.Marker(QName attName, String value)
          Create a marker attribute.
 
Method Summary
 AbstractAction apply(AbstractAction parent, Element element, SortedList foreignAttrs)
          Do nothing.
 int getPriority()
          The priority of a marker is the lowest possible.
 
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

ForeignAttribute.Marker

public ForeignAttribute.Marker()
Default constructor used for automatic unmarshalling.


ForeignAttribute.Marker

public ForeignAttribute.Marker(QName attName,
                               String value)
Create a marker attribute.

Parameters:
attName - The name of the attribute.
value - Its value.

ForeignAttribute.Marker

public ForeignAttribute.Marker(Attr attr)
Create a marker from an attribute.

Parameters:
attr - The attribute.
See Also:
ForeignAttribute.Marker
Method Detail

apply

public AbstractAction apply(AbstractAction parent,
                            Element element,
                            SortedList foreignAttrs)
                     throws XMLException
Do nothing.

Parameters:
parent - The parent action.
element - Not used.
foreignAttrs - Not used.
Returns:
The same parent.
Throws:
XMLException - When the foreign attribute can't be unmarshalled.

getPriority

public int getPriority()
The priority of a marker is the lowest possible.

Returns:
The lowest priority.
See Also:
Integer.MAX_VALUE