Package org.eclipse.emf.cdo.etypes
Schnittstelle AnnotationValidator
- Alle bekannten Implementierungsklassen:
BasicAnnotationValidator
public interface AnnotationValidator
An annotation validity checker for a specific
annotation source.
Implementations of AnnotationValidator should extend BasicAnnotationValidator
or one of its derived classes because methods may be added to this API.
- Seit:
- 4.22
- Siehe auch:
- No Implement
- Do not implement this interface directly; instead extend
BasicAnnotationValidatoror one of its subclasses.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interfaceA registry fromannotation sourcetoAnnotationValidator. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns theannotation sourceof the annotations validated by this annotation validator.booleanisValidLocation(Annotation annotation) Returns whether this annotation with this annotation validator'sannotation sourceis valid at itscurrent location.booleanvalidate(Annotation annotation, DiagnosticChain diagnostics, Map<Object, Object> context) Returns whether this annotation is valid.
-
Methodendetails
-
getAnnotationSource
String getAnnotationSource()Returns theannotation sourceof the annotations validated by this annotation validator.- Gibt zurück:
- the annotation source.
-
isValidLocation
Returns whether this annotation with this annotation validator'sannotation sourceis valid at itscurrent location.- Parameter:
annotation- the annotation in question.- Gibt zurück:
- whether this annotation with this annotation validator's annotation source is valid at its current location.
-
validate
Returns whether this annotation is valid.- Parameter:
annotation- the annotation in question.diagnostics- a place to accumulate diagnostics; if it'snull, no diagnostics should be produced.context- a place to cache information, if it'snull, no cache is supported.- Gibt zurück:
- whether this annotation is valid.
- Siehe auch:
-