Package org.eclipse.emf.cdo.etypes.util
Class BasicAnnotationValidator.ValidationContext
java.lang.Object
org.eclipse.emf.cdo.etypes.util.BasicAnnotationValidator.ValidationContext
- Enclosing class:
- BasicAnnotationValidator
Context data used by
validateAttributeDetailValueLiteral
to pass contextual information that can be used when a data type's value is validated
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionValidationContext
(Annotation annotation, ModelElement modelElement, Map.Entry<String, String> entry, EAttribute eAttribute) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the annotation being validated.The attribute of the data type being validated.getEntry()
Thedetail entry
being validated.The containing model elements of the annotation being validated.
-
Field Details
-
CONTEXT_KEY
The key used in the context map.- See Also:
-
-
Constructor Details
-
ValidationContext
public ValidationContext(Annotation annotation, ModelElement modelElement, Map.Entry<String, String> entry, EAttribute eAttribute) Creates an instance.- Parameters:
annotation
- the annotation being validated.modelElement
- the model element containing that annotation.entry
- the detail entry being validated.eAttribute
- the structural feature of the data type.
-
-
Method Details
-
getAnnotation
Returns the annotation being validated.- Returns:
- the annotation being validated.
-
getModelElement
The containing model elements of the annotation being validated.- Returns:
- the containing model elements of the annotation being validated.
-
getEntry
Thedetail entry
being validated.- Returns:
- the detail entry being validated.
-
getEAttribute
The attribute of the data type being validated.- Returns:
- the attribute of the data type being validated.
-