public enum ProblemOption extends java.lang.Enum<ProblemOption> implements Option<ProblemHandler.Severity>
Enum Constant and Description |
---|
AMBIGUOUS_ASSOCIATION_ENDS
Severity of the ambiguity when an unnavigable but named associend has the
same name as the implicit name of an unnamed association end.
|
CLOSURE_ITERATOR
Severity of using the non-spec closure iterator.
|
CONCEPTUAL_OPERATION_NAME
Severity of making use of an operation name conceptually as
in 7.4.8 .
|
ELEMENT_NAME_QUOTE_ESCAPE
Severity of using the non-spec "..." escape sequence for
element names consisting of multiple OCL tokens.
|
INHERITED_FEATURE_CONTEXT
Severity of the problem to report when declaring (using the concrete
syntax) an operation or property context in a classifier that inherits
the feature (rather than declaring a redefinition of the feature as
the context).
|
STRING_CASE_CONVERSION
Severity of using the non-spec toUpper() and toLower()
operations on Strings.
|
STRING_SINGLE_QUOTE_ESCAPE
Severity of using the non-spec '' escape sequence for single-quotes
in string literals.
|
Modifier and Type | Method and Description |
---|---|
ProblemHandler.Severity |
getDefaultValue()
Obtains the option's default value.
|
java.lang.String |
getKey()
Obtains my string key, which may be used for persistence in a
preference store.
|
static ProblemOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProblemOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProblemOption CLOSURE_ITERATOR
public static final ProblemOption STRING_CASE_CONVERSION
public static final ProblemOption STRING_SINGLE_QUOTE_ESCAPE
public static final ProblemOption ELEMENT_NAME_QUOTE_ESCAPE
public static final ProblemOption AMBIGUOUS_ASSOCIATION_ENDS
public static final ProblemOption INHERITED_FEATURE_CONTEXT
public static final ProblemOption CONCEPTUAL_OPERATION_NAME
public static ProblemOption[] values()
for (ProblemOption c : ProblemOption.values()) System.out.println(c);
public static ProblemOption 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 getKey()
Option
getKey
in interface Option<ProblemHandler.Severity>
null
public ProblemHandler.Severity getDefaultValue()
Option
getDefaultValue
in interface Option<ProblemHandler.Severity>
null