org.eclipse.gmf.runtime.lite.validation
Class ValidationState

java.lang.Object
  extended by org.eclipse.gmf.runtime.lite.validation.ValidationState

public class ValidationState
extends Object

Represents a state of validation of a single diagram.


Constructor Summary
ValidationState(ValidationStateManager stateManager, org.eclipse.emf.common.util.URI diagramUri)
           
 
Method Summary
 Collection<ViolationDescriptor> getAllViolations()
           
 org.eclipse.emf.common.util.URI getDiagramUri()
           
 Collection<ViolationDescriptor> getViolations(org.eclipse.emf.common.util.URI uri)
           
 IValidationStateUpdater startUpdate()
          Starts an update operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationState

public ValidationState(ValidationStateManager stateManager,
                       org.eclipse.emf.common.util.URI diagramUri)
Method Detail

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.