public enum ProblemOption extends Enum<ProblemOption> implements PreferenceableOption<ProblemHandler.Severity>, Option<ProblemHandler.Severity>
PreferenceableOption.Listener, PreferenceableOption.PreferenceableOption2<T>
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.
|
String |
getKey()
Obtains my string key, which may be used for persistence in a
preference store.
|
String |
getPluginId()
Returns the plugin qualifier for the key.
|
ProblemHandler.Severity |
getValueOf(String string)
Returns an option value from a String typically obtained from an Eclipse Preference file.
|
String |
toString() |
static ProblemOption |
valueOf(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(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 String getKey()
PreferenceableOption
getKey
in interface PreferenceableOption<ProblemHandler.Severity>
getKey
in interface Option<ProblemHandler.Severity>
null
public ProblemHandler.Severity getDefaultValue()
PreferenceableOption
getDefaultValue
in interface PreferenceableOption<ProblemHandler.Severity>
getDefaultValue
in interface Option<ProblemHandler.Severity>
null
public String getPluginId()
PreferenceableOption
getPluginId
in interface PreferenceableOption<ProblemHandler.Severity>
public ProblemHandler.Severity getValueOf(String string)
PreferenceableOption
getValueOf
in interface PreferenceableOption<ProblemHandler.Severity>
public String toString()
toString
in class Enum<ProblemOption>
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.