public enum BjoernValidations extends java.lang.Enum<BjoernValidations>
| Enum Constant and Description |
|---|
INVALID_KEYWORD |
MISSING_STATEMENT_CONTENT |
MISSINGNAMES |
WRONG_INDENTATION_BACKGROUND |
WRONG_INDENTATION_SCENARIOS |
WRONSTARTINGKEYWORD |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
validate(java.lang.String[] lines,
int index) |
java.util.List<BjoernValidationError> |
validateLine(java.lang.String[] lines,
int index,
java.util.List<BjoernValidationError> errors)
Validates a line of a bjoernspec.
|
static BjoernValidations |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BjoernValidations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BjoernValidations INVALID_KEYWORD
public static final BjoernValidations WRONSTARTINGKEYWORD
public static final BjoernValidations WRONG_INDENTATION_BACKGROUND
public static final BjoernValidations WRONG_INDENTATION_SCENARIOS
public static final BjoernValidations MISSINGNAMES
public static final BjoernValidations MISSING_STATEMENT_CONTENT
public static BjoernValidations[] values()
for (BjoernValidations c : BjoernValidations.values()) System.out.println(c);
public static BjoernValidations 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.util.List<BjoernValidationError> validateLine(java.lang.String[] lines, int index, java.util.List<BjoernValidationError> errors)
lines - All lines of the specindex - to run over every line of the specerrors - - containing the previous errorsprotected abstract void validate(java.lang.String[] lines,
int index)
throws BjoernValidationsException
BjoernValidationsException