Class com.phrasys.events.WordEvent
java.lang.Object
|
+----com.phrasys.events.WordEvent
- public class WordEvent
- extends java.lang.Object
This class is used as a carrier of word information.
- Version:
- 1.0 (15/09/00)
- Author:
- Oliver Mason
WordEvent(Object, Properties)
- Constructor.
getValue(String)
- Get a certain feature value.
setValue(String, String)
- Set a parameter value.
toString()
- Create a printable form of the event.
WordEvent
public WordEvent(java.lang.Object source,
java.util.Properties prop)
Constructor.
- Parameters:
source - the originating source.
prop - the properties attached to the word.
getValue
public java.lang.String getValue(java.lang.String attribute)
Get a certain feature value.
- Parameters:
attribute - the attribute to query.
- Returns:
- the value of that attribute.
setValue
public void setValue(java.lang.String attribute,
java.lang.String value)
Set a parameter value.
- Parameters:
attribute - the attribute to set.
value - the value of that attribute.
toString
public java.lang.String toString()
Create a printable form of the event.
- Returns:
- the event as a string.
- Overrides:
- toString in class java.lang.Object