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

Constructor Index

 o WordEvent(Object, Properties)
Constructor.

Method Index

 o getValue(String)
Get a certain feature value.
 o setValue(String, String)
Set a parameter value.
 o toString()
Create a printable form of the event.

Constructor Detail

 o WordEvent
public WordEvent(java.lang.Object source,
                 java.util.Properties prop)
          Constructor.
Parameters:
source - the originating source.
prop - the properties attached to the word.

Method Detail

 o 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.
 o 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.
 o 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