|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.eclipse.emf.validation.service.ValidationEvent
public final class ValidationEvent
Event notifying IValidationListener
s that a validation operation
has occurred.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ValidationEvent(EvaluationMode<T> mode,
Map<String,?> clientData,
Collection<? extends T> targets,
IStatus status)
Initializes me with the evaluation mode, client data, elements or notifications validated, and validation results that I will pass along to listeners. |
|
ValidationEvent(EvaluationMode<T> mode,
Map<String,?> clientData,
Collection<? extends T> targets,
IStatus status,
Collection<String> clientContextIds)
Initializes me with the evaluation mode, client data, elements or notifications validated, and validation results that I will pass along to listeners. |
Method Summary | |
---|---|
Collection<String> |
getClientContextIds()
Retrieves the client context ids that were involved in the validation that lead to this event. |
Map<String,Object> |
getClientData()
Retrieves the client-specific data that the client that initiated the validation operation publishes to listeners. |
EvaluationMode<?> |
getEvaluationMode()
Queries the mode in which the validation operation occurred. |
int |
getSeverity()
Queries the overall severity of the validation results. |
List<IConstraintStatus> |
getValidationResults()
Obtains the results of the validation operation. |
Collection<?> |
getValidationTargets()
Obtains the collection of EObject s (in the
batch mode case) or Notification s
(in the live mode case) that were validated. |
boolean |
matches(int severityMask)
Queries whether the overall severity of the validation results matches the specified severity mask. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationEvent(EvaluationMode<T> mode, Map<String,?> clientData, Collection<? extends T> targets, IStatus status)
T
- the kind of objects that were validatedmode
- the evaluation modeclientData
- data specific to the particular validation client
that performed the validation wishes to make available to listenerstargets
- the elements or notifications (according to the evaluation
mode) that were validatedstatus
- the validation resultspublic ValidationEvent(EvaluationMode<T> mode, Map<String,?> clientData, Collection<? extends T> targets, IStatus status, Collection<String> clientContextIds)
T
- the kind of objects that were validatedmode
- the evaluation modeclientData
- data specific to the particular validation client
that performed the validation wishes to make available to listenerstargets
- the elements or notifications (according to the evaluation
mode) that were validatedstatus
- the validation resultsclientContextIds
- the client context Ids that were involved in the
validation.Method Detail |
---|
public Collection<String> getClientContextIds()
public EvaluationMode<?> getEvaluationMode()
null
or
even EvaluationMode.NULL
public Map<String,Object> getClientData()
null
String
s
public Collection<?> getValidationTargets()
EObject
s (in the
batch mode case) or Notification
s
(in the live mode case) that were validated.
getValidationResults()
public int getSeverity()
IStatus
interfaceIStatus.getSeverity()
public boolean matches(int severityMask)
severityMask
- the severity mask to match
IStatus.matches(int)
public List<IConstraintStatus> getValidationResults()
IConstraintStatus
esgetValidationTargets()
|
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 |