Class AbstractModelDeclarativeValidator
- java.lang.Object
-
- org.eclipse.xtext.validation.AbstractInjectableValidator
-
- org.eclipse.xtext.validation.AbstractDeclarativeValidator
-
- com._1c.g5.modeling.xtext.validation.AbstractModelDeclarativeValidator
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator
,org.eclipse.xtext.validation.ValidationMessageAcceptor
- Direct Known Subclasses:
CmiModelDeclarativeValidator
,FormValidator
,GraphicalSchemeValidator
,MdValidator
,XdtoValidator
public abstract class AbstractModelDeclarativeValidator extends org.eclipse.xtext.validation.AbstractDeclarativeValidator
Abstract model declarative validator. Example:@Check void checkName(ModelElement model) { if (!toFirstUpper(model.getName()).equals(model.getName())) { warning("Name should start with a capital.", ModelPackage.Literals.ModelElement__NAME); } }
-
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractModelDeclarativeValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
getCurrentLanguage(Map<Object,Object> context, org.eclipse.emf.ecore.EObject eObject)
protected abstract List<org.eclipse.emf.ecore.EPackage>
getEPackages()
Returns list ofEPackage
s for wich this validotor will be registered.-
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
-
-
-
-
Method Detail
-
getEPackages
protected abstract List<org.eclipse.emf.ecore.EPackage> getEPackages()
Returns list ofEPackage
s for wich this validotor will be registered.- Overrides:
getEPackages
in classorg.eclipse.xtext.validation.AbstractInjectableValidator
-
-