public final class ValidationService extends AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic> implements IValidationService
| Modifier and Type | Class and Description |
|---|---|
class |
ValidationService.CachedSeverityTreeNode
Tree node that caches the severity of its children.
|
| Constructor and Description |
|---|
ValidationService(IExcludedObjectsCallback callback)
Constructor for the ECP ValidationService.
|
| Modifier and Type | Method and Description |
|---|---|
CachedTreeNode<org.eclipse.emf.common.util.Diagnostic> |
createdCachedTreeNode(org.eclipse.emf.common.util.Diagnostic diagnostic)
Creates a cached tree node.
|
org.eclipse.emf.common.util.Diagnostic |
getDefaultValue()
Returns the default value for a cached node.
The root value will be initialized with this value, too |
org.eclipse.emf.common.util.Diagnostic |
getDiagnostic(Object eObject)
Returns the severity for the given
EObject. |
org.eclipse.emf.common.util.Diagnostic |
getRootDiagnostic()
Returns the highest severity.
|
Set<org.eclipse.emf.ecore.EObject> |
validate(Collection<org.eclipse.emf.ecore.EObject> eObjects)
Validates the given
EObjects. |
Set<org.eclipse.emf.ecore.EObject> |
validate(org.eclipse.emf.ecore.EObject eObject)
Validates the given
EObject. |
clear, getCachedValue, getNodes, getRootValue, remove, update, updateNodeObject, updateParentNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremovepublic ValidationService(IExcludedObjectsCallback callback)
callback - to usepublic Set<org.eclipse.emf.ecore.EObject> validate(Collection<org.eclipse.emf.ecore.EObject> eObjects)
EObjects.validate in interface IValidationServiceeObjects - a collection of EObjects to be validatedpublic Set<org.eclipse.emf.ecore.EObject> validate(org.eclipse.emf.ecore.EObject eObject)
EObject.validate in interface IValidationServiceeObject - the EObject to be validatedpublic org.eclipse.emf.common.util.Diagnostic getDiagnostic(Object eObject)
EObject.getDiagnostic in interface IValidationServiceeObject - the EObject whose severity should be returnedEObjectpublic org.eclipse.emf.common.util.Diagnostic getRootDiagnostic()
getRootDiagnostic in interface IValidationServicepublic org.eclipse.emf.common.util.Diagnostic getDefaultValue()
getDefaultValue in class AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>public CachedTreeNode<org.eclipse.emf.common.util.Diagnostic> createdCachedTreeNode(org.eclipse.emf.common.util.Diagnostic diagnostic)
createdCachedTreeNode in class AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>diagnostic - the value stored by the cached tree nodeCopyright © 2018. All rights reserved.