public interface EAnnotationValidator
annotation source.
Implementations of EAnnotationValidator should extend BasicEAnnotationValidator
or one of its derived classes
because methods may be added to this API.
BasicEAnnotationValidator| Modifier and Type | Interface and Description |
|---|---|
static interface |
EAnnotationValidator.Descriptor
An
EAnnotationValidator wrapper used by the EAnnotationValidator.Registry. |
static interface |
EAnnotationValidator.Registry
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAnnotationSource()
Returns the
annotation source of the annotations validated by this annotation validator. |
boolean |
isValidLocation(EAnnotation eAnnotation)
Returns whether this annotation with this annotation validator's
annotation source is valid at its current location. |
boolean |
validate(EAnnotation eAnnotation,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether this annotation is valid.
|
java.lang.String getAnnotationSource()
annotation source of the annotations validated by this annotation validator.boolean isValidLocation(EAnnotation eAnnotation)
annotation source is valid at its current location.eAnnotation - the annotation in question.boolean validate(EAnnotation eAnnotation, DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
eAnnotation - the annotation in question.diagnostics - a place to accumulate diagnostics; if it's null, no diagnostics should be produced.context - a place to cache information, if it's null, no cache is supported.EObjectValidator.validate(EObject, DiagnosticChain, Map)Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature