org.escot
Interface EscotFeature

All Known Subinterfaces:
BooleanProperty, FunctionEvaluator, NumberProperty, StringProperty
All Known Implementing Classes:
BasicFeature

public interface EscotFeature

The top level interface for interoperable ESCOT data types.


Field Summary
static String COLOR_ATTRIBUTE
          a color attribute
static String DESCRIPTION_ATTRIBUTE
          a description attribute
static String ICON16x16_ATTRIBUTE
          an icon attribute
static String TYPE_ATTRIBUTE
          a type attribute
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          adds a property change listener to this feature.
 EscotFeature duplicate()
          Features that should be duplicated when wired to return a duplicate to handle the next wire.
 Object getAttribute(String attribute)
          gets the value of the given attribute
 String getName()
          gets the name of this feature
 void putAttribute(String attribute, Object value)
          associates the given value with the given attribute
 void removePropertyChangeListener(PropertyChangeListener l)
          removes a property change listener from this feature
 

Field Detail

DESCRIPTION_ATTRIBUTE

public static final String DESCRIPTION_ATTRIBUTE
a description attribute

COLOR_ATTRIBUTE

public static final String COLOR_ATTRIBUTE
a color attribute

ICON16x16_ATTRIBUTE

public static final String ICON16x16_ATTRIBUTE
an icon attribute

TYPE_ATTRIBUTE

public static final String TYPE_ATTRIBUTE
a type attribute
Method Detail

getName

public String getName()
gets the name of this feature
Returns:
the name of the feature

getAttribute

public Object getAttribute(String attribute)
gets the value of the given attribute
Parameters:
attribute - the attribute
Returns:
an Object representing the value

putAttribute

public void putAttribute(String attribute,
                         Object value)
associates the given value with the given attribute
Parameters:
attribute - the attribute
value - the value for the attribute

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
adds a property change listener to this feature. Notified of changes in Name or attributes.
Parameters:
l - a PropertyChangeListener that wants to be notified of changes

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
removes a property change listener from this feature
Parameters:
l - a PropertyChangeListener that no longer wants to listen to changes

duplicate

public EscotFeature duplicate()
                       throws InstantiationException,
                              IllegalAccessException
Features that should be duplicated when wired to return a duplicate to handle the next wire.