com.osbcp.cssparser
Enum IncorrectFormatException.ErrorCode

java.lang.Object
  extended by java.lang.Enum<IncorrectFormatException.ErrorCode>
      extended by com.osbcp.cssparser.IncorrectFormatException.ErrorCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IncorrectFormatException.ErrorCode>
Enclosing class:
IncorrectFormatException

public static enum IncorrectFormatException.ErrorCode
extends java.lang.Enum<IncorrectFormatException.ErrorCode>

List of unique error codes.

Author:
Christoffer Pettersson

Enum Constant Summary
FOUND_COLON_WHEN_READING_SELECTOR_NAME
          When the parse founds a colon , before reading a real selector name.
FOUND_END_BRACKET_BEFORE_SEMICOLON
          When the parse founds an end bracket } before the value's semicolon ; ending.
FOUND_SEMICOLON_WHEN_READING_PROPERTY_NAME
          When the parse founds a semicolon ; when reading the property name.
 
Method Summary
static IncorrectFormatException.ErrorCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IncorrectFormatException.ErrorCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FOUND_SEMICOLON_WHEN_READING_PROPERTY_NAME

public static final IncorrectFormatException.ErrorCode FOUND_SEMICOLON_WHEN_READING_PROPERTY_NAME
When the parse founds a semicolon ; when reading the property name.


FOUND_END_BRACKET_BEFORE_SEMICOLON

public static final IncorrectFormatException.ErrorCode FOUND_END_BRACKET_BEFORE_SEMICOLON
When the parse founds an end bracket } before the value's semicolon ; ending.


FOUND_COLON_WHEN_READING_SELECTOR_NAME

public static final IncorrectFormatException.ErrorCode FOUND_COLON_WHEN_READING_SELECTOR_NAME
When the parse founds a colon , before reading a real selector name.

Method Detail

values

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

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

valueOf

public static IncorrectFormatException.ErrorCode 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
java.lang.NullPointerException - if the argument is null