|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.topologi.diffx.event.impl.DiffXEventBase
com.topologi.diffx.event.impl.CharactersEventBase
com.topologi.diffx.event.impl.SpaceEvent
A particular type of event reserved for white spaces.
| Field Summary | |
static SpaceEvent |
DOUBLE_WHITESPACE
A static instance for the double whitespaces. |
static SpaceEvent |
NEW_LINE
A static instance for the new lines. |
static SpaceEvent |
SINGLE_WHITESPACE
A static instance for the single whitespaces. |
static SpaceEvent |
TAB
A static instance for tabs. |
| Constructor Summary | |
SpaceEvent(CharSequence w)
Creates a new word event. |
|
| Method Summary | |
static SpaceEvent |
getInstance(CharSequence space)
Returns the white space event corresponding to the given string. |
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 |
| Field Detail |
public static final SpaceEvent SINGLE_WHITESPACE
Use this constant instead of creating new instances
public static final SpaceEvent DOUBLE_WHITESPACE
Use this constant instead of creating new instances
public static final SpaceEvent NEW_LINE
Use this constant instead of creating new instances
public static final SpaceEvent TAB
Use this constant instead of creating new instances
| Constructor Detail |
public SpaceEvent(CharSequence w)
throws NullPointerException
w - The word as a string.
NullPointerException - If the given String is null.| Method Detail |
public String toString()
Object.toString()public static SpaceEvent getInstance(CharSequence space)
space - The string for the white space event.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||