|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.validation.model.EvaluationMode<T>
T
- the kind of object that is validated in an evaluation modepublic final class EvaluationMode<T>
Describes the context in which a IModelConstraint
is evaluated.
See the individual value descriptions for more information.
Note that both batch and live constraints are evaluated in batch mode. This serves applications that do not work in a transactional context, but still want critical constraints to be evaluated on batch invocations.
Field Summary | |
---|---|
static EvaluationMode<EObject> |
BATCH
Constraints executed in the "Batch" context are intended to be constraints that are evaluated on demand (when the user elects to evaluate them). |
static EvaluationMode<Notification> |
LIVE
Constraints executed in the "Live" context are intended to be constraints that are requirements for committing a transaction in an application that implements a transactional model for changes to the data. |
static EvaluationMode<Void> |
NULL
This special value is a pointer-safe null value according to the Null Object pattern. |
Method Summary | ||
---|---|---|
static List<EvaluationMode<?>> |
getAllInstances()
Obtains all of the enumeration values. |
|
static
|
getInstance(String name)
Obtains the name d instance. |
|
String |
getLocalizedName()
Obtains my localized name, for display to the user. |
|
String |
getName()
Obtains my symbolic name. |
|
boolean |
isBatch()
Queries whether I am evaluated in batch mode. |
|
boolean |
isBatchOnly()
Queries whether I am evaluated in batch mode only (not also in live mode). |
|
boolean |
isLive()
Queries whether I am evaluated in live mode. |
|
boolean |
isNull()
Queries whether I am the Null Object of this enumeration. |
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EvaluationMode<Notification> LIVE
Constraints executed in the "Live" context are intended to be constraints that are requirements for committing a transaction in an application that implements a transactional model for changes to the data. The intent is that if any live constraints fail, the transaction may not be committed and may have to be rolled back if the application cannot fix the data.
Note that "live" mode constraints are also evaluated in batch contexts.
public static final EvaluationMode<EObject> BATCH
public static final EvaluationMode<Void> NULL
Method Detail |
---|
public static <T> EvaluationMode<T> getInstance(String name)
name
d instance. If the specified
name
is not recognized as the name of a valid instance or
is null
, then the result is the special NULL
instance.
name
- the name of the instance to retrieve (not case-sensitive)
NULL
if no such instance existspublic static final List<EvaluationMode<?>> getAllInstances()
public final String getName()
getInstance(java.lang.String)
public final String getLocalizedName()
public boolean isNull()
null
pointers are never used with this type.
NULL
instancepublic boolean isLive()
public boolean isBatch()
public boolean isBatchOnly()
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 |