Package org.contextmapper.dsl.validation
Class UniquenessValidator
- java.lang.Object
-
- org.eclipse.xtext.validation.AbstractInjectableValidator
-
- org.eclipse.xtext.validation.AbstractDeclarativeValidator
-
- org.contextmapper.dsl.validation.AbstractCMLValidator
-
- org.contextmapper.dsl.validation.UniquenessValidator
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator
,org.eclipse.xtext.validation.ValidationMessageAcceptor
public class UniquenessValidator extends AbstractCMLValidator
-
-
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
-
Fields inherited from class org.contextmapper.dsl.validation.AbstractCMLValidator
ID_VALIDATION_PATTERN
-
Fields inherited from class org.eclipse.xtext.validation.AbstractInjectableValidator
CURRENT_LANGUAGE_NAME, ISSUE_SEVERITIES
-
-
Constructor Summary
Constructors Constructor Description UniquenessValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
register(org.eclipse.xtext.validation.EValidatorRegistrar registrar)
void
validateThatAggregateNameIsUnique(Aggregate aggregate)
void
validateThatBoundedContextNameIsUnique(BoundedContext bc)
void
validateThatDomainObjectsAreUniqueInAggregate(Aggregate agg)
void
validateThatDomainObjectsAreUniqueInModule(SculptorModule module)
void
validateThatDomainObjectsAreUniqueInSubdomain(Subdomain subdomain)
void
validateThatModuleNameIsUnique(SculptorModule module)
void
validateThatServiceNamesAreUniqueInBoundedContext(BoundedContext bc)
void
validateThatServiceNamesAreUniqueInSubdomain(Subdomain subdomain)
void
validateThatSubdomainNameIsUnique(Subdomain subdomain)
void
validateThatUseCaseNameIsUnique(UserRequirement uc)
-
Methods inherited from class org.contextmapper.dsl.validation.AbstractCMLValidator
getRootCMLModel
-
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
-
register
public void register(org.eclipse.xtext.validation.EValidatorRegistrar registrar)
- Overrides:
register
in classorg.eclipse.xtext.validation.AbstractInjectableValidator
-
validateThatBoundedContextNameIsUnique
public void validateThatBoundedContextNameIsUnique(BoundedContext bc)
-
validateThatSubdomainNameIsUnique
public void validateThatSubdomainNameIsUnique(Subdomain subdomain)
-
validateThatModuleNameIsUnique
public void validateThatModuleNameIsUnique(SculptorModule module)
-
validateThatAggregateNameIsUnique
public void validateThatAggregateNameIsUnique(Aggregate aggregate)
-
validateThatServiceNamesAreUniqueInBoundedContext
public void validateThatServiceNamesAreUniqueInBoundedContext(BoundedContext bc)
-
validateThatServiceNamesAreUniqueInSubdomain
public void validateThatServiceNamesAreUniqueInSubdomain(Subdomain subdomain)
-
validateThatUseCaseNameIsUnique
public void validateThatUseCaseNameIsUnique(UserRequirement uc)
-
validateThatDomainObjectsAreUniqueInAggregate
public void validateThatDomainObjectsAreUniqueInAggregate(Aggregate agg)
-
validateThatDomainObjectsAreUniqueInModule
public void validateThatDomainObjectsAreUniqueInModule(SculptorModule module)
-
validateThatDomainObjectsAreUniqueInSubdomain
public void validateThatDomainObjectsAreUniqueInSubdomain(Subdomain subdomain)
-
-