public static class DateConversionDelegateFactory.AnnotationValidator extends BasicEAnnotationValidator
http:///org/eclipse/emf/ecore/util/DateConversionDelegate annotations.BasicEAnnotationValidator.Assistant, BasicEAnnotationValidator.ValidationContextEAnnotationValidator.Descriptor, EAnnotationValidator.Registry| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DIAGNOSTIC_SOURCE
The source used for creating diagnostics.
|
static DateConversionDelegateFactory.AnnotationValidator |
INSTANCE
The singleton instance of the annotation validator.
|
static int |
INVALID
An uncategorized problem.
|
static int |
INVALID_CALENDAR_TYPE
The specified calendar type is not an available calendar type.
|
static int |
INVALID_COUNTRY
The country for the language isn't an available locale.
|
static int |
INVALID_DATE_STYLE
The date-style of a DateFormat for DateTime format is invalid.
|
static int |
INVALID_INSTANCE_TYPE
The isntance type of the data type isn't supported.
|
static int |
INVALID_LANGUAGE
The language isn't an available locale.
|
static int |
INVALID_MISSING_DATE_FORMAT
The DateFormat is incompletely specified.
|
static int |
INVALID_MISSING_DATE_TIME_FORMAT
The DateTimeFormat is incompletely specified.
|
static int |
INVALID_MISSING_LOCALE
The require locale specification is absent.
|
static int |
INVALID_MISSING_SIMPLE_DATE_FORMAT
The simple date format pattern is absent.
|
static int |
INVALID_MISSING_TIME_FORMAT
The TimeFormat is incompletely specified.
|
static int |
INVALID_SIMPLE_DATE_FORMAT
The simple date format isn't valid.
|
static int |
INVALID_STYLE
The format style is not recognized.
|
static int |
INVALID_TIME_STYLE
The time-style of a TimeFormat for DateTimeFormat is invalid.
|
static int |
INVALID_VARIANT
The variant for the language and country isn't an available locale.
|
annotationName, annotationSource, assistant, diagnosticSource, IGNORED_ANNOTATIONS, IGNORED_CONTENTS, IGNORED_ENTRY, IGNORED_REFERENCES, INVALID_ANNOTATION, INVALID_CONTENT, INVALID_DETAIL_VALUE, INVALID_DUPLICATE, INVALID_LOCATION, INVALID_REFERENCE, INVALID_REFERENCE_LITERAL, INVALID_VALUE_LITERAL, MISSING_ENTRY, MISSING_REQUIRED_ENTRY_VALUE, TOO_FEW_VALUES, TOO_MANY_VALUES| Constructor and Description |
|---|
AnnotationValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<EClass> |
getPropertyClasses(EModelElement eModelElement)
Returns the model classes used to represent annotations for the given model element.
|
protected ResourceLocator |
getResourceLocator()
Returns the resource locator for fetching implementation-specific messages.
|
protected boolean |
isValidLocation(EAnnotation eAnnotation,
EModelElement eModelElement)
Returns whether this annotation
contained by this model element is valid at this location. |
void |
throwIllegalArgumentException(int code,
java.lang.Object... substitutions) |
convertPropertyAttributeValueToLiteralItem, convertPropertyReferenceValueToLiteralItem, convertPropertyValueToLiteral, convertPropertyValueToLiteralItem, createAssistant, createDiagnostic, createInstance, createValueDiagnostic, getAllValidAnnotations, getAnnotationSource, getAssistant, getEcoreResourceLocator, getProperties, getRootEValidator, getString, getValidAnnotations, getValidContents, getValidLocationDescription, getValidReferences, initialize, isAnnotationsSupported, isApplicable, isContentsSupported, isDuplicateValid, isIncludedProperty, isReferencesSupported, isValidLocation, join, loadEPackage, reportDuplicate, reportIgnoredAnnotations, reportIgnoredContents, reportIgnoredEntry, reportIgnoredReferences, reportInvalidAnnotation, reportInvalidContent, reportInvalidLocation, reportInvalidReference, reportInvalidReferenceLiteral, reportInvalidValueLiteral, reportMissingEntry, reportMissingRequiredEntryValue, reportTooFewValues, reportTooManyValues, split, validate, validateAnnotations, validateAttributeDetailLiteralValue, validateAttributeDetailValueLiteral, validateContents, validateDetail, validateDetails, validateFeatureDetail, validateFeatureDetailValue, validateReferenceDetailLiteralValue, validateReferenceDetailValueLiteral, validateReferencespublic static final DateConversionDelegateFactory.AnnotationValidator INSTANCE
public static final java.lang.String DIAGNOSTIC_SOURCE
public static final int INVALID
public static final int INVALID_CALENDAR_TYPE
public static final int INVALID_MISSING_SIMPLE_DATE_FORMAT
public static final int INVALID_MISSING_DATE_FORMAT
public static final int INVALID_DATE_STYLE
public static final int INVALID_MISSING_TIME_FORMAT
public static final int INVALID_TIME_STYLE
public static final int INVALID_MISSING_DATE_TIME_FORMAT
public static final int INVALID_STYLE
public static final int INVALID_MISSING_LOCALE
public static final int INVALID_LANGUAGE
public static final int INVALID_COUNTRY
public static final int INVALID_VARIANT
public static final int INVALID_SIMPLE_DATE_FORMAT
public static final int INVALID_INSTANCE_TYPE
public void throwIllegalArgumentException(int code,
java.lang.Object... substitutions)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionprotected ResourceLocator getResourceLocator()
BasicEAnnotationValidatorgetResourceLocator in class BasicEAnnotationValidatorprotected boolean isValidLocation(EAnnotation eAnnotation, EModelElement eModelElement)
BasicEAnnotationValidatorcontained by this model element is valid at this location.
This implementation returns false if the element is not a named element.
It's typically the case that annotations on annotations aren't meaningful and valid.
isValidLocation in class BasicEAnnotationValidatoreAnnotation - the annotation in question.eModelElement - the annotation's containing model element.BasicEAnnotationValidator.isValidLocation(EAnnotation),
BasicEAnnotationValidator.validate(EAnnotation, DiagnosticChain, Map)protected java.util.List<EClass> getPropertyClasses(EModelElement eModelElement)
BasicEAnnotationValidator
Typically an annotation validator implementation will return a single class.
An induced user interface will generally require the ability to create instances of the classes returned by this method.
The annotation validator implementation itself does not require that ability.
getPropertyClasses in class BasicEAnnotationValidatoreModelElement - the model element in question.Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature