org.eclipse.xtext.validation
Class AbstractInjectableValidator
java.lang.Object
org.eclipse.xtext.validation.AbstractInjectableValidator
- All Implemented Interfaces:
- org.eclipse.emf.ecore.EValidator
- Direct Known Subclasses:
- AbstractDeclarativeValidator, ConcreteSyntaxEValidator
public abstract class AbstractInjectableValidator
- extends java.lang.Object
- implements org.eclipse.emf.ecore.EValidator
- Author:
- Sebastian Zarnekow - Initial contribution and API, Jan Koehnlein
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 |
Fields inherited from interface org.eclipse.emf.ecore.EValidator |
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE |
Method Summary |
protected java.lang.String |
getCurrentLanguage(java.util.Map<java.lang.Object,java.lang.Object> context,
org.eclipse.emf.ecore.EObject eObject)
|
protected java.util.List<org.eclipse.emf.ecore.EPackage> |
getEPackages()
|
protected abstract boolean |
internalValidate(org.eclipse.emf.ecore.EClass eClass,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
boolean |
isLanguageSpecific()
|
protected boolean |
isResponsible(java.util.Map<java.lang.Object,java.lang.Object> context,
org.eclipse.emf.ecore.EObject eObject)
|
void |
register(EValidatorRegistrar registrar)
|
boolean |
validate(org.eclipse.emf.ecore.EClass eClass,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
boolean |
validate(org.eclipse.emf.ecore.EDataType eDataType,
java.lang.Object value,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
boolean |
validate(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CURRENT_LANGUAGE_NAME
public static final java.lang.String CURRENT_LANGUAGE_NAME
AbstractInjectableValidator
public AbstractInjectableValidator()
register
@Inject
public void register(EValidatorRegistrar registrar)
getEPackages
protected java.util.List<org.eclipse.emf.ecore.EPackage> getEPackages()
validate
public boolean validate(org.eclipse.emf.ecore.EDataType eDataType,
java.lang.Object value,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
- Specified by:
validate
in interface org.eclipse.emf.ecore.EValidator
validate
public final boolean validate(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
- Specified by:
validate
in interface org.eclipse.emf.ecore.EValidator
validate
public final boolean validate(org.eclipse.emf.ecore.EClass eClass,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
- Specified by:
validate
in interface org.eclipse.emf.ecore.EValidator
internalValidate
protected abstract boolean internalValidate(org.eclipse.emf.ecore.EClass eClass,
org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
isLanguageSpecific
public boolean isLanguageSpecific()
isResponsible
protected boolean isResponsible(java.util.Map<java.lang.Object,java.lang.Object> context,
org.eclipse.emf.ecore.EObject eObject)
getCurrentLanguage
protected java.lang.String getCurrentLanguage(java.util.Map<java.lang.Object,java.lang.Object> context,
org.eclipse.emf.ecore.EObject eObject)