com.topologi.diffx.event.impl
Class WordEvent

java.lang.Object
  extended bycom.topologi.diffx.event.impl.DiffXEventBase
      extended bycom.topologi.diffx.event.impl.CharactersEventBase
          extended bycom.topologi.diffx.event.impl.WordEvent
All Implemented Interfaces:
DiffXEvent, TextEvent, XMLFormattable, XMLWritable

public final class WordEvent
extends CharactersEventBase
implements TextEvent

A text event representing a word.

Version:
23 December 2004
Author:
Christophe Lauret (Allette Systems)

Constructor Summary
WordEvent(CharSequence w)
          Creates a new word event.
 
Method Summary
 String toString()
           
 
Methods inherited from class com.topologi.diffx.event.impl.CharactersEventBase
equals, equals, getCharacters, getWeight, hashCode, setWeight, toXML, toXML, toXML
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.topologi.diffx.event.TextEvent
getCharacters
 
Methods inherited from interface com.topologi.diffx.event.DiffXEvent
equals, getWeight, setWeight
 
Methods inherited from interface com.topologi.diffx.xml.XMLWritable
toXML
 
Methods inherited from interface com.topologi.diffx.xml.XMLFormattable
toXML, toXML
 

Constructor Detail

WordEvent

public WordEvent(CharSequence w)
          throws NullPointerException
Creates a new word event.

Parameters:
w - The word as a string.
Throws:
NullPointerException - If the given String is null.
Method Detail

toString

public String toString()
See Also:
Object.toString()