|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ConstraintSeverity> org.eclipse.emf.validation.model.ConstraintSeverity
public enum ConstraintSeverity
Describes the severity of failure to meet a
constraint
. See the individual value descriptions
for details. The values correspond one-to-one with the Eclipse
IStatus
severity constants.
IStatus
,
IModelConstraint
Enum Constant Summary | |
---|---|
CANCEL
Indicates that failure of the constraint constitutes an error condition that should cancel the validation operation (no further constraints are evaluated). |
|
ERROR
Indicates that failure of the constraint constitutes an error condition. |
|
INFO
Indicates that failure of the constraint should only generate an informational message to the user. |
|
NULL
This special value is a pointer-safe null value according to the Null Object pattern. |
|
WARNING
Indicates that failure of the constraint constitutes a warning condition. |
Method Summary | |
---|---|
static List<ConstraintSeverity> |
getAllInstances()
Obtains all values of the enumeration. |
static ConstraintSeverity |
getInstance(String name)
Obtains the name d instance. |
String |
getLiteral()
|
String |
getLocalizedName()
Obtains my localized (user-friendly) name. |
String |
getName()
Obtains my symbolic name. |
int |
getValue()
|
boolean |
isNull()
Queries whether I am the Null Object of this enumeration. |
int |
toIStatusSeverity()
Converts me to the Eclipse IStatus severity code. |
String |
toString()
|
static ConstraintSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ConstraintSeverity[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ConstraintSeverity INFO
public static final ConstraintSeverity WARNING
public static final ConstraintSeverity ERROR
public static final ConstraintSeverity CANCEL
public static final ConstraintSeverity NULL
Method Detail |
---|
public static final ConstraintSeverity[] values()
for(ConstraintSeverity c : ConstraintSeverity.values()) System.out.println(c);
public static ConstraintSeverity valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static ConstraintSeverity getInstance(String name)
name
d instance.
name
- the name to retrieve (not case-sensitive)
NULL
if no matching
instance existspublic static final List<ConstraintSeverity> getAllInstances()
public final String getName()
getName
in interface Enumerator
getInstance(java.lang.String)
public final String getLocalizedName()
getName()
public boolean isNull()
null
pointers are never used with this type.
NULL
instancepublic int toIStatusSeverity()
IStatus
severity code.
public String toString()
toString
in class Enum<ConstraintSeverity>
public int getValue()
getValue
in interface Enumerator
public String getLiteral()
getLiteral
in interface Enumerator
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |