|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.common.cachetree.AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>
org.eclipse.emf.ecp.internal.validation.ValidationService
public final class ValidationService
Implementation of a validation service.
Nested Class Summary | |
---|---|
class |
ValidationService.CachedSeverityTreeNode
Tree node that caches the severity of its children. |
Constructor Summary | |
---|---|
ValidationService(IExcludedObjectsCallback callback)
Constructor for the ECP ValidationService. |
Method Summary | |
---|---|
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 . |
Methods inherited from class org.eclipse.emf.ecp.common.cachetree.AbstractCachedTree |
---|
clear, getCachedValue, getRootValue, remove, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecp.validation.api.IValidationService |
---|
remove |
Constructor Detail |
---|
public ValidationService(IExcludedObjectsCallback callback)
callback
- to useMethod Detail |
---|
public 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 validated
public Set<org.eclipse.emf.ecore.EObject> validate(org.eclipse.emf.ecore.EObject eObject)
EObject
.
validate
in interface IValidationService
eObject
- the EObject
to be validated
public org.eclipse.emf.common.util.Diagnostic getDiagnostic(Object eObject)
EObject
.
getDiagnostic
in interface IValidationService
eObject
- the EObject
whose severity should be returned
EObject
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)
diagnostic
- the value stored by the cached tree node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |