Class 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:
    ClassMakerPackage
    • 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

      Fields 
      Modifier and Type Field Description
      static java.lang.String DIAGNOSTIC_SOURCE
      A constant for the source of diagnostic codes from this package.
      static ClassMakerValidator INSTANCE
      The cached model package
      static org.eclipse.emf.ecore.EValidator.PatternMatcher[][] NAME__PATTERN__VALUES
      • 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

      Constructors 
      Constructor Description
      ClassMakerValidator()
      Creates an instance of the switch.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.emf.common.util.ResourceLocator getResourceLocator()
      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, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateBlueprint​(Blueprint blueprint, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateClassMakerService​(ClassMakerService classMakerService, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateCompletionListener​(CompletionListener completionListener, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateCompletionNotificationAdapter​(CompletionNotificationAdapter completionNotificationAdapter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateContribution​(Contribution contribution, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateCoreException​(org.eclipse.core.runtime.CoreException coreException, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateCustomizer​(Customizer customizer, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateException​(java.lang.Exception exception, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateExecutor​(java.util.concurrent.Executor executor, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateFuture​(java.util.concurrent.Future<?> future, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateIAdapterFactory​(org.eclipse.core.runtime.IAdapterFactory iAdapterFactory, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateInvocationTargetException​(java.lang.reflect.InvocationTargetException invocationTargetException, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateIProgressMonitor​(org.eclipse.core.runtime.IProgressMonitor iProgressMonitor, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateISchedulingRule​(org.eclipse.core.runtime.jobs.ISchedulingRule iSchedulingRule, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateIStatus​(org.eclipse.core.runtime.IStatus iStatus, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateItem​(Item item, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateLocale​(java.util.Locale locale, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateLongToStateMapEntry​(java.util.Map.Entry<?,​?> longToStateMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateModelPair​(ModelPair modelPair, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateName​(java.lang.String name, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateName_Pattern​(java.lang.String name, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      Validates the Pattern constraint of 'Name'.
      boolean validateNotification​(org.eclipse.emf.common.notify.Notification notification, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateOSGiVersion​(org.osgi.framework.Version osGiVersion, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateProject​(Project project, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateProperties​(java.util.Properties properties, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateResource​(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateResourceAdapter​(ResourceAdapter resourceAdapter, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateResourceChangeListener​(ResourceChangeListener resourceChangeListener, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateRevision​(Revision revision, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateSCMOperator​(SCMOperator<?> scmOperator, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateSCMRegistry​(SCMRegistry<?> scmRegistry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateSelectRevealHandler​(SelectRevealHandler selectRevealHandler, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateSemaphore​(java.util.concurrent.Semaphore semaphore, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateStage​(Stage stage, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateStageQualifier​(StageQualifier stageQualifier, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateStageQualifierToCustomizerMapEntry​(java.util.Map.Entry<?,​?> stageQualifierToCustomizerMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateState​(State state, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateStrategy​(Strategy strategy, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateURI​(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateVersionToRevisionMapEntry​(java.util.Map.Entry<?,​?> versionToRevisionMapEntry, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateWorker​(Worker worker, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.Object> context)
      boolean validateWorkspace​(Workspace workspace, org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,​java.lang.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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassMakerValidator

        public ClassMakerValidator()
        Creates an instance of the switch.
    • Method Detail

      • validateContribution

        public boolean validateContribution​(Contribution contribution,
                                            org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                            java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateRevision

        public boolean validateRevision​(Revision revision,
                                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateState

        public boolean validateState​(State state,
                                     org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                     java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateStrategy

        public boolean validateStrategy​(Strategy strategy,
                                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateItem

        public boolean validateItem​(Item item,
                                    org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                    java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateAdapter

        public boolean validateAdapter​(org.eclipse.emf.common.notify.Adapter adapter,
                                       org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateWorkspace

        public boolean validateWorkspace​(Workspace workspace,
                                         org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateLongToStateMapEntry

        public boolean validateLongToStateMapEntry​(java.util.Map.Entry<?,​?> longToStateMapEntry,
                                                   org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                   java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateVersionToRevisionMapEntry

        public boolean validateVersionToRevisionMapEntry​(java.util.Map.Entry<?,​?> versionToRevisionMapEntry,
                                                         org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                         java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateISchedulingRule

        public boolean validateISchedulingRule​(org.eclipse.core.runtime.jobs.ISchedulingRule iSchedulingRule,
                                               org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                               java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateExecutor

        public boolean validateExecutor​(java.util.concurrent.Executor executor,
                                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateFuture

        public boolean validateFuture​(java.util.concurrent.Future<?> future,
                                      org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateIAdapterFactory

        public boolean validateIAdapterFactory​(org.eclipse.core.runtime.IAdapterFactory iAdapterFactory,
                                               org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                               java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateCustomizer

        public boolean validateCustomizer​(Customizer customizer,
                                          org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateStageQualifier

        public boolean validateStageQualifier​(StageQualifier stageQualifier,
                                              org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateStageQualifierToCustomizerMapEntry

        public boolean validateStageQualifierToCustomizerMapEntry​(java.util.Map.Entry<?,​?> stageQualifierToCustomizerMapEntry,
                                                                  org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                                  java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateModelPair

        public boolean validateModelPair​(ModelPair modelPair,
                                         org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateSCMOperator

        public boolean validateSCMOperator​(SCMOperator<?> scmOperator,
                                           org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateSCMRegistry

        public boolean validateSCMRegistry​(SCMRegistry<?> scmRegistry,
                                           org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateProject

        public boolean validateProject​(Project project,
                                       org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateResource

        public boolean validateResource​(org.eclipse.emf.ecore.resource.Resource resource,
                                        org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                        java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateResourceChangeListener

        public boolean validateResourceChangeListener​(ResourceChangeListener resourceChangeListener,
                                                      org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                      java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateNotification

        public boolean validateNotification​(org.eclipse.emf.common.notify.Notification notification,
                                            org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                            java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateCompletionListener

        public boolean validateCompletionListener​(CompletionListener completionListener,
                                                  org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateResourceAdapter

        public boolean validateResourceAdapter​(ResourceAdapter resourceAdapter,
                                               org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                               java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateClassMakerService

        public boolean validateClassMakerService​(ClassMakerService classMakerService,
                                                 org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                 java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateBlueprint

        public boolean validateBlueprint​(Blueprint blueprint,
                                         org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateCompletionNotificationAdapter

        public boolean validateCompletionNotificationAdapter​(CompletionNotificationAdapter completionNotificationAdapter,
                                                             org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                             java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateWorker

        public boolean validateWorker​(Worker worker,
                                      org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateSelectRevealHandler

        public boolean validateSelectRevealHandler​(SelectRevealHandler selectRevealHandler,
                                                   org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                   java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateStage

        public boolean validateStage​(Stage stage,
                                     org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                     java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateProperties

        public boolean validateProperties​(java.util.Properties properties,
                                          org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                          java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateIProgressMonitor

        public boolean validateIProgressMonitor​(org.eclipse.core.runtime.IProgressMonitor iProgressMonitor,
                                                org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateOSGiVersion

        public boolean validateOSGiVersion​(org.osgi.framework.Version osGiVersion,
                                           org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateSemaphore

        public boolean validateSemaphore​(java.util.concurrent.Semaphore semaphore,
                                         org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateCoreException

        public boolean validateCoreException​(org.eclipse.core.runtime.CoreException coreException,
                                             org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                             java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateInvocationTargetException

        public boolean validateInvocationTargetException​(java.lang.reflect.InvocationTargetException invocationTargetException,
                                                         org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                                         java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateIStatus

        public boolean validateIStatus​(org.eclipse.core.runtime.IStatus iStatus,
                                       org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                       java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateURI

        public boolean validateURI​(org.eclipse.emf.common.util.URI uri,
                                   org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                   java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateName

        public boolean validateName​(java.lang.String name,
                                    org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                    java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateName_Pattern

        public boolean validateName_Pattern​(java.lang.String name,
                                            org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                            java.util.Map<java.lang.Object,​java.lang.Object> context)
        Validates the Pattern constraint of 'Name'.
      • validateException

        public boolean validateException​(java.lang.Exception exception,
                                         org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         java.util.Map<java.lang.Object,​java.lang.Object> context)
      • validateLocale

        public boolean validateLocale​(java.util.Locale locale,
                                      org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      java.util.Map<java.lang.Object,​java.lang.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.