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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicString
public BasicString()
BasicString
public BasicString(String name)
BasicString
public BasicString(String name,
String value)
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