public class UniqueClassNameValidator
extends org.eclipse.xtext.validation.AbstractDeclarativeValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator.MethodWrapper, org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.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_SEVERITIES| Constructor and Description |
|---|
UniqueClassNameValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addIssue(org.eclipse.xtext.common.types.JvmDeclaredType type)
Marks a type as already defined.
|
protected void |
addIssue(org.eclipse.xtext.common.types.JvmDeclaredType type,
java.lang.String fileName)
Marks a type as already defined.
|
protected boolean |
checkUniqueInIndex(org.eclipse.xtext.common.types.JvmDeclaredType type,
java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions) |
void |
checkUniqueName(org.eclipse.emf.ecore.EObject root) |
protected void |
doCheckUniqueName(org.eclipse.xtext.common.types.JvmDeclaredType type) |
protected boolean |
doCheckUniqueName(org.eclipse.xtext.naming.QualifiedName name,
org.eclipse.xtext.common.types.JvmDeclaredType type) |
void |
register(org.eclipse.xtext.validation.EValidatorRegistrar registrar) |
protected void |
register(org.eclipse.xtext.validation.EValidatorRegistrar registrar,
org.eclipse.xtext.IGrammarAccess grammarAccess) |
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, 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, warningpublic void register(org.eclipse.xtext.validation.EValidatorRegistrar registrar)
register in class org.eclipse.xtext.validation.AbstractInjectableValidator@Inject
protected void register(org.eclipse.xtext.validation.EValidatorRegistrar registrar,
org.eclipse.xtext.IGrammarAccess grammarAccess)
public void checkUniqueName(org.eclipse.emf.ecore.EObject root)
protected void doCheckUniqueName(org.eclipse.xtext.common.types.JvmDeclaredType type)
protected boolean doCheckUniqueName(org.eclipse.xtext.naming.QualifiedName name,
org.eclipse.xtext.common.types.JvmDeclaredType type)
protected boolean checkUniqueInIndex(org.eclipse.xtext.common.types.JvmDeclaredType type,
java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
protected void addIssue(org.eclipse.xtext.common.types.JvmDeclaredType type)
protected void addIssue(org.eclipse.xtext.common.types.JvmDeclaredType type,
java.lang.String fileName)
type - - the type to mark already defined.fileName - - a file where the type is already defined.
If fileName is null this information will not be part of the message.