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
EObject s. |
Set<org.eclipse.emf.ecore.EObject> |
validate(org.eclipse.emf.ecore.EObject eObject)
Validates the given
EObject . |
clear, getCachedValue, getNodes, getRootValue, remove, update, updateNodeObject, updateParentNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
public ValidationService(IExcludedObjectsCallback callback)
callback
- to usepublic Set<org.eclipse.emf.ecore.EObject> validate(Collection<org.eclipse.emf.ecore.EObject> eObjects)
EObject
s.validate
in interface IValidationService
eObjects
- a collection of EObject
s to be validatedpublic Set<org.eclipse.emf.ecore.EObject> validate(org.eclipse.emf.ecore.EObject eObject)
EObject
.validate
in interface IValidationService
eObject
- the EObject
to be validatedpublic org.eclipse.emf.common.util.Diagnostic getDiagnostic(Object eObject)
EObject
.getDiagnostic
in interface IValidationService
eObject
- the EObject
whose severity should be returnedEObject
public org.eclipse.emf.common.util.Diagnostic getRootDiagnostic()
getRootDiagnostic
in interface IValidationService
public 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 © 2019. All rights reserved.