| Package | Description |
|---|---|
| org.eclipse.emf.ecore |
Provides an API for the Ecore dialect of
UML.
|
| org.eclipse.emf.ecore.impl |
Provides an implementation of Ecore.
|
| org.eclipse.emf.ecore.util |
Provides utilities.
|
| Modifier and Type | Method and Description |
|---|---|
EAnnotation |
EcoreFactory.createEAnnotation()
Returns a new object of class 'EAnnotation'.
|
EAnnotation |
EModelElement.getEAnnotation(java.lang.String source)
Return the annotation with a matching
source attribute. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
EAnnotationValidator.isValidLocation(EAnnotation eAnnotation)
Returns whether this annotation with this annotation validator's
annotation source is valid at its current location. |
boolean |
EAnnotationValidator.validate(EAnnotation eAnnotation,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether this annotation is valid.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EAnnotationImpl
An implementation of the model object 'EAnnotation'.
|
| Modifier and Type | Method and Description |
|---|---|
EAnnotation |
EcoreFactoryImpl.createEAnnotation() |
EAnnotation |
EModelElementImpl.getEAnnotation(java.lang.String source) |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<EModelElement,EAnnotation> |
BasicExtendedMetaData.annotationMap |
| Modifier and Type | Method and Description |
|---|---|
protected EAnnotation |
BasicExtendedMetaData.getAnnotation(EModelElement eModelElement,
boolean demandCreate) |
EAnnotation |
BasicEAnnotationValidator.ValidationContext.getEAnnotation()
Returns the annotation being validated.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.getAllValidAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.Assistant.getValidAnnotations(EAnnotation eAnnotation,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
protected java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.getValidAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
| Modifier and Type | Method and Description |
|---|---|
T |
EcoreSwitch.caseEAnnotation(EAnnotation object)
Returns the result of interpreting the object as an instance of 'EAnnotation'.
|
protected EObject |
BasicEAnnotationValidator.createInstance(EClass eClass,
EAnnotation eAnnotation)
Creates an instance of the modeled representation for the given annotation.
|
EObject |
BasicEAnnotationValidator.Assistant.createInstance(EClass eClass,
EAnnotation eAnnotation)
Creates an initialized instance of the modeled representation for the given annotation.
|
protected BasicDiagnostic |
BasicEAnnotationValidator.createValueDiagnostic(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EStructuralFeature feature)
Creates the placeholder diagnostic used by
validateFeatureDetail. |
protected java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.getAllValidAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
java.util.Map<java.lang.String,EStructuralFeature> |
BasicEAnnotationValidator.Assistant.getApplicableProperties(EObject eObject,
EAnnotation eAnnotation)
Returns the
subset of properties that are applicable for the current state of the modeled annotation instance. |
java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.Assistant.getValidAnnotations(EAnnotation eAnnotation,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
protected java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.getValidAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
java.util.Collection<? extends EObject> |
BasicEAnnotationValidator.Assistant.getValidContents(EAnnotation eAnnotation,
java.util.Collection<? extends EObject> contents)
Returns the filtered collection of contents that are valid for this annotation.
|
protected java.util.Collection<? extends EObject> |
BasicEAnnotationValidator.getValidContents(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EObject> contents)
Returns the filtered collection of contents that are valid for this annotation.
|
java.util.Collection<?> |
BasicEAnnotationValidator.Assistant.getValidReferences(EAnnotation eAnnotation,
java.util.Collection<?> references)
Returns the filtered collection of references that are valid for this annotation.
|
protected java.util.Collection<?> |
BasicEAnnotationValidator.getValidReferences(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<?> references)
Returns the filtered collection of references that are valid for this annotation.
|
protected EObject |
ExtendedMetaDataAnnotationValidator.initialize(EObject eObject,
EAnnotation eAnnotation) |
protected EObject |
BasicEAnnotationValidator.initialize(EObject eObject,
EAnnotation eAnnotation)
Returns an initialized instance of the given object for the given annotation.
|
boolean |
BasicEAnnotationValidator.Assistant.isAnnotationsSupported(EAnnotation eAnnotation)
Returns whether
nested annotations are meaningful for this annotation. |
protected boolean |
BasicEAnnotationValidator.isAnnotationsSupported(EAnnotation eAnnotation,
EModelElement eModelElement)
Returns whether
nested annotations are meaningful for this annotation. |
boolean |
BasicEAnnotationValidator.Assistant.isContentsSupported(EAnnotation eAnnotation)
Returns whether
contents are meaningful for this annotation. |
protected boolean |
BasicEAnnotationValidator.isContentsSupported(EAnnotation eAnnotation,
EModelElement eModelElement)
Returns whether
contents are meaningful for this annotation. |
protected boolean |
BasicEAnnotationValidator.isDuplicateValid(EModelElement eModelElement,
EAnnotation primaryEAnnotation,
EAnnotation secondaryEAnnotation)
Returns whether the given two annotations, both with the annotation validator's annotation source, both
contained by the given model element, are valid. |
boolean |
BasicEAnnotationValidator.Assistant.isReferencesSupported(EAnnotation eAnnotation)
Returns whether
references are meaningful for this annotation. |
protected boolean |
BasicEAnnotationValidator.isReferencesSupported(EAnnotation eAnnotation,
EModelElement eModelElement)
Returns whether
references are meaningful for this annotation. |
boolean |
BasicEAnnotationValidator.isValidLocation(EAnnotation eAnnotation)
Returns whether this annotation with this annotation validator's
annotation source is valid at its current location. |
boolean |
BasicEAnnotationValidator.Assistant.isValidLocation(EAnnotation eAnnotation)
Returns whether this annotation with this annotation validator's
annotation source is valid at its current location. |
protected boolean |
ExtendedMetaDataAnnotationValidator.isValidLocation(EAnnotation eAnnotation,
EModelElement eModelElement) |
protected boolean |
EcoreAnnotationValidator.isValidLocation(EAnnotation eAnnotation,
EModelElement eModelElement) |
protected boolean |
DateConversionDelegateFactory.AnnotationValidator.isValidLocation(EAnnotation eAnnotation,
EModelElement eModelElement) |
protected boolean |
BasicEAnnotationValidator.isValidLocation(EAnnotation eAnnotation,
EModelElement eModelElement)
Returns whether this annotation
contained by this model element is valid at this location. |
protected void |
BasicEAnnotationValidator.reportDuplicate(EAnnotation primaryEAnnotation,
EAnnotation secondaryEAnnotation,
EModelElement eModelElement,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportIgnoredAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EAnnotation> ignoredAnnotations,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportIgnoredContents(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EObject> ignoredContents,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportIgnoredEntry(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportIgnoredReferences(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EObject> ignoredReferences,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportInvalidAnnotation(EAnnotation eAnnotation,
EModelElement eModelElement,
EAnnotation nestedEAnnotation,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportInvalidContent(EAnnotation eAnnotation,
EModelElement eModelElement,
EObject content,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportInvalidLocation(EAnnotation eAnnotation,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportInvalidReference(EAnnotation eAnnotation,
EModelElement eModelElement,
EObject reference,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportInvalidReferenceLiteral(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EReference reference,
java.lang.String literalValue,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportInvalidValueLiteral(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EAttribute attribute,
java.lang.String literalValue,
EDataType dataType,
DiagnosticChain diagnostics,
java.lang.RuntimeException exception,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportMissingEntry(EAnnotation eAnnotation,
EModelElement eModelElement,
java.lang.String key,
EStructuralFeature property,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportMissingRequiredEntryValue(EAnnotation eAnnotation,
EModelElement eModelElement,
EStructuralFeature feature,
java.util.List<java.lang.Object> values,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportTooFewValues(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EStructuralFeature feature,
java.util.List<java.lang.Object> values,
int size,
int lowerBound,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected void |
BasicEAnnotationValidator.reportTooManyValues(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EStructuralFeature feature,
java.util.List<java.lang.Object> values,
int size,
int upperBound,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected java.util.List<java.lang.String> |
BasicEAnnotationValidator.split(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
java.lang.String literalValue,
EStructuralFeature feature,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Splits the literal value into a list of literal values as appropriate for this feature.
|
boolean |
BasicEAnnotationValidator.validate(EAnnotation eAnnotation,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether this annotation is valid.
|
protected boolean |
BasicEAnnotationValidator.validateAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether this annotation's
nested annotations are valid. |
protected boolean |
BasicEAnnotationValidator.validateAttributeDetailLiteralValue(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EAttribute attribute,
java.util.List<java.lang.Object> dataValues,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether the literal value of this detail entry for the corresponding attribute is valid.
|
protected boolean |
EcoreAnnotationValidator.validateAttributeDetailValueLiteral(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EAttribute attribute,
java.lang.String literalValue,
java.util.List<java.lang.Object> dataValues,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
BasicEAnnotationValidator.validateAttributeDetailValueLiteral(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EAttribute attribute,
java.lang.String literalValue,
java.util.List<java.lang.Object> dataValues,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether the given literal value is valid with respect to this detail entry's corresponding attribute's
data type. |
protected boolean |
BasicEAnnotationValidator.validateContents(EAnnotation eAnnotation,
EModelElement eModelElement,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether this annotation's
contents are valid. |
protected boolean |
BasicEAnnotationValidator.validateDetail(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether this detail entry is valid.
|
protected boolean |
ExtendedMetaDataAnnotationValidator.validateDetails(EAnnotation eAnnotation,
EModelElement eModelElement,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
BasicEAnnotationValidator.validateDetails(EAnnotation eAnnotation,
EModelElement eModelElement,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether this annotation's
details are valid. |
boolean |
EcoreValidator.validateEAnnotation_WellFormed(EAnnotation eAnnotation,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Validates the WellFormed constraint of 'EAnnotation'.
|
boolean |
EcoreValidator.validateEAnnotation_WellFormedSourceURI(EAnnotation eAnnotation,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Validates the WellFormedSourceURI constraint of 'EAnnotation'.
|
boolean |
EcoreValidator.validateEAnnotation(EAnnotation eAnnotation,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
ExtendedMetaDataAnnotationValidator.validateFeatureDetail(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EStructuralFeature feature,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
BasicEAnnotationValidator.validateFeatureDetail(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EStructuralFeature feature,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether the value of this detail entry for the corresponding feature is valid.
|
protected boolean |
ExtendedMetaDataAnnotationValidator.validateFeatureDetailValue(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EStructuralFeature feature,
java.util.List<java.lang.Object> values,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
BasicEAnnotationValidator.validateFeatureDetailValue(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EStructuralFeature feature,
java.util.List<java.lang.Object> values,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether the modeled values for this detail entry's corresponding feature are valid.
|
protected boolean |
BasicEAnnotationValidator.validateReferenceDetailLiteralValue(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EReference reference,
java.util.List<java.lang.Object> referenceValues,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether the literal value of this detail entry for the corresponding reference is valid.
|
protected boolean |
ExtendedMetaDataAnnotationValidator.validateReferenceDetailValueLiteral(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EReference reference,
java.lang.String literalValue,
java.util.List<java.lang.Object> referenceValues,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
protected boolean |
BasicEAnnotationValidator.validateReferenceDetailValueLiteral(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EReference reference,
java.lang.String literalValue,
java.util.List<java.lang.Object> referenceValues,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether the given literal value is valid with respect to this detail entry's corresponding reference's
class. |
protected boolean |
BasicEAnnotationValidator.validateReferences(EAnnotation eAnnotation,
EModelElement eModelElement,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns whether this annotation's
references are valid. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.getAllValidAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.Assistant.getValidAnnotations(EAnnotation eAnnotation,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
protected java.util.Collection<? extends EAnnotation> |
BasicEAnnotationValidator.getValidAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EAnnotation> annotations)
Returns the filtered collection of nested annotations that are valid for this annotation.
|
protected void |
BasicEAnnotationValidator.reportIgnoredAnnotations(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Collection<? extends EAnnotation> ignoredAnnotations,
DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
| Constructor and Description |
|---|
ValidationContext(EAnnotation eAnnotation,
EModelElement eModelElement,
java.util.Map.Entry<java.lang.String,java.lang.String> entry,
EAttribute eAttribute)
Creates an instance.
|
| Constructor and Description |
|---|
BasicExtendedMetaData(java.lang.String annotationURI,
EPackage.Registry registry,
java.util.Map<EModelElement,EAnnotation> annotationMap) |
Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature