net.sf.jett.parser
Enum MetadataScanner.Token

java.lang.Object
  extended by java.lang.Enum<MetadataScanner.Token>
      extended by net.sf.jett.parser.MetadataScanner.Token
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MetadataScanner.Token>
Enclosing class:
MetadataScanner

public static enum MetadataScanner.Token
extends java.lang.Enum<MetadataScanner.Token>

Enumeration for the different types of Tokens in Metadata.


Enum Constant Summary
TOKEN_DOUBLE_QUOTE
           
TOKEN_EOI
           
TOKEN_EQUALS
           
TOKEN_ERROR_BUF_NULL
           
TOKEN_ERROR_EOI_IN_DQUOTES
           
TOKEN_ERROR_EOI_IN_SQUOTES
           
TOKEN_SEMICOLON
           
TOKEN_SINGLE_QUOTE
           
TOKEN_STRING
           
TOKEN_UNKNOWN
           
TOKEN_WHITESPACE
           
 
Method Summary
 int getCode()
          Returns the unique code associated with this Token.
static MetadataScanner.Token valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MetadataScanner.Token[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOKEN_ERROR_EOI_IN_SQUOTES

public static final MetadataScanner.Token TOKEN_ERROR_EOI_IN_SQUOTES

TOKEN_ERROR_EOI_IN_DQUOTES

public static final MetadataScanner.Token TOKEN_ERROR_EOI_IN_DQUOTES

TOKEN_ERROR_BUF_NULL

public static final MetadataScanner.Token TOKEN_ERROR_BUF_NULL

TOKEN_UNKNOWN

public static final MetadataScanner.Token TOKEN_UNKNOWN

TOKEN_WHITESPACE

public static final MetadataScanner.Token TOKEN_WHITESPACE

TOKEN_STRING

public static final MetadataScanner.Token TOKEN_STRING

TOKEN_SINGLE_QUOTE

public static final MetadataScanner.Token TOKEN_SINGLE_QUOTE

TOKEN_DOUBLE_QUOTE

public static final MetadataScanner.Token TOKEN_DOUBLE_QUOTE

TOKEN_SEMICOLON

public static final MetadataScanner.Token TOKEN_SEMICOLON

TOKEN_EQUALS

public static final MetadataScanner.Token TOKEN_EQUALS

TOKEN_EOI

public static final MetadataScanner.Token TOKEN_EOI
Method Detail

values

public static final MetadataScanner.Token[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MetadataScanner.Token c : MetadataScanner.Token.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MetadataScanner.Token valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getCode

public int getCode()
Returns the unique code associated with this Token.

Returns:
The unique code.


Copyright © 2012-2013 Jett Team. All Rights Reserved.