|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<IEvaluationResult.Action> org.electrocodeogram.cpc.core.api.provider.notification.IEvaluationResult.Action
public static enum IEvaluationResult.Action
The type of action which should be taken as a result of an evaluation.
Enum Constant Summary | |
---|---|
IGNORE
Completely ignore this modification event. |
|
INSTANT_NOTIFY
Similar to NOTIFY .But indicates to the client of the INotificationEvaluationProvider that this
notification should be made visible to the user instantly. |
|
INSTANT_WARN
Similar to WARN . |
|
INSYNC
The clone is in sync with all its clone group members. |
|
INSYNC_CUSTOMISED
The clone is in sync with all its clone group members, if one considers all modifications made shortly after the creation of each group member to be of no consequence. |
|
LEAVE_GROUP
The clone modification has changed the clone to an extend which makes it very likely that the clone does no longer belong to its original clone group. |
|
MODIFIED
The clone modification is minor but does represent a possible change in semantics which might be of interest to the user. |
|
NOTIFY
The user should be notified about this modification. |
|
WARN
The user should be warned about this modification. |
Method Summary | |
---|---|
static IEvaluationResult.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static IEvaluationResult.Action[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IEvaluationResult.Action IGNORE
This action is typically chosen, if the nature of the change guarantees that
an evaluation of the modification of this clone and its group members would
not yield any different results than before the change.
I.e. a white space only change or a change which only affected a comment.
public static final IEvaluationResult.Action INSYNC
Notifications and modified states for the clone and all its clone group
members should be cleared.
The new state for all of them would be IClone.State#DEFAULT
.
public static final IEvaluationResult.Action INSYNC_CUSTOMISED
This state therefore describes parametrised clones which have not been modified in any significant way since their initial parametrisation.
Notifications and modified states for the clone and all its clone group
members should be cleared.
The new state for all of them would be IClone.State#CUSTOMISED
.
public static final IEvaluationResult.Action MODIFIED
NOTIFY
or WARN
.
This clone and all other members of this clone group should be set to
IClone.State#MODIFIED
. Other group members are not updated to this
state if they already have a higher state set (IClone.State#NOTIFY
or IClone.State#WARN
).
public static final IEvaluationResult.Action NOTIFY
Indicates that this clone's state should be set to IClone.State#NOTIFY
and
the state of all its group members to IClone.State#MODIFIED
, unless
they already have a higher state set.
public static final IEvaluationResult.Action WARN
Indicates that this clone's state should be set to IClone.State#WARN
and
the state of all its group members to IClone.State#MODIFIED
, unless
they already have a higher state set.
public static final IEvaluationResult.Action INSTANT_NOTIFY
NOTIFY
.INotificationEvaluationProvider
that this
notification should be made visible to the user instantly.
NOTIFY
is to allow
the client to delay the notification until the user has finished modifying the
clone and its surroundings. The client will then typically delegate the clone
back to the INotificationEvaluationProvider
for reevaluation once the
"delay" has passed.
NOTIFY
public static final IEvaluationResult.Action INSTANT_WARN
WARN
.
WARN
,
INSTANT_NOTIFY
public static final IEvaluationResult.Action LEAVE_GROUP
Method Detail |
---|
public static IEvaluationResult.Action[] values()
for (IEvaluationResult.Action c : IEvaluationResult.Action.values()) System.out.println(c);
public static IEvaluationResult.Action 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 name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |