Enum Class DSLMessage
- All Implemented Interfaces:
Serializable, Comparable<DSLMessage>, Constable
Contains all the messages that can be produced during Spring Cloud Data Flow DSL
parsing. Each message has a kind (info, warn, error) and a code number. Tests can be
written to expect particular code numbers rather than particular text, enabling the
message text to more easily be modified and the tests to run successfully in different
locales.
When a message is formatted, it will have this kind of form
105E: (pos 34): Expected an argument value but was ' '
The prefix captures the code and the error kind, whilst the position is included if it is known.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionformatMessage(int pos, Object... inserts) Produce a complete message including the prefix, the position (if known) and with the inserts applied to the message.getKind()static DSLMessageReturns the enum constant of this class with the specified name.static DSLMessage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNEXPECTED_DATA_AFTER_STREAMDEF
-
NO_WHITESPACE_BEFORE_ARG_NAME
-
NO_WHITESPACE_BEFORE_ARG_EQUALS
-
NO_WHITESPACE_BEFORE_ARG_VALUE
-
MORE_INPUT
-
EXPECTED_ARGUMENT_VALUE
-
NON_TERMINATING_DOUBLE_QUOTED_STRING
-
NON_TERMINATING_QUOTED_STRING
-
MISSING_CHARACTER
-
NOT_EXPECTED_TOKEN
-
OOD
-
UNEXPECTED_ESCAPE_CHAR
-
UNEXPECTED_DATA
-
UNRECOGNIZED_STREAM_REFERENCE
-
UNRECOGNIZED_APP_REFERENCE
-
EXPECTED_APPNAME
-
EXPECTED_WHITESPACE_AFTER_APP_BEFORE_ARGUMENT
-
ILLEGAL_STREAM_NAME
-
ILLEGAL_TASK_NAME
-
MISSING_VALUE_FOR_VARIABLE
-
VARIABLE_NOT_TERMINATED
-
AMBIGUOUS_APP_NAME
-
CANNOT_USE_COMPOSEDAPP_HERE_AS_IT_DEFINES_SOURCE_DESTINATION
-
CANNOT_USE_COMPOSEDAPP_HERE_AS_IT_DEFINES_SINK_DESTINATION
-
CANNOT_USE_COMPOSEDAPP_HERE_ALREADY_HAS_SOURCE_DESTINATION
-
CANNOT_USE_COMPOSEDAPP_HERE_ALREADY_HAS_SINK_DESTINATION
-
EXPECTED_DESTINATION_PREFIX
-
NO_WHITESPACE_IN_DESTINATION_DEFINITION
-
NO_WHITESPACE_BETWEEN_LABEL_NAME_AND_COLON
-
DUPLICATE_LABEL
-
APP_REFERENCE_NOT_UNIQUE
-
NO_WHITESPACE_IN_DOTTED_NAME
-
DESTINATIONS_UNSUPPORTED_HERE
-
EXPECTED_WHITESPACE_AFTER_LABEL_COLON
-
EXPECTED_STREAM_NAME_AFTER_LABEL_COLON
-
TASK_DOUBLE_AND_REQUIRED
-
TASK_DOUBLE_OR_REQUIRED
-
TASK_HYPHEN_EXPECTED_USE_FOR_TRANSITION
-
TASK_MISSING_TRANSITION_ARROW
-
TASK_UNQUOTED_TRANSITION_CHECK_MUST_BE_NUMBER
-
TASK_NO_LABELS_ON_PARENS
-
NO_DOUBLE_LABELS
-
TASK_ARROW_SHOULD_BE_PRECEDED_BY_CODE
-
TASK_VALIDATION_SECONDARY_SEQUENCES_MUST_BE_NAMED
-
TASK_VALIDATION_DUPLICATE_LABEL
-
TASK_VALIDATION_TRANSITION_TARGET_LABEL_UNDEFINED
-
TASK_ELEMENT_IN_COMPOSED_DEFINITION_DOES_NOT_EXIST
-
TASK_UNEXPECTED_DATA
-
TASK_MORE_INPUT
-
TASK_VALIDATION_LABEL_CLASHES_WITH_TASKAPP_NAME
-
TASK_VALIDATION_APP_NAME_CLASHES_WITH_LABEL
-
TASK_VALIDATION_APP_NAME_ALREADY_IN_USE
-
TASK_VALIDATION_SPLIT_WITH_ONE_FLOW
-
TASK_ARGUMENTS_NOT_ALLOWED_UNLESS_IN_APP_MODE
-
DONT_MIX_PIPE_AND_DOUBLEPIPE
-
DONT_USE_DOUBLEPIPE_WITH_CHANNELS
-
UNEXPECTED_DATA_IN_DESTINATION_NAME
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
formatMessage
Produce a complete message including the prefix, the position (if known) and with the inserts applied to the message.- Parameters:
pos- the position, if less than zero it is ignored and not included in the messageinserts- the inserts to put into the formatted message- Returns:
- a formatted message
-
getKind
-