|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.validation.model.ConstraintSeverity
public final class 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
,
Serialized FormField Summary | |
---|---|
static ConstraintSeverity |
CANCEL
Indicates that failure of the constraint constitutes an error condition that should cancel the validation operation (no further constraints are evaluated). |
static ConstraintSeverity |
ERROR
Indicates that failure of the constraint constitutes an error condition. |
static ConstraintSeverity |
INFO
Indicates that failure of the constraint should only generate an informational message to the user. |
static ConstraintSeverity |
NULL
This special value is a pointer-safe null value according to the Null Object pattern. |
static ConstraintSeverity |
WARNING
Indicates that failure of the constraint constitutes a warning condition. |
Method Summary | |
---|---|
static List |
getAllInstances()
Obtains all values of the enumeration. |
static ConstraintSeverity |
getInstance(String name)
Obtains the name d instance. |
String |
getLocalizedName()
Obtains my localized (user-friendly) name. |
String |
getName()
Obtains my symbolic name. |
boolean |
isNull()
Queries whether I am the Null Object of this enumeration. |
int |
toIStatusSeverity()
Converts me to the Eclipse IStatus severity code. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field 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 ConstraintSeverity getInstance(String name)
name
d instance.
name
- the name to retrieve (not case-sensitive)
NULL
if no matching
instance existspublic static final List getAllInstances()
public final String getName()
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 Object
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |