Class ClassMakerValidator
java.lang.Object
org.eclipse.emf.ecore.util.EObjectValidator
org.enterprisedomain.classmaker.util.ClassMakerValidator
- All Implemented Interfaces:
org.eclipse.emf.ecore.EValidator
public class ClassMakerValidator
extends org.eclipse.emf.ecore.util.EObjectValidator
The Validator for the model.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EObjectValidator
org.eclipse.emf.ecore.util.EObjectValidator.DynamicEClassValidator, org.eclipse.emf.ecore.util.EObjectValidator.DynamicEDataTypeValidator
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
Modifier and TypeFieldDescriptionstatic final String
A constant for thesource
of diagnosticcodes
from this package.static final ClassMakerValidator
The cached model packagestatic final org.eclipse.emf.ecore.EValidator.PatternMatcher[][]
Fields inherited from class org.eclipse.emf.ecore.util.EObjectValidator
DATA_VALUE__FRACTION_DIGITS_IN_RANGE, DATA_VALUE__LENGTH_IN_RANGE, DATA_VALUE__MATCHES_PATTERN, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, DATA_VALUE__TYPE_CORRECT, DATA_VALUE__VALUE_IN_ENUMERATION, DATA_VALUE__VALUE_IN_RANGE, EOBJECT__EVERY_BIDIRECTIONAL_REFERENCE_IS_PAIRED, EOBJECT__EVERY_DATA_VALUE_CONFORMS, EOBJECT__EVERY_KEY_UNIQUE, EOBJECT__EVERY_MAP_ENTRY_UNIQUE, EOBJECT__EVERY_MULTIPCITY_CONFORMS, EOBJECT__EVERY_PROXY_RESOLVES, EOBJECT__EVERY_REFERENCE_IS_CONTAINED, EOBJECT__NO_CIRCULAR_CONTAINMENT, EOBJECT__UNIQUE_ID, ROOT_OBJECT
Fields inherited from interface org.eclipse.emf.ecore.EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.common.util.ResourceLocator
Returns the resource locator that will be used to fetch messages for this validator's diagnostics.boolean
validateAdapter
(org.eclipse.emf.common.notify.Adapter adapter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateBlueprint
(Blueprint blueprint, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateClassMakerService
(ClassMakerService classMakerService, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateCompletionListener
(CompletionListener completionListener, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateCompletionNotificationAdapter
(CompletionNotificationAdapter completionNotificationAdapter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateContribution
(Contribution contribution, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateCoreException
(org.eclipse.core.runtime.CoreException coreException, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateCustomizer
(Customizer customizer, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateEMFPlugin
(org.eclipse.emf.common.EMFPlugin emfPlugin, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateException
(Exception exception, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateExecutor
(Executor executor, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateFuture
(Future<?> future, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateIAdapterFactory
(org.eclipse.core.runtime.IAdapterFactory iAdapterFactory, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateInvocationTargetException
(InvocationTargetException invocationTargetException, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateIProgressMonitor
(org.eclipse.core.runtime.IProgressMonitor iProgressMonitor, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateISchedulingRule
(org.eclipse.core.runtime.jobs.ISchedulingRule iSchedulingRule, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateIStatus
(org.eclipse.core.runtime.IStatus iStatus, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateItem
(Item item, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateLocale
(Locale locale, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateLongToStateMapEntry
(Map.Entry<?, ?> longToStateMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateModels
(Models models, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateName
(String name, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateName_Pattern
(String name, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) Validates the Pattern constraint of 'Name'.boolean
validateNotification
(org.eclipse.emf.common.notify.Notification notification, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateNotifier
(org.eclipse.emf.common.notify.Notifier notifier, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateOSGiVersion
(org.osgi.framework.Version osGiVersion, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateProject
(Project project, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateProperties
(Properties properties, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateResource
(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateResourceAdapter
(ResourceAdapter resourceAdapter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateResourceChangeListener
(ResourceChangeListener resourceChangeListener, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateRevision
(Revision revision, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateSCMOperator
(SCMOperator<?> scmOperator, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateSCMRegistry
(SCMRegistry<?> scmRegistry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateSelectRevealHandler
(SelectRevealHandler selectRevealHandler, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateSemaphore
(Semaphore semaphore, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateStage
(Stage stage, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateStageQualifier
(StageQualifier stageQualifier, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateStageQualifierToCustomizerMapEntry
(Map.Entry<?, ?> stageQualifierToCustomizerMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateState
(State state, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateStrategy
(Strategy strategy, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateURI
(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateVersionToRevisionMapEntry
(Map.Entry<?, ?> versionToRevisionMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateWorker
(Worker worker, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateWorkspace
(Workspace workspace, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) Methods inherited from class org.eclipse.emf.ecore.util.EObjectValidator
getAvailableChoices, getFeatureLabel, getObjectLabel, getValueLabel, validate, validate, validate, validate, validate, validate, validate_BidirectionalReferenceIsPaired, validate_EveryBidirectionalReferenceIsPaired, validate_EveryDataValueConforms, validate_EveryDefaultConstraint, validate_EveryKeyUnique, validate_EveryMapEntryUnique, validate_EveryMultiplicityConforms, validate_EveryProxyResolves, validate_EveryReferenceIsContained, validate_NoCircularContainment, validate_UniqueID
-
Field Details
-
INSTANCE
The cached model package -
DIAGNOSTIC_SOURCE
A constant for thesource
of diagnosticcodes
from this package.- See Also:
-
Diagnostic.getSource()
Diagnostic.getCode()
- Constant Field Values
-
NAME__PATTERN__VALUES
public static final org.eclipse.emf.ecore.EValidator.PatternMatcher[][] NAME__PATTERN__VALUES
-
-
Constructor Details
-
ClassMakerValidator
public ClassMakerValidator()Creates an instance of the switch.
-
-
Method Details
-
validateContribution
public boolean validateContribution(Contribution contribution, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateRevision
public boolean validateRevision(Revision revision, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateState
public boolean validateState(State state, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateStrategy
public boolean validateStrategy(Strategy strategy, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateItem
public boolean validateItem(Item item, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateAdapter
public boolean validateAdapter(org.eclipse.emf.common.notify.Adapter adapter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateWorkspace
public boolean validateWorkspace(Workspace workspace, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateLongToStateMapEntry
public boolean validateLongToStateMapEntry(Map.Entry<?, ?> longToStateMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateVersionToRevisionMapEntry
public boolean validateVersionToRevisionMapEntry(Map.Entry<?, ?> versionToRevisionMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateISchedulingRule
public boolean validateISchedulingRule(org.eclipse.core.runtime.jobs.ISchedulingRule iSchedulingRule, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateExecutor
public boolean validateExecutor(Executor executor, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateFuture
public boolean validateFuture(Future<?> future, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateIAdapterFactory
public boolean validateIAdapterFactory(org.eclipse.core.runtime.IAdapterFactory iAdapterFactory, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateCustomizer
public boolean validateCustomizer(Customizer customizer, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateStageQualifier
public boolean validateStageQualifier(StageQualifier stageQualifier, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateStageQualifierToCustomizerMapEntry
public boolean validateStageQualifierToCustomizerMapEntry(Map.Entry<?, ?> stageQualifierToCustomizerMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateModels
public boolean validateModels(Models models, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateEMFPlugin
public boolean validateEMFPlugin(org.eclipse.emf.common.EMFPlugin emfPlugin, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateSCMOperator
public boolean validateSCMOperator(SCMOperator<?> scmOperator, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateSCMRegistry
public boolean validateSCMRegistry(SCMRegistry<?> scmRegistry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateProject
public boolean validateProject(Project project, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateResource
public boolean validateResource(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateResourceChangeListener
public boolean validateResourceChangeListener(ResourceChangeListener resourceChangeListener, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateNotification
public boolean validateNotification(org.eclipse.emf.common.notify.Notification notification, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateNotifier
public boolean validateNotifier(org.eclipse.emf.common.notify.Notifier notifier, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateCompletionListener
public boolean validateCompletionListener(CompletionListener completionListener, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateResourceAdapter
public boolean validateResourceAdapter(ResourceAdapter resourceAdapter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateClassMakerService
public boolean validateClassMakerService(ClassMakerService classMakerService, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateBlueprint
public boolean validateBlueprint(Blueprint blueprint, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateCompletionNotificationAdapter
public boolean validateCompletionNotificationAdapter(CompletionNotificationAdapter completionNotificationAdapter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateWorker
public boolean validateWorker(Worker worker, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateSelectRevealHandler
public boolean validateSelectRevealHandler(SelectRevealHandler selectRevealHandler, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateStage
public boolean validateStage(Stage stage, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateProperties
public boolean validateProperties(Properties properties, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateIProgressMonitor
public boolean validateIProgressMonitor(org.eclipse.core.runtime.IProgressMonitor iProgressMonitor, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateOSGiVersion
public boolean validateOSGiVersion(org.osgi.framework.Version osGiVersion, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateSemaphore
public boolean validateSemaphore(Semaphore semaphore, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateCoreException
public boolean validateCoreException(org.eclipse.core.runtime.CoreException coreException, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateInvocationTargetException
public boolean validateInvocationTargetException(InvocationTargetException invocationTargetException, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateIStatus
public boolean validateIStatus(org.eclipse.core.runtime.IStatus iStatus, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateURI
public boolean validateURI(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateName
public boolean validateName(String name, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateName_Pattern
public boolean validateName_Pattern(String name, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) Validates the Pattern constraint of 'Name'. -
validateException
public boolean validateException(Exception exception, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
validateLocale
public boolean validateLocale(Locale locale, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object, Object> context) -
getResourceLocator
public org.eclipse.emf.common.util.ResourceLocator getResourceLocator()Returns the resource locator that will be used to fetch messages for this validator's diagnostics.
-