commit | b4613b6cf4d7bf23b65705230ba5188fadfc154c | [log] [tgz] |
---|---|---|
author | Ed Merks <ed.merks@gmail.com> | Mon Sep 25 15:41:05 2017 +0200 |
committer | Ed Merks <ed.merks@gmail.com> | Mon Sep 25 15:41:05 2017 +0200 |
tree | cd2b8dc72472d980f776cfd5ea1f7e43d6fe26b4 | |
parent | cc174475ffb33914915e433998b01e6568263b3c [diff] |
[522714] Add EAnnotationValidator.getAnnotationSource()
diff --git a/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/EAnnotationValidator.java b/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/EAnnotationValidator.java index dc90342..c620694 100644 --- a/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/EAnnotationValidator.java +++ b/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/EAnnotationValidator.java
@@ -87,6 +87,12 @@ } /** + * Returns the {@link EAnnotation#getSource() annotation source} of the annotations validated by this annotation validator. + * @return the annotation source. + */ + String getAnnotationSource(); + + /** * Returns whether this annotation with this annotation validator's {@link EAnnotation#getSource() annotation source} is valid at its {@link EAnnotation#getEModelElement() current location}. * @param eAnnotation the annotation in question. * @return whether this annotation with this annotation validator's annotation source is valid at its current location.
diff --git a/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/util/BasicEAnnotationValidator.java b/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/util/BasicEAnnotationValidator.java index 7cd7423..ab52776 100644 --- a/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/util/BasicEAnnotationValidator.java +++ b/plugins/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/util/BasicEAnnotationValidator.java
@@ -175,6 +175,14 @@ } /** + * {@inheritDoc} + */ + public String getAnnotationSource() + { + return annotationSource; + } + + /** * Returns the resource locator for fetching implementation-specific messages. * @return the resource locator for fetching model-specific messages. */