com.springsource.util.parser.manifest
Enum ManifestProblemKind
java.lang.Object
java.lang.Enum<ManifestProblemKind>
com.springsource.util.parser.manifest.ManifestProblemKind
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ManifestProblemKind>
public enum ManifestProblemKind
- extends java.lang.Enum<ManifestProblemKind>
Enumeration of all the kinds of problem that can occur whilst parsing a manifest.
Concurrent Semantics
This class is thread safe.
- Author:
- Andy Clement
Field Summary |
private java.lang.String |
code
|
private java.lang.String |
message
|
Method Summary |
java.lang.String |
format(int line,
int scol,
java.lang.String... inserts)
|
static ManifestProblemKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ManifestProblemKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NAME_MUST_START_WITH_ALPHANUMERIC
public static final ManifestProblemKind NAME_MUST_START_WITH_ALPHANUMERIC
NAME_ENDED_PREMATURELY_WITH_NEWLINE
public static final ManifestProblemKind NAME_ENDED_PREMATURELY_WITH_NEWLINE
VALUE_MUST_IMMEDIATELY_FOLLOW_NAME
public static final ManifestProblemKind VALUE_MUST_IMMEDIATELY_FOLLOW_NAME
MISSING_VALUE
public static final ManifestProblemKind MISSING_VALUE
ILLEGAL_NAME_CHAR
public static final ManifestProblemKind ILLEGAL_NAME_CHAR
VALUE_MUST_START_WITH_SPACE
public static final ManifestProblemKind VALUE_MUST_START_WITH_SPACE
UNEXPECTED_NAME
public static final ManifestProblemKind UNEXPECTED_NAME
UNEXPECTED_TOKEN_KIND
public static final ManifestProblemKind UNEXPECTED_TOKEN_KIND
EXPECTED_NEWLINE
public static final ManifestProblemKind EXPECTED_NEWLINE
UNEXPECTED_NEWLINE_DURING_VALUE_PARSING
public static final ManifestProblemKind UNEXPECTED_NEWLINE_DURING_VALUE_PARSING
MISSING_SPACE_FOR_CONTINUATION
public static final ManifestProblemKind MISSING_SPACE_FOR_CONTINUATION
EXPECTED_COLON
public static final ManifestProblemKind EXPECTED_COLON
UNEXPECTED_EOM
public static final ManifestProblemKind UNEXPECTED_EOM
MISSING_NAME_HEADER
public static final ManifestProblemKind MISSING_NAME_HEADER
NAME_ENDED_WITH_SPACE_RATHER_THAN_COLON
public static final ManifestProblemKind NAME_ENDED_WITH_SPACE_RATHER_THAN_COLON
NAME_TOO_LONG
public static final ManifestProblemKind NAME_TOO_LONG
VALUE_TOO_LONG
public static final ManifestProblemKind VALUE_TOO_LONG
code
private java.lang.String code
message
private java.lang.String message
values
public static ManifestProblemKind[] 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 (ManifestProblemKind c : ManifestProblemKind.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ManifestProblemKind 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
format
public java.lang.String format(int line,
int scol,
java.lang.String... inserts)