|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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 mode,
Map clientData,
Collection 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 mode,
Map clientData,
Collection targets,
IStatus status,
Collection 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 |
getClientContextIds()
Retrieves the client context ids that were involved in the validation that lead to this event. |
Map |
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 |
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 mode, Map clientData, Collection targets, IStatus status)
mode
- 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 mode, Map clientData, Collection targets, IStatus status, Collection clientContextIds)
mode
- 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 getClientContextIds()
public EvaluationMode getEvaluationMode()
null
or
even EvaluationMode.NULL
public Map 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 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 |