public class NamesAreUniqueValidator extends AbstractDeclarativeValidator
An EValidator implementation, that can be used via ComposedChecks generically
to validate for duplicated exported objects.
It validates only the objects, that will be publicly available via an IResourceDescription. Local
variables and similar objects have to be validated on their own. The INamesAreUniqueValidationHelper provides
a convenient way to apply this kind of constraints.
AbstractDeclarativeValidator.MethodWrapper, AbstractDeclarativeValidator.State, AbstractDeclarativeValidator.StateAccessorg.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.ValidationDelegateCURRENT_LANGUAGE_NAME, ISSUE_SEVERITIESINSIGNIFICANT_INDEX| Constructor and Description |
|---|
NamesAreUniqueValidator() |
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, warninggetCurrentLanguage, getEPackages, isLanguageSpecific, isResponsible, validate, validate, validatepublic void register(EValidatorRegistrar registrar)
register in class AbstractInjectableValidatorpublic void checkUniqueNamesInResourceOf(org.eclipse.emf.ecore.EObject eObject)
public void doCheckUniqueNames(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.xtext.util.CancelIndicator cancelIndicator)
protected INamesAreUniqueValidationHelper.Context getValidationContext(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
public void setHelper(INamesAreUniqueValidationHelper helper)
public INamesAreUniqueValidationHelper getHelper()
@Deprecated public void setResourceServiceProviderRegistry(IResourceServiceProvider.Registry resourceDescriptionManagerRegistry)
@Deprecated public IResourceServiceProvider.Registry getResourceServiceProviderRegistry()
public INamesAreUniqueValidationHelper.ContextProvider getContextProvider()
public void setContextProvider(INamesAreUniqueValidationHelper.ContextProvider contextProvider)