All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xe.xe_Token

java.lang.Object
   |
   +----xe.xe_Token

public class xe_Token
extends Object
Class xe_Token - A token parsed from an XML source. A token has a type, a value (optionally) and can record the whitespace that precedes the token.


Constructor Index

 o xe_Token(int)
Construct a token with no value defined.
 o xe_Token(int, String)
Construct a token which has a string value.

Method Index

 o getPrecedingWhitespace()
Get the value of the preceding whitespace.
 o getStringValue()
Get the value of the token as a string.
 o getType()
Get the type of the token (expected to be one of the standard values listed in xe_TokenType).
 o getValue()
Get the value of the token.
 o setPrecedingWhitespace(String)
Set the value of the preceding whitespace.
 o setType(int)
Set the type of the token.
 o setValue(String)
Set the value of the token.
 o toString()
Return a string representation of the token (intended for use as debug output).
 o typeToString()
Return the token type as a string.

Constructors

 o xe_Token
 public xe_Token(int InputTokenType)
Construct a token with no value defined.

Parameters:
InputTokenType - Type of the token
 o xe_Token
 public xe_Token(int InputTokenType,
                 String InputValue)
Construct a token which has a string value.

Parameters:
InputTokenType - Type of the token
InputValue - The string value for the token

Methods

 o getType
 public int getType()
Get the type of the token (expected to be one of the standard values listed in xe_TokenType).

Returns:
The type of the token
 o getValue
 public xg_Value getValue()
Get the value of the token.

Returns:
Value of token
 o getStringValue
 public String getStringValue()
Get the value of the token as a string.

Returns:
String value or null
 o getPrecedingWhitespace
 public String getPrecedingWhitespace()
Get the value of the preceding whitespace.

Returns:
String value or null
 o setType
 public void setType(int InputTokenType)
Set the type of the token.

Parameters:
The - type of the token
 o setValue
 public void setValue(String InputTokenValue)
Set the value of the token.

Parameters:
The - value of the token
 o setPrecedingWhitespace
 public void setPrecedingWhitespace(String InputPrecedingWhitespace)
Set the value of the preceding whitespace.

Parameters:
InputPrecedingWhitespace - Value of the preceding whitespace
 o toString
 public String toString()
Return a string representation of the token (intended for use as debug output).

Returns:
String representing the token type and its value(s).
Overrides:
toString in class Object
 o typeToString
 protected String typeToString()
Return the token type as a string.

Returns:
String value or null

All Packages  Class Hierarchy  This Package  Previous  Next  Index