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

java.lang.Object
  extended by org.inria.ns.reflex.processor.ForeignAttribute.Impl
All Implemented Interfaces:
Comparable, ForeignAttribute
Direct Known Subclasses:
ForeignAttribute.Marker, IfAttr, InternalTuningDirective, SyncAttr, TimeoutAttr, TraverseAttr, VersionAttr
Enclosing interface:
ForeignAttribute

public abstract static class ForeignAttribute.Impl
extends Object
implements ForeignAttribute

A partial implementation of foreign attribute.

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.Impl()
           
 
Method Summary
 int compareTo(Object o)
          Compare the priority of 2 foreign attributes.
 QName getName()
          Get the name of the attribute used by this instance.
 String getValue()
          Get the value of the attribute used by this instance.
 void setName(QName attName)
          Set the name of the attribute used by this instance.
 void setValue(String value)
          Set the value of the attribute used by this instance.
 
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
apply, getPriority
 

Constructor Detail

ForeignAttribute.Impl

public ForeignAttribute.Impl()
Method Detail

setName

public void setName(QName attName)
Set the name of the attribute used by this instance. The prefix may be used to test if this foreign attribute is active (and must be applied) or not.

Specified by:
setName in interface ForeignAttribute
Parameters:
attName - The name of the attribute.

getName

public QName getName()
Get the name of the attribute used by this instance. The prefix may be used to test if this foreign attribute is active (and must be applied) or not.

Specified by:
getName in interface ForeignAttribute
Returns:
TThe name of the attribute.

setValue

public void setValue(String value)
Set the value of the attribute used by this instance.

Specified by:
setValue in interface ForeignAttribute
Parameters:
value - The value of the attribute.

getValue

public String getValue()
Get the value of the attribute used by this instance.

Specified by:
getValue in interface ForeignAttribute
Returns:
The value of the attribute.

compareTo

public int compareTo(Object o)
Compare the priority of 2 foreign attributes.

Specified by:
compareTo in interface Comparable
Parameters:
o - The foreign attribute to compare with.
Returns:
0 if they are equals, > 0 if this foreign attribute has the greater priority, < 0 otherwise.