Implements the
Unique validator.
This class implements the
Unique validator. It
traverses the complete metamodel checking for CtElements that are
annotated with the same annotation as the one in the current validation point.
If the @Unique attribute has the same value in at least two annotations, an ERROR
is reported.
To avoid unnecesary (and maybe costly) traversals of the model, a cache is kept with
the annotations and values found during the first traversal of the model.
|