|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ParsingLevel>
de.fzi.kadmos.parser.ParsingLevel
public enum ParsingLevel
Parsing levels for alignment parsers. Specific parsers must implement a
parse(ParsingLevel parsingLevel) method that takes a certain parsing
level.
The following levels are supported:
Level 1: Parser continues processing if MultiplicityException,
IncompatibleEntityTypesException and/or
AlignmentParserException is thrown
Level 2: Parser continues processing if AlignmentParserException is thrown,
but terminates if IncompatibleEntityTypesException and/or
MultiplicityException is thrown
Level 3: Parser terminates processing if AlignmentParserException,
IncompatibleEntityTypesException and/or
MultiplicityException is thrown
Types of Exceptions:
AlignmentParserException: Any exception which is thrown within the parser
during parsing of an alignment.
MultiplicityException: See MultiplicityException
de.fzi.kadmos.parser| Enum Constant Summary | |
|---|---|
ONE
|
|
THREE
|
|
TWO
|
|
| Method Summary | |
|---|---|
int |
getLevel()
Getter for the field level. |
boolean |
terminateOnError()
toProcessAPE. |
boolean |
terminateOnException(Exception ex)
Returns whether parsing must terminate when a given exception is thrown. |
static ParsingLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ParsingLevel[] |
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 |
| Enum Constant Detail |
|---|
public static final ParsingLevel ONE
public static final ParsingLevel TWO
public static final ParsingLevel THREE
| Method Detail |
|---|
public static ParsingLevel[] values()
for (ParsingLevel c : ParsingLevel.values()) System.out.println(c);
public static ParsingLevel valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getLevel()
Getter for the field level.
public boolean terminateOnException(Exception ex)
ex - The exception which has been thrown during parsing of a document.
public boolean terminateOnError()
toProcessAPE.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||