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

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

public class EnablePrefixesAttr
extends InternalTuningDirective

The @exp:enable-prefixes foreign attribute is used to enable the prefixes to use.

When a prefix is explicitely enabled, the elements and foreign attributes that use this prefix MUST be bound to a module.

Author:
Philippe Poulard
See Also:
DisablePrefixesAttr

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.processor.ForeignAttribute
ForeignAttribute.Impl, ForeignAttribute.Marker
 
Constructor Summary
EnablePrefixesAttr()
           
 
Method Summary
 void applyDirective(AbstractAction parent, Element element)
          Set the prefixes to enable.
 
Methods inherited from class org.inria.ns.reflex.processor.exp.InternalTuningDirective
apply, getPriority
 
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

EnablePrefixesAttr

public EnablePrefixesAttr()
Method Detail

applyDirective

public void applyDirective(AbstractAction parent,
                           Element element)
Set the prefixes to enable. The value of this foreign attribute contains the list of prefixes to enable. This foreign attribute applied when unmarshalling only.

Specified by:
applyDirective in class InternalTuningDirective
Parameters:
parent - The action depending from.
element - The XML element that contains the foreign attribute.