public enum ParserProblem extends java.lang.Enum<ParserProblem>
Enum Constant and Description |
---|
CheckDetailOrYear |
CheckRank |
NameReferenceSeparation |
NewCombinationHasPublication |
OldInfraSpeciesNotSupported |
RankNotSupported |
UnparsableAuthorPart |
UnparsableNamePart |
UnparsableReferenceTitle |
Modifier and Type | Method and Description |
---|---|
static int |
addProblem(int originalProblems,
ParserProblem newProblem) |
static int |
addProblems(int hasProblem,
int newProblems) |
java.lang.String |
getMessage() |
java.lang.String |
getMessage(Language language) |
static boolean |
hasError(int problem) |
boolean |
isError() |
boolean |
isWarning() |
static int |
removeProblem(int originalProblems,
ParserProblem problemToRemove) |
static ParserProblem |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParserProblem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static java.util.List<ParserProblem> |
warningList(int problem) |
public static final ParserProblem CheckRank
public static final ParserProblem CheckDetailOrYear
public static final ParserProblem NameReferenceSeparation
public static final ParserProblem UnparsableReferenceTitle
public static final ParserProblem UnparsableNamePart
public static final ParserProblem UnparsableAuthorPart
public static final ParserProblem OldInfraSpeciesNotSupported
public static final ParserProblem RankNotSupported
public static final ParserProblem NewCombinationHasPublication
public static ParserProblem[] values()
for (ParserProblem c : ParserProblem.values()) System.out.println(c);
public static ParserProblem valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getMessage()
public java.lang.String getMessage(Language language)
public boolean isError()
public boolean isWarning()
public static java.util.List<ParserProblem> warningList(int problem)
public static boolean hasError(int problem)
public static int addProblem(int originalProblems, ParserProblem newProblem)
hasProblem
- warning
- public static int addProblems(int hasProblem, int newProblems)
public static int removeProblem(int originalProblems, ParserProblem problemToRemove)
parsingProblem
- problemToRemove
- Copyright © 2007-2020 EDIT. All Rights Reserved.