Class Mwe2Validator
java.lang.Object
org.eclipse.xtext.validation.AbstractInjectableValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator
org.eclipse.emf.mwe2.language.validation.AbstractMwe2Validator
org.eclipse.emf.mwe2.language.validation.Mwe2Validator
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator
,org.eclipse.xtext.validation.ValidationMessageAcceptor
- Author:
- Sebastian Zarnekow - Initial contribution and API
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator.MethodWrapper, org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.AbstractDeclarativeValidator.StateAccess
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator
org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
CURRENT_LANGUAGE_NAME, ISSUE_SEVERITIES
Fields inherited from interface org.eclipse.emf.ecore.EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
Fields inherited from interface org.eclipse.xtext.validation.ValidationMessageAcceptor
INSIGNIFICANT_INDEX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkCompatibility
(Assignment assignment) void
checkCompatibility
(DeclaredProperty property) void
checkComponentTypeIsInterfaceOrAbstract
(Component component) void
checkDeprecatedAssignment
(Assignment assignment) void
checkDeprecatedComponent
(Component component) void
checkInstantiable
(Component component) void
checkManadatoryFeaturesAssigned
(Component component) void
checkReferables
(Module referable) collectFeatureNames
(Component component) collectMandatoryFeatures
(Component component) collectReferablesUpTo
(Component component) protected List<org.eclipse.emf.ecore.EPackage>
protected boolean
isAssignableFrom
(org.eclipse.xtext.common.types.JvmTypeReference left, org.eclipse.xtext.common.types.JvmType right) protected boolean
isAssignableFrom
(org.eclipse.xtext.common.types.JvmType left, org.eclipse.xtext.common.types.JvmType right) boolean
isMandatory
(org.eclipse.xtext.common.types.JvmIdentifiableElement feature) Methods inherited from class org.eclipse.xtext.validation.AbstractDeclarativeValidator
acceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, addIssue, addIssue, addIssue, addIssue, addIssue, addIssueToState, checkDone, checkIsFromCurrentlyCheckedResource, createDiagnostic, createDiagnostic, createMethodWrapper, error, error, error, error, error, error, error, error, getCancelIndicator, getChain, getCheckMode, getContext, getCurrentMethod, getCurrentObject, getIssueSeverities, getMessageAcceptor, guard, handleExceptionDuringValidation, info, info, info, info, info, info, info, info, internalValidate, isIgnored, newInstance, setInjector, setMessageAcceptor, toDiagnosticSeverity, warning, warning, warning, warning, warning, warning, warning, warning
Methods inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
getCurrentLanguage, isLanguageSpecific, isResponsible, register, validate, validate, validate
-
Field Details
-
INCOMPATIBLE_ASSIGNMENT
- See Also:
-
UNUSED_LOCAL
- See Also:
-
DUPLICATE_LOCAL
- See Also:
-
DEPRECATED_ELEMENT
- See Also:
-
MISSING_DEFAULT_CONSTRUCTOR
- See Also:
-
ABSTRACT_OR_INTERFACE
- See Also:
-
MISSING_MANDATORY_FEATURE
- See Also:
-
-
Constructor Details
-
Mwe2Validator
public Mwe2Validator()
-
-
Method Details
-
checkCompatibility
-
isAssignableFrom
protected boolean isAssignableFrom(org.eclipse.xtext.common.types.JvmTypeReference left, org.eclipse.xtext.common.types.JvmType right) -
isAssignableFrom
protected boolean isAssignableFrom(org.eclipse.xtext.common.types.JvmType left, org.eclipse.xtext.common.types.JvmType right) -
checkCompatibility
-
checkReferables
-
collectFeatureNames
-
checkInstantiable
-
checkComponentTypeIsInterfaceOrAbstract
-
checkManadatoryFeaturesAssigned
-
collectReferablesUpTo
-
collectMandatoryFeatures
-
isMandatory
public boolean isMandatory(org.eclipse.xtext.common.types.JvmIdentifiableElement feature) -
getEPackages
- Overrides:
getEPackages
in classAbstractMwe2Validator
-
checkDeprecatedComponent
-
checkDeprecatedAssignment
-