setName ( eNAME ); setNsPrefix ( eNS_PREFIX ); setNsURI ( eNS_URI ); continuousCommandTypeEClass.getESuperTypes ().add ( this.getCommandType () ); customExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); fieldExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); hiveProcessCommandTypeEClass.getESuperTypes ().add ( this.getContinuousCommandType () ); nagiosReturnCodeExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); plainStreamExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); regExExtractorTypeEClass.getESuperTypes ().add ( this.getFieldExtractorType () ); returnCodeExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); simpleExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); singleCommandTypeEClass.getESuperTypes ().add ( this.getCommandType () ); splitContinuousCommandTypeEClass.getESuperTypes ().add ( this.getContinuousCommandType () ); splitterExtractorTypeEClass.getESuperTypes ().add ( this.getFieldExtractorType () ); triggerCommandTypeEClass.getESuperTypes ().add ( this.getCommandType () ); initEClass ( commandTypeEClass, CommandType.class, "CommandType", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference ( getCommandType_Process (), this.getProcessType (), null, "process", null, 1, 1, CommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference ( getCommandType_Extractor (), this.getExtractorType (), null, "extractor", null, 0, -1, CommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute ( getCommandType_Id (), theXMLTypePackage.getID (), "id", null, 1, 1, CommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass ( continuousCommandTypeEClass, ContinuousCommandType.class, "ContinuousCommandType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute ( getContinuousCommandType_MaxInputBuffer (), theXMLTypePackage.getInt (), "maxInputBuffer", "4000", 0, 1, ContinuousCommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEAttribute ( getContinuousCommandType_RestartDelay (), this.getRestartDelayType (), "restartDelay", null, 1, 1, ContinuousCommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass ( customExtractorTypeEClass, CustomExtractorType.class, "CustomExtractorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute ( getCustomExtractorType_Any (), ecorePackage.getEFeatureMapEntry (), "any", null, 0, 1, CustomExtractorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$
commandTypeEClass = createEClass ( COMMAND_TYPE ); createEReference ( commandTypeEClass, COMMAND_TYPE__PROCESS ); createEReference ( commandTypeEClass, COMMAND_TYPE__EXTRACTOR ); createEAttribute ( commandTypeEClass, COMMAND_TYPE__ID ); continuousCommandTypeEClass = createEClass ( CONTINUOUS_COMMAND_TYPE ); createEAttribute ( continuousCommandTypeEClass, CONTINUOUS_COMMAND_TYPE__MAX_INPUT_BUFFER ); createEAttribute ( continuousCommandTypeEClass, CONTINUOUS_COMMAND_TYPE__RESTART_DELAY ); customExtractorTypeEClass = createEClass ( CUSTOM_EXTRACTOR_TYPE ); createEAttribute ( customExtractorTypeEClass, CUSTOM_EXTRACTOR_TYPE__ANY ); createEAttribute ( customExtractorTypeEClass, CUSTOM_EXTRACTOR_TYPE__CLASS ); documentRootEClass = createEClass ( DOCUMENT_ROOT ); createEAttribute ( documentRootEClass, DOCUMENT_ROOT__MIXED ); createEReference ( documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP ); createEReference ( documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION ); createEReference ( documentRootEClass, DOCUMENT_ROOT__ROOT ); envEntryTypeEClass = createEClass ( ENV_ENTRY_TYPE ); createEAttribute ( envEntryTypeEClass, ENV_ENTRY_TYPE__NAME ); createEAttribute ( envEntryTypeEClass, ENV_ENTRY_TYPE__VALUE ); extractorTypeEClass = createEClass ( EXTRACTOR_TYPE ); createEAttribute ( extractorTypeEClass, EXTRACTOR_TYPE__NAME ); fieldExtractorTypeEClass = createEClass ( FIELD_EXTRACTOR_TYPE ); createEReference ( fieldExtractorTypeEClass, FIELD_EXTRACTOR_TYPE__FIELD );
addAnnotation ( classTypeEDataType, source, new String[] "pattern", "\\w+(\\.\\w+)*" //$NON-NLS-1$ //$NON-NLS-2$ } ); addAnnotation ( commandTypeEClass, source, new String[] "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ } ); addAnnotation ( getCommandType_Process (), source, new String[] "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ } ); addAnnotation ( getCommandType_Extractor (), source, new String[] "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ } ); addAnnotation ( getCommandType_Id (), source, new String[] "name", "id" //$NON-NLS-1$ //$NON-NLS-2$
ConfigurationPackageImpl theConfigurationPackage = (ConfigurationPackageImpl) ( EPackage.Registry.INSTANCE.get ( eNS_URI ) instanceof ConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get ( eNS_URI ) : new ConfigurationPackageImpl () ); theConfigurationPackage.createPackageContents (); theConfigurationPackage.initializePackageContents (); theConfigurationPackage.freeze ();
addAnnotation ( classTypeEDataType, source, new String[] "pattern", "\\w+(\\.\\w+)*" //$NON-NLS-1$ //$NON-NLS-2$ } ); addAnnotation ( commandTypeEClass, source, new String[] "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ } ); addAnnotation ( getCommandType_Process (), source, new String[] "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ } ); addAnnotation ( getCommandType_Extractor (), source, new String[] "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$ } ); addAnnotation ( getCommandType_Id (), source, new String[] "name", "id" //$NON-NLS-1$ //$NON-NLS-2$
ConfigurationPackageImpl theConfigurationPackage = (ConfigurationPackageImpl) ( EPackage.Registry.INSTANCE.get ( eNS_URI ) instanceof ConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get ( eNS_URI ) : new ConfigurationPackageImpl () ); theConfigurationPackage.createPackageContents (); theConfigurationPackage.initializePackageContents (); theConfigurationPackage.freeze ();
setName ( eNAME ); setNsPrefix ( eNS_PREFIX ); setNsURI ( eNS_URI ); continuousCommandTypeEClass.getESuperTypes ().add ( this.getCommandType () ); customExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); fieldExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); hiveProcessCommandTypeEClass.getESuperTypes ().add ( this.getContinuousCommandType () ); nagiosReturnCodeExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); plainStreamExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); regExExtractorTypeEClass.getESuperTypes ().add ( this.getFieldExtractorType () ); returnCodeExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); simpleExtractorTypeEClass.getESuperTypes ().add ( this.getExtractorType () ); singleCommandTypeEClass.getESuperTypes ().add ( this.getCommandType () ); splitContinuousCommandTypeEClass.getESuperTypes ().add ( this.getContinuousCommandType () ); splitterExtractorTypeEClass.getESuperTypes ().add ( this.getFieldExtractorType () ); triggerCommandTypeEClass.getESuperTypes ().add ( this.getCommandType () ); initEClass ( commandTypeEClass, CommandType.class, "CommandType", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference ( getCommandType_Process (), this.getProcessType (), null, "process", null, 1, 1, CommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference ( getCommandType_Extractor (), this.getExtractorType (), null, "extractor", null, 0, -1, CommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute ( getCommandType_Id (), theXMLTypePackage.getID (), "id", null, 1, 1, CommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass ( continuousCommandTypeEClass, ContinuousCommandType.class, "ContinuousCommandType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute ( getContinuousCommandType_MaxInputBuffer (), theXMLTypePackage.getInt (), "maxInputBuffer", "4000", 0, 1, ContinuousCommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEAttribute ( getContinuousCommandType_RestartDelay (), this.getRestartDelayType (), "restartDelay", null, 1, 1, ContinuousCommandType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass ( customExtractorTypeEClass, CustomExtractorType.class, "CustomExtractorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute ( getCustomExtractorType_Any (), ecorePackage.getEFeatureMapEntry (), "any", null, 0, 1, CustomExtractorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$
commandTypeEClass = createEClass ( COMMAND_TYPE ); createEReference ( commandTypeEClass, COMMAND_TYPE__PROCESS ); createEReference ( commandTypeEClass, COMMAND_TYPE__EXTRACTOR ); createEAttribute ( commandTypeEClass, COMMAND_TYPE__ID ); continuousCommandTypeEClass = createEClass ( CONTINUOUS_COMMAND_TYPE ); createEAttribute ( continuousCommandTypeEClass, CONTINUOUS_COMMAND_TYPE__MAX_INPUT_BUFFER ); createEAttribute ( continuousCommandTypeEClass, CONTINUOUS_COMMAND_TYPE__RESTART_DELAY ); customExtractorTypeEClass = createEClass ( CUSTOM_EXTRACTOR_TYPE ); createEAttribute ( customExtractorTypeEClass, CUSTOM_EXTRACTOR_TYPE__ANY ); createEAttribute ( customExtractorTypeEClass, CUSTOM_EXTRACTOR_TYPE__CLASS ); documentRootEClass = createEClass ( DOCUMENT_ROOT ); createEAttribute ( documentRootEClass, DOCUMENT_ROOT__MIXED ); createEReference ( documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP ); createEReference ( documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION ); createEReference ( documentRootEClass, DOCUMENT_ROOT__ROOT ); envEntryTypeEClass = createEClass ( ENV_ENTRY_TYPE ); createEAttribute ( envEntryTypeEClass, ENV_ENTRY_TYPE__NAME ); createEAttribute ( envEntryTypeEClass, ENV_ENTRY_TYPE__VALUE ); extractorTypeEClass = createEClass ( EXTRACTOR_TYPE ); createEAttribute ( extractorTypeEClass, EXTRACTOR_TYPE__NAME ); fieldExtractorTypeEClass = createEClass ( FIELD_EXTRACTOR_TYPE ); createEReference ( fieldExtractorTypeEClass, FIELD_EXTRACTOR_TYPE__FIELD );