org.escot
Class BasicString

java.lang.Object
  |
  +--org.escot.BasicFeature
        |
        +--org.escot.BasicValue
              |
              +--org.escot.BasicString
All Implemented Interfaces:
ChangeListener, EscotAssociated, EscotFeature, EventListener, StringProperty
Direct Known Subclasses:
StringAdapter

public class BasicString
extends BasicValue
implements StringProperty, EscotAssociated, ChangeListener

A Basic implementation of the StringProperty interface.


Fields inherited from class org.escot.BasicValue
mChangeSupport
 
Fields inherited from class org.escot.BasicFeature
INITIAL_ATTR_CAPACITY, mAttributes, mPCSupport
 
Fields inherited from interface org.escot.StringProperty
MIME_TYPE_ATTRIBUTE, URL_ATTRIBUTE
 
Fields inherited from interface org.escot.EscotFeature
COLOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, ICON16x16_ATTRIBUTE, TYPE_ATTRIBUTE
 
Constructor Summary
BasicString()
           
BasicString(String name)
           
BasicString(String name, String value)
           
 
Method Summary
 void addAssociate(Object foreignAssociate)
          Invoked when the foreign associate is associated with.
 EscotFeature duplicate()
          Features that should be duplicated when wired to return a duplicate to handle the next wire.
 Boolean getBooleanValue()
           
 Number getNumberValue()
           
 String getTextValue()
          Returns the value of this DataItem.
 void setTextValue(String value)
          Sets the value of this DataItem.
 void stateChanged(ChangeEvent ev)
          This method is invoked when a foreign associate changes its value.
 
Methods inherited from class org.escot.BasicValue
addChangeListener, canAddAssociate, fireChangeEvent, removeAssociate, removeChangeListener
 
Methods inherited from class org.escot.BasicFeature
addPropertyChangeListener, getAttribute, getName, putAttribute, removePropertyChangeListener, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.escot.StringProperty
addChangeListener, removeChangeListener
 
Methods inherited from interface org.escot.EscotFeature
addPropertyChangeListener, getAttribute, getName, putAttribute, removePropertyChangeListener
 
Methods inherited from interface org.escot.EscotAssociated
canAddAssociate, removeAssociate
 

Constructor Detail

BasicString

public BasicString()

BasicString

public BasicString(String name)

BasicString

public BasicString(String name,
                   String value)
Method Detail

stateChanged

public void stateChanged(ChangeEvent ev)
This method is invoked when a foreign associate changes its value.
Specified by:
stateChanged in interface ChangeListener

getTextValue

public String getTextValue()
Returns the value of this DataItem.
Specified by:
getTextValue in interface StringProperty
Overrides:
getTextValue in class BasicValue
Following copied from interface: org.escot.StringProperty
Returns:
the String for this StringProperty

getNumberValue

public Number getNumberValue()
Overrides:
getNumberValue in class BasicValue

getBooleanValue

public Boolean getBooleanValue()
Overrides:
getBooleanValue in class BasicValue

setTextValue

public void setTextValue(String value)
Sets the value of this DataItem.

addAssociate

public void addAssociate(Object foreignAssociate)
Description copied from interface: EscotAssociated
Invoked when the foreign associate is associated with.
Specified by:
addAssociate in interface EscotAssociated
Following copied from interface: org.escot.EscotAssociated
Parameters:
foreignAssociate - the object to associate with

duplicate

public EscotFeature duplicate()
                       throws InstantiationException,
                              IllegalAccessException
Description copied from interface: EscotFeature
Features that should be duplicated when wired to return a duplicate to handle the next wire.
Specified by:
duplicate in interface EscotFeature
Overrides:
duplicate in class BasicFeature