public enum SyntaxErrorMessageMapper extends Enum<SyntaxErrorMessageMapper>
| Enum Constant and Description |
|---|
EXPECTING_INCLUDE
An error message related to the !include instruction.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayMessage()
Returns the readable message.
|
static Optional<SyntaxErrorMessageMapper> |
getMappingForParserMessage(String message)
Returns an instance of
SyntaxErrorMessageMapper given a parser message, if found. |
static String |
getMappingForParserMessageOrGetDefault(String message)
Returns a readable message given a parser message if found.
|
String |
getParserMessage()
Returns the parser original message.
|
static SyntaxErrorMessageMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SyntaxErrorMessageMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyntaxErrorMessageMapper EXPECTING_INCLUDE
public static SyntaxErrorMessageMapper[] values()
for (SyntaxErrorMessageMapper c : SyntaxErrorMessageMapper.values()) System.out.println(c);
public static SyntaxErrorMessageMapper valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Optional<SyntaxErrorMessageMapper> getMappingForParserMessage(String message)
SyntaxErrorMessageMapper given a parser message, if found.message - the parser message.SyntaxErrorMessageMapper instance if found, empty else.public static String getMappingForParserMessageOrGetDefault(String message)
message - the parser message.public String getDisplayMessage()
public String getParserMessage()
Copyright © 2020. All rights reserved.