org.eclipse.gmf.runtime.lite.validation
Class ValidationState
java.lang.Object
org.eclipse.gmf.runtime.lite.validation.ValidationState
public class ValidationState
- extends Object
Represents a state of validation of a single diagram.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationState
public ValidationState(ValidationStateManager stateManager,
org.eclipse.emf.common.util.URI diagramUri)
getDiagramUri
public org.eclipse.emf.common.util.URI getDiagramUri()
- Returns:
- the diagramUri
getViolations
public Collection<ViolationDescriptor> getViolations(org.eclipse.emf.common.util.URI uri)
getAllViolations
public Collection<ViolationDescriptor> getAllViolations()
startUpdate
public IValidationStateUpdater startUpdate()
- Starts an update operation. The operation will typically create the violations based on
the current state of the validation and report completion
using
IValidationStateUpdater.commitChanges()
method.
After the operation is completed successfully, the listeners
registered to the ValidationStateManager
will be notified about the change.
It is expected that a single command may be active at any given time, and that a command will
not be used after is has been reported as completed.
Copyright © 2012. All Rights Reserved.