org.inria.ns.reflex.processor.exp
Class InternalTuningDirective

java.lang.Object
  extended by org.inria.ns.reflex.processor.ForeignAttribute.Impl
      extended by org.inria.ns.reflex.processor.exp.InternalTuningDirective
All Implemented Interfaces:
Comparable, ForeignAttribute
Direct Known Subclasses:
DisablePrefixesAttr, EnablePrefixesAttr, UseCatalogAttr

public abstract class InternalTuningDirective
extends ForeignAttribute.Impl
implements ForeignAttribute

A special foreign attribute used at the lowest level of the engine.

Such directive act on the internal tuning and is invoked by the special method applyDirective(AbstractAction, Element) instead of apply(AbstractAction, Element, SortedList) that is rendered inefficient.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.ForeignAttribute
ForeignAttribute.Impl, ForeignAttribute.Marker
 
Constructor Summary
InternalTuningDirective()
           
 
Method Summary
 AbstractAction apply(AbstractAction parent, Element element, SortedList foreignAttrs)
          Does nothing ; to apply this directive, use applyDirective(AbstractAction, Element).
abstract  void applyDirective(AbstractAction parent, Element element)
          Do apply the directive.
 int getPriority()
          This default implementation returns -1.
 
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
 
Methods inherited from interface org.inria.ns.reflex.processor.ForeignAttribute
getName, getValue, setName, setValue
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

InternalTuningDirective

public InternalTuningDirective()
Method Detail

apply

public final AbstractAction apply(AbstractAction parent,
                                  Element element,
                                  SortedList foreignAttrs)
                           throws XMLException
Does nothing ; to apply this directive, use applyDirective(AbstractAction, Element).

Specified by:
apply in interface ForeignAttribute
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()
This default implementation returns -1.

Specified by:
getPriority in interface ForeignAttribute
Returns:
-1.

applyDirective

public abstract void applyDirective(AbstractAction parent,
                                    Element element)
Do apply the directive.

Parameters:
parent - The action depending from.
element - The XML element that contains the foreign attribute.