|
||||||||||||
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
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,
java.util.Map clientData,
java.util.Collection targets,
org.eclipse.core.runtime.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,
java.util.Map clientData,
java.util.Collection targets,
org.eclipse.core.runtime.IStatus status,
java.util.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 | |
---|---|
java.util.Collection |
getClientContextIds()
Retrieves the client context ids that were involved in the validation that lead to this event. |
java.util.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. |
java.util.List |
getValidationResults()
Obtains the results of the validation operation. |
java.util.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, java.util.Map clientData, java.util.Collection targets, org.eclipse.core.runtime.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, java.util.Map clientData, java.util.Collection targets, org.eclipse.core.runtime.IStatus status, java.util.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 java.util.Collection getClientContextIds()
public EvaluationMode getEvaluationMode()
null
or
even EvaluationMode.NULL
public java.util.Map getClientData()
null
String
s
public java.util.Collection getValidationTargets()
EObject
s (in the
batch mode case) or Notification
s
(in the live mode case) that were validated.
ValidationEvent.getValidationResults()
public int getSeverity()
IStatus
interfaceIStatus.getSeverity()
public boolean matches(int severityMask)
severityMask
- the severity mask to match
IStatus.matches(int)
public java.util.List getValidationResults()
IConstraintStatus
esValidationEvent.getValidationTargets()
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |