geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r233071 [21/22] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/ org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.deployment.model/META-INF/ org.apache.geronimo.deployment.model/emf/ ...
Date Tue, 16 Aug 2005 22:40:54 GMT
Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,739 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import org.apache.geronimo.xml.ns.deployment.impl.DeploymentPackageImpl;
+
+import org.apache.geronimo.xml.ns.naming.impl.NamingPackageImpl;
+
+import org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+
+import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl;
+
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+import org.openejb.xml.ns.openejb.jar.impl.JarPackageImpl;
+
+import org.openejb.xml.ns.pkgen.AutoIncrementTableType;
+import org.openejb.xml.ns.pkgen.CustomGeneratorType;
+import org.openejb.xml.ns.pkgen.DatabaseGeneratedType;
+import org.openejb.xml.ns.pkgen.DocumentRoot;
+import org.openejb.xml.ns.pkgen.KeyGeneratorType;
+import org.openejb.xml.ns.pkgen.PkgenFactory;
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+import org.openejb.xml.ns.pkgen.SequenceTableType;
+import org.openejb.xml.ns.pkgen.SqlGeneratorType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class PkgenPackageImpl extends EPackageImpl implements PkgenPackage {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass autoIncrementTableTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass customGeneratorTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass databaseGeneratedTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass documentRootEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass keyGeneratorTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass sequenceTableTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass sqlGeneratorTypeEClass = null;
+
+    /**
+     * Creates an instance of the model <b>Package</b>, registered with
+     * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+     * package URI value.
+     * <p>Note: the correct way to create the package is via the static
+     * factory method {@link #init init()}, which also performs
+     * initialization of the package, or returns the registered package,
+     * if one already exists.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see org.eclipse.emf.ecore.EPackage.Registry
+     * @see org.openejb.xml.ns.pkgen.PkgenPackage#eNS_URI
+     * @see #init()
+     * @generated
+     */
+    private PkgenPackageImpl() {
+        super(eNS_URI, PkgenFactory.eINSTANCE);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private static boolean isInited = false;
+
+    /**
+     * Creates, registers, and initializes the <b>Package</b> for this
+     * model, and for any others upon which it depends.  Simple
+     * dependencies are satisfied by calling this method on all
+     * dependent packages before doing anything else.  This method drives
+     * initialization for interdependent packages directly, in parallel
+     * with this package, itself.
+     * <p>Of this package and its interdependencies, all packages which
+     * have not yet been registered by their URI values are first created
+     * and registered.  The packages are then initialized in two steps:
+     * meta-model objects for all of the packages are created before any
+     * are initialized, since one package's meta-model objects may refer to
+     * those of another.
+     * <p>Invocation of this method will not affect any packages that have
+     * already been initialized.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #eNS_URI
+     * @see #createPackageContents()
+     * @see #initializePackageContents()
+     * @generated
+     */
+    public static PkgenPackage init() {
+        if (isInited) return (PkgenPackage)EPackage.Registry.INSTANCE.getEPackage(PkgenPackage.eNS_URI);
+
+        // Obtain or create and register package
+        PkgenPackageImpl thePkgenPackage = (PkgenPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PkgenPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new PkgenPackageImpl());
+
+        isInited = true;
+
+        // Initialize simple dependencies
+        NamingPackageImpl.init();
+        DeploymentPackageImpl.init();
+        SecurityPackageImpl.init();
+        XMLTypePackageImpl.init();
+
+        // Obtain or create and register interdependencies
+        JarPackageImpl theJarPackage = (JarPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JarPackage.eNS_URI) instanceof JarPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JarPackage.eNS_URI) : JarPackage.eINSTANCE);
+
+        // Create package meta-data objects
+        thePkgenPackage.createPackageContents();
+        theJarPackage.createPackageContents();
+
+        // Initialize created meta-data
+        thePkgenPackage.initializePackageContents();
+        theJarPackage.initializePackageContents();
+
+        // Mark meta-data to indicate it can't be changed
+        thePkgenPackage.freeze();
+
+        return thePkgenPackage;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getAutoIncrementTableType() {
+        return autoIncrementTableTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getAutoIncrementTableType_Sql() {
+        return (EAttribute)autoIncrementTableTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getAutoIncrementTableType_ReturnType() {
+        return (EAttribute)autoIncrementTableTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getCustomGeneratorType() {
+        return customGeneratorTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCustomGeneratorType_GeneratorName() {
+        return (EAttribute)customGeneratorTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCustomGeneratorType_PrimaryKeyClass() {
+        return (EAttribute)customGeneratorTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getDatabaseGeneratedType() {
+        return databaseGeneratedTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDatabaseGeneratedType_IdentityColumn() {
+        return (EAttribute)databaseGeneratedTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getDocumentRoot() {
+        return documentRootEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDocumentRoot_Mixed() {
+        return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getDocumentRoot_XMLNSPrefixMap() {
+        return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getDocumentRoot_XSISchemaLocation() {
+        return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getDocumentRoot_KeyGenerator() {
+        return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getKeyGeneratorType() {
+        return keyGeneratorTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getKeyGeneratorType_SequenceTable() {
+        return (EReference)keyGeneratorTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getKeyGeneratorType_AutoIncrementTable() {
+        return (EReference)keyGeneratorTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getKeyGeneratorType_SqlGenerator() {
+        return (EReference)keyGeneratorTypeEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getKeyGeneratorType_CustomGenerator() {
+        return (EReference)keyGeneratorTypeEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getSequenceTableType() {
+        return sequenceTableTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSequenceTableType_TableName() {
+        return (EAttribute)sequenceTableTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSequenceTableType_SequenceName() {
+        return (EAttribute)sequenceTableTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSequenceTableType_BatchSize() {
+        return (EAttribute)sequenceTableTypeEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getSqlGeneratorType() {
+        return sqlGeneratorTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSqlGeneratorType_Sql() {
+        return (EAttribute)sqlGeneratorTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSqlGeneratorType_ReturnType() {
+        return (EAttribute)sqlGeneratorTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenFactory getPkgenFactory() {
+        return (PkgenFactory)getEFactoryInstance();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private boolean isCreated = false;
+
+    /**
+     * Creates the meta-model objects for the package.  This method is
+     * guarded to have no affect on any invocation but its first.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void createPackageContents() {
+        if (isCreated) return;
+        isCreated = true;
+
+        // Create classes and their features
+        autoIncrementTableTypeEClass = createEClass(AUTO_INCREMENT_TABLE_TYPE);
+        createEAttribute(autoIncrementTableTypeEClass, AUTO_INCREMENT_TABLE_TYPE__SQL);
+        createEAttribute(autoIncrementTableTypeEClass, AUTO_INCREMENT_TABLE_TYPE__RETURN_TYPE);
+
+        customGeneratorTypeEClass = createEClass(CUSTOM_GENERATOR_TYPE);
+        createEAttribute(customGeneratorTypeEClass, CUSTOM_GENERATOR_TYPE__GENERATOR_NAME);
+        createEAttribute(customGeneratorTypeEClass, CUSTOM_GENERATOR_TYPE__PRIMARY_KEY_CLASS);
+
+        databaseGeneratedTypeEClass = createEClass(DATABASE_GENERATED_TYPE);
+        createEAttribute(databaseGeneratedTypeEClass, DATABASE_GENERATED_TYPE__IDENTITY_COLUMN);
+
+        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__KEY_GENERATOR);
+
+        keyGeneratorTypeEClass = createEClass(KEY_GENERATOR_TYPE);
+        createEReference(keyGeneratorTypeEClass, KEY_GENERATOR_TYPE__SEQUENCE_TABLE);
+        createEReference(keyGeneratorTypeEClass, KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE);
+        createEReference(keyGeneratorTypeEClass, KEY_GENERATOR_TYPE__SQL_GENERATOR);
+        createEReference(keyGeneratorTypeEClass, KEY_GENERATOR_TYPE__CUSTOM_GENERATOR);
+
+        sequenceTableTypeEClass = createEClass(SEQUENCE_TABLE_TYPE);
+        createEAttribute(sequenceTableTypeEClass, SEQUENCE_TABLE_TYPE__TABLE_NAME);
+        createEAttribute(sequenceTableTypeEClass, SEQUENCE_TABLE_TYPE__SEQUENCE_NAME);
+        createEAttribute(sequenceTableTypeEClass, SEQUENCE_TABLE_TYPE__BATCH_SIZE);
+
+        sqlGeneratorTypeEClass = createEClass(SQL_GENERATOR_TYPE);
+        createEAttribute(sqlGeneratorTypeEClass, SQL_GENERATOR_TYPE__SQL);
+        createEAttribute(sqlGeneratorTypeEClass, SQL_GENERATOR_TYPE__RETURN_TYPE);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private boolean isInitialized = false;
+
+    /**
+     * Complete the initialization of the package and its meta-model.  This
+     * method is guarded to have no affect on any invocation but its first.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void initializePackageContents() {
+        if (isInitialized) return;
+        isInitialized = true;
+
+        // Initialize package
+        setName(eNAME);
+        setNsPrefix(eNS_PREFIX);
+        setNsURI(eNS_URI);
+
+        // Obtain other dependent packages
+        XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+
+        // Add supertypes to classes
+
+        // Initialize classes and features; add operations and parameters
+        initEClass(autoIncrementTableTypeEClass, AutoIncrementTableType.class, "AutoIncrementTableType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getAutoIncrementTableType_Sql(), theXMLTypePackage.getString(), "sql", null, 1, 1, AutoIncrementTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getAutoIncrementTableType_ReturnType(), theXMLTypePackage.getString(), "returnType", null, 1, 1, AutoIncrementTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(customGeneratorTypeEClass, CustomGeneratorType.class, "CustomGeneratorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getCustomGeneratorType_GeneratorName(), theXMLTypePackage.getString(), "generatorName", null, 1, 1, CustomGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getCustomGeneratorType_PrimaryKeyClass(), theXMLTypePackage.getString(), "primaryKeyClass", null, 1, 1, CustomGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(databaseGeneratedTypeEClass, DatabaseGeneratedType.class, "DatabaseGeneratedType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getDatabaseGeneratedType_IdentityColumn(), theXMLTypePackage.getString(), "identityColumn", null, 1, -1, DatabaseGeneratedType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getDocumentRoot_KeyGenerator(), this.getKeyGeneratorType(), null, "keyGenerator", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+        initEClass(keyGeneratorTypeEClass, KeyGeneratorType.class, "KeyGeneratorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getKeyGeneratorType_SequenceTable(), this.getSequenceTableType(), null, "sequenceTable", null, 0, 1, KeyGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getKeyGeneratorType_AutoIncrementTable(), this.getAutoIncrementTableType(), null, "autoIncrementTable", null, 0, 1, KeyGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getKeyGeneratorType_SqlGenerator(), this.getSqlGeneratorType(), null, "sqlGenerator", null, 0, 1, KeyGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getKeyGeneratorType_CustomGenerator(), this.getCustomGeneratorType(), null, "customGenerator", null, 0, 1, KeyGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(sequenceTableTypeEClass, SequenceTableType.class, "SequenceTableType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getSequenceTableType_TableName(), theXMLTypePackage.getString(), "tableName", null, 1, 1, SequenceTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getSequenceTableType_SequenceName(), theXMLTypePackage.getString(), "sequenceName", null, 1, 1, SequenceTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getSequenceTableType_BatchSize(), theXMLTypePackage.getInt(), "batchSize", null, 1, 1, SequenceTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(sqlGeneratorTypeEClass, SqlGeneratorType.class, "SqlGeneratorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getSqlGeneratorType_Sql(), theXMLTypePackage.getString(), "sql", null, 1, 1, SqlGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getSqlGeneratorType_ReturnType(), theXMLTypePackage.getString(), "returnType", null, 1, 1, SqlGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        // Create resource
+        createResource(eNS_URI);
+
+        // Create annotations
+        // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+        createExtendedMetaDataAnnotations();
+    }
+
+    /**
+     * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected void createExtendedMetaDataAnnotations() {
+        String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";			
+        addAnnotation
+          (autoIncrementTableTypeEClass, 
+           source, 
+           new String[] {
+             "name", "auto-increment-tableType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getAutoIncrementTableType_Sql(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sql",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getAutoIncrementTableType_ReturnType(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "return-type",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (customGeneratorTypeEClass, 
+           source, 
+           new String[] {
+             "name", "custom-generatorType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getCustomGeneratorType_GeneratorName(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "generator-name",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getCustomGeneratorType_PrimaryKeyClass(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "primary-key-class",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (databaseGeneratedTypeEClass, 
+           source, 
+           new String[] {
+             "name", "database-generatedType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getDatabaseGeneratedType_IdentityColumn(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "identity-column",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (documentRootEClass, 
+           source, 
+           new String[] {
+             "name", "",
+             "kind", "mixed"
+           });		
+        addAnnotation
+          (getDocumentRoot_Mixed(), 
+           source, 
+           new String[] {
+             "kind", "elementWildcard",
+             "name", ":mixed"
+           });		
+        addAnnotation
+          (getDocumentRoot_XMLNSPrefixMap(), 
+           source, 
+           new String[] {
+             "kind", "attribute",
+             "name", "xmlns:prefix"
+           });		
+        addAnnotation
+          (getDocumentRoot_XSISchemaLocation(), 
+           source, 
+           new String[] {
+             "kind", "attribute",
+             "name", "xsi:schemaLocation"
+           });		
+        addAnnotation
+          (getDocumentRoot_KeyGenerator(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "key-generator",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (keyGeneratorTypeEClass, 
+           source, 
+           new String[] {
+             "name", "key-generatorType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getKeyGeneratorType_SequenceTable(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sequence-table",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getKeyGeneratorType_AutoIncrementTable(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "auto-increment-table",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getKeyGeneratorType_SqlGenerator(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sql-generator",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getKeyGeneratorType_CustomGenerator(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "custom-generator",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (sequenceTableTypeEClass, 
+           source, 
+           new String[] {
+             "name", "sequence-tableType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getSequenceTableType_TableName(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "table-name",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getSequenceTableType_SequenceName(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sequence-name",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getSequenceTableType_BatchSize(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "batch-size",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (sqlGeneratorTypeEClass, 
+           source, 
+           new String[] {
+             "name", "sql-generatorType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getSqlGeneratorType_Sql(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sql",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getSqlGeneratorType_ReturnType(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "return-type",
+             "namespace", "##targetNamespace"
+           });
+    }
+
+} //PkgenPackageImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,313 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+import org.openejb.xml.ns.pkgen.SequenceTableType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Sequence Table Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SequenceTableTypeImpl#getTableName <em>Table Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SequenceTableTypeImpl#getSequenceName <em>Sequence Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SequenceTableTypeImpl#getBatchSize <em>Batch Size</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SequenceTableTypeImpl extends EObjectImpl implements SequenceTableType {
+    /**
+     * The default value of the '{@link #getTableName() <em>Table Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTableName()
+     * @generated
+     * @ordered
+     */
+    protected static final String TABLE_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getTableName() <em>Table Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getTableName()
+     * @generated
+     * @ordered
+     */
+    protected String tableName = TABLE_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getSequenceName() <em>Sequence Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSequenceName()
+     * @generated
+     * @ordered
+     */
+    protected static final String SEQUENCE_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getSequenceName() <em>Sequence Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSequenceName()
+     * @generated
+     * @ordered
+     */
+    protected String sequenceName = SEQUENCE_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getBatchSize() <em>Batch Size</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getBatchSize()
+     * @generated
+     * @ordered
+     */
+    protected static final int BATCH_SIZE_EDEFAULT = 0;
+
+    /**
+     * The cached value of the '{@link #getBatchSize() <em>Batch Size</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getBatchSize()
+     * @generated
+     * @ordered
+     */
+    protected int batchSize = BATCH_SIZE_EDEFAULT;
+
+    /**
+     * This is true if the Batch Size attribute has been set.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    protected boolean batchSizeESet = false;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected SequenceTableTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getSequenceTableType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getTableName() {
+        return tableName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setTableName(String newTableName) {
+        String oldTableName = tableName;
+        tableName = newTableName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME, oldTableName, tableName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSequenceName() {
+        return sequenceName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSequenceName(String newSequenceName) {
+        String oldSequenceName = sequenceName;
+        sequenceName = newSequenceName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME, oldSequenceName, sequenceName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public int getBatchSize() {
+        return batchSize;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setBatchSize(int newBatchSize) {
+        int oldBatchSize = batchSize;
+        batchSize = newBatchSize;
+        boolean oldBatchSizeESet = batchSizeESet;
+        batchSizeESet = true;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE, oldBatchSize, batchSize, !oldBatchSizeESet));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void unsetBatchSize() {
+        int oldBatchSize = batchSize;
+        boolean oldBatchSizeESet = batchSizeESet;
+        batchSize = BATCH_SIZE_EDEFAULT;
+        batchSizeESet = false;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.UNSET, PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE, oldBatchSize, BATCH_SIZE_EDEFAULT, oldBatchSizeESet));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean isSetBatchSize() {
+        return batchSizeESet;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME:
+                return getTableName();
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME:
+                return getSequenceName();
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE:
+                return new Integer(getBatchSize());
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME:
+                setTableName((String)newValue);
+                return;
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME:
+                setSequenceName((String)newValue);
+                return;
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE:
+                setBatchSize(((Integer)newValue).intValue());
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME:
+                setTableName(TABLE_NAME_EDEFAULT);
+                return;
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME:
+                setSequenceName(SEQUENCE_NAME_EDEFAULT);
+                return;
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE:
+                unsetBatchSize();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__TABLE_NAME:
+                return TABLE_NAME_EDEFAULT == null ? tableName != null : !TABLE_NAME_EDEFAULT.equals(tableName);
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__SEQUENCE_NAME:
+                return SEQUENCE_NAME_EDEFAULT == null ? sequenceName != null : !SEQUENCE_NAME_EDEFAULT.equals(sequenceName);
+            case PkgenPackage.SEQUENCE_TABLE_TYPE__BATCH_SIZE:
+                return isSetBatchSize();
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String toString() {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (tableName: ");
+        result.append(tableName);
+        result.append(", sequenceName: ");
+        result.append(sequenceName);
+        result.append(", batchSize: ");
+        if (batchSizeESet) result.append(batchSize); else result.append("<unset>");
+        result.append(')');
+        return result.toString();
+    }
+
+} //SequenceTableTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SequenceTableTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,225 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+import org.openejb.xml.ns.pkgen.SqlGeneratorType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Sql Generator Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SqlGeneratorTypeImpl#getSql <em>Sql</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.SqlGeneratorTypeImpl#getReturnType <em>Return Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SqlGeneratorTypeImpl extends EObjectImpl implements SqlGeneratorType {
+    /**
+     * The default value of the '{@link #getSql() <em>Sql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSql()
+     * @generated
+     * @ordered
+     */
+    protected static final String SQL_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getSql() <em>Sql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSql()
+     * @generated
+     * @ordered
+     */
+    protected String sql = SQL_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getReturnType() <em>Return Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getReturnType()
+     * @generated
+     * @ordered
+     */
+    protected static final String RETURN_TYPE_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getReturnType() <em>Return Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getReturnType()
+     * @generated
+     * @ordered
+     */
+    protected String returnType = RETURN_TYPE_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected SqlGeneratorTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getSqlGeneratorType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSql() {
+        return sql;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSql(String newSql) {
+        String oldSql = sql;
+        sql = newSql;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SQL_GENERATOR_TYPE__SQL, oldSql, sql));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getReturnType() {
+        return returnType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setReturnType(String newReturnType) {
+        String oldReturnType = returnType;
+        returnType = newReturnType;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE, oldReturnType, returnType));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
+                return getSql();
+            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
+                return getReturnType();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
+                setSql((String)newValue);
+                return;
+            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
+                setReturnType((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
+                setSql(SQL_EDEFAULT);
+                return;
+            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
+                setReturnType(RETURN_TYPE_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.SQL_GENERATOR_TYPE__SQL:
+                return SQL_EDEFAULT == null ? sql != null : !SQL_EDEFAULT.equals(sql);
+            case PkgenPackage.SQL_GENERATOR_TYPE__RETURN_TYPE:
+                return RETURN_TYPE_EDEFAULT == null ? returnType != null : !RETURN_TYPE_EDEFAULT.equals(returnType);
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String toString() {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (sql: ");
+        result.append(sql);
+        result.append(", returnType: ");
+        result.append(returnType);
+        result.append(')');
+        return result.toString();
+    }
+
+} //SqlGeneratorTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/SqlGeneratorTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,231 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.openejb.xml.ns.pkgen.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.openejb.xml.ns.pkgen.PkgenPackage
+ * @generated
+ */
+public class PkgenAdapterFactory extends AdapterFactoryImpl {
+    /**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static PkgenPackage modelPackage;
+
+    /**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenAdapterFactory() {
+        if (modelPackage == null) {
+            modelPackage = PkgenPackage.eINSTANCE;
+        }
+    }
+
+    /**
+     * Returns whether this factory is applicable for the type of the object.
+     * <!-- begin-user-doc -->
+     * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+     * <!-- end-user-doc -->
+     * @return whether this factory is applicable for the type of the object.
+     * @generated
+     */
+    public boolean isFactoryForType(Object object) {
+        if (object == modelPackage) {
+            return true;
+        }
+        if (object instanceof EObject) {
+            return ((EObject)object).eClass().getEPackage() == modelPackage;
+        }
+        return false;
+    }
+
+    /**
+     * The switch the delegates to the <code>createXXX</code> methods.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected PkgenSwitch modelSwitch =
+        new PkgenSwitch() {
+            public Object caseAutoIncrementTableType(AutoIncrementTableType object) {
+                return createAutoIncrementTableTypeAdapter();
+            }
+            public Object caseCustomGeneratorType(CustomGeneratorType object) {
+                return createCustomGeneratorTypeAdapter();
+            }
+            public Object caseDatabaseGeneratedType(DatabaseGeneratedType object) {
+                return createDatabaseGeneratedTypeAdapter();
+            }
+            public Object caseDocumentRoot(DocumentRoot object) {
+                return createDocumentRootAdapter();
+            }
+            public Object caseKeyGeneratorType(KeyGeneratorType object) {
+                return createKeyGeneratorTypeAdapter();
+            }
+            public Object caseSequenceTableType(SequenceTableType object) {
+                return createSequenceTableTypeAdapter();
+            }
+            public Object caseSqlGeneratorType(SqlGeneratorType object) {
+                return createSqlGeneratorTypeAdapter();
+            }
+            public Object defaultCase(EObject object) {
+                return createEObjectAdapter();
+            }
+        };
+
+    /**
+     * Creates an adapter for the <code>target</code>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param target the object to adapt.
+     * @return the adapter for the <code>target</code>.
+     * @generated
+     */
+    public Adapter createAdapter(Notifier target) {
+        return (Adapter)modelSwitch.doSwitch((EObject)target);
+    }
+
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.AutoIncrementTableType <em>Auto Increment Table Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.AutoIncrementTableType
+     * @generated
+     */
+    public Adapter createAutoIncrementTableTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.CustomGeneratorType <em>Custom Generator Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.CustomGeneratorType
+     * @generated
+     */
+    public Adapter createCustomGeneratorTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.DatabaseGeneratedType <em>Database Generated Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.DatabaseGeneratedType
+     * @generated
+     */
+    public Adapter createDatabaseGeneratedTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.DocumentRoot <em>Document Root</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.DocumentRoot
+     * @generated
+     */
+    public Adapter createDocumentRootAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.KeyGeneratorType <em>Key Generator Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.KeyGeneratorType
+     * @generated
+     */
+    public Adapter createKeyGeneratorTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.SequenceTableType <em>Sequence Table Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.SequenceTableType
+     * @generated
+     */
+    public Adapter createSequenceTableTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.openejb.xml.ns.pkgen.SqlGeneratorType <em>Sql Generator Type</em>}'.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null so that we can easily ignore cases;
+     * it's useful to ignore a case when inheritance will catch all the cases anyway.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.openejb.xml.ns.pkgen.SqlGeneratorType
+     * @generated
+     */
+    public Adapter createSqlGeneratorTypeAdapter() {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for the default case.
+     * <!-- begin-user-doc -->
+     * This default implementation returns null.
+     * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @generated
+     */
+    public Adapter createEObjectAdapter() {
+        return null;
+    }
+
+} //PkgenAdapterFactory

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenAdapterFactory.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,62 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.openejb.xml.ns.pkgen.util.PkgenResourceImpl
+ * @generated
+ */
+public class PkgenResourceFactoryImpl extends ResourceFactoryImpl {
+    /**
+     * Creates an instance of the resource factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenResourceFactoryImpl() {
+        super();
+    }
+
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Resource createResource(URI uri) {
+        XMLResource result = new PkgenResourceImpl(uri);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
+
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+        result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
+
+        result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
+        return result;
+    }
+
+} //PkgenResourceFactoryImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceFactoryImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,41 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.openejb.xml.ns.pkgen.util.PkgenResourceFactoryImpl
+ * @generated
+ */
+public class PkgenResourceImpl extends XMLResourceImpl {
+    /**
+     * Creates an instance of the resource.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param uri the URI of the new resource.
+     * @generated
+     */
+    public PkgenResourceImpl(URI uri) {
+        super(uri);
+    }
+
+} //PkgenResourceImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenResourceImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,265 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.openejb.xml.ns.pkgen.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.openejb.xml.ns.pkgen.PkgenPackage
+ * @generated
+ */
+public class PkgenSwitch {
+    /**
+     * The cached model package
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static PkgenPackage modelPackage;
+
+    /**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenSwitch() {
+        if (modelPackage == null) {
+            modelPackage = PkgenPackage.eINSTANCE;
+        }
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    public Object doSwitch(EObject theEObject) {
+        return doSwitch(theEObject.eClass(), theEObject);
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    protected Object doSwitch(EClass theEClass, EObject theEObject) {
+        if (theEClass.eContainer() == modelPackage) {
+            return doSwitch(theEClass.getClassifierID(), theEObject);
+        }
+        else {
+            List eSuperTypes = theEClass.getESuperTypes();
+            return
+                eSuperTypes.isEmpty() ?
+                    defaultCase(theEObject) :
+                    doSwitch((EClass)eSuperTypes.get(0), theEObject);
+        }
+    }
+
+    /**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+    protected Object doSwitch(int classifierID, EObject theEObject) {
+        switch (classifierID) {
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE: {
+                AutoIncrementTableType autoIncrementTableType = (AutoIncrementTableType)theEObject;
+                Object result = caseAutoIncrementTableType(autoIncrementTableType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE: {
+                CustomGeneratorType customGeneratorType = (CustomGeneratorType)theEObject;
+                Object result = caseCustomGeneratorType(customGeneratorType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.DATABASE_GENERATED_TYPE: {
+                DatabaseGeneratedType databaseGeneratedType = (DatabaseGeneratedType)theEObject;
+                Object result = caseDatabaseGeneratedType(databaseGeneratedType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.DOCUMENT_ROOT: {
+                DocumentRoot documentRoot = (DocumentRoot)theEObject;
+                Object result = caseDocumentRoot(documentRoot);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.KEY_GENERATOR_TYPE: {
+                KeyGeneratorType keyGeneratorType = (KeyGeneratorType)theEObject;
+                Object result = caseKeyGeneratorType(keyGeneratorType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.SEQUENCE_TABLE_TYPE: {
+                SequenceTableType sequenceTableType = (SequenceTableType)theEObject;
+                Object result = caseSequenceTableType(sequenceTableType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case PkgenPackage.SQL_GENERATOR_TYPE: {
+                SqlGeneratorType sqlGeneratorType = (SqlGeneratorType)theEObject;
+                Object result = caseSqlGeneratorType(sqlGeneratorType);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Auto Increment Table Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Auto Increment Table Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseAutoIncrementTableType(AutoIncrementTableType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Custom Generator Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Custom Generator Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseCustomGeneratorType(CustomGeneratorType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Database Generated Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Database Generated Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseDatabaseGeneratedType(DatabaseGeneratedType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Document Root</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseDocumentRoot(DocumentRoot object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Key Generator Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Key Generator Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseKeyGeneratorType(KeyGeneratorType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Sequence Table Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Sequence Table Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseSequenceTableType(SequenceTableType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Sql Generator Type</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Sql Generator Type</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public Object caseSqlGeneratorType(SqlGeneratorType object) {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch, but this is the last case anyway.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+     * @generated
+     */
+    public Object defaultCase(EObject object) {
+        return null;
+    }
+
+} //PkgenSwitch

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/util/PkgenSwitch.java
------------------------------------------------------------------------------
    svn:executable = *

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/META-INF/MANIFEST.MF?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/META-INF/MANIFEST.MF (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/META-INF/MANIFEST.MF Tue Aug 16 15:39:15 2005
@@ -1,6 +1,6 @@
 nifest-Version: 1.0
 Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
+Bundle-Name: %pluginNameh
 Bundle-SymbolicName: org.apache.geronimo.ui; singleton:=true
 Bundle-Version: 1.0.0
 Bundle-Activator: org.apache.geronimo.ui.internal.GeronimoUIPlugin
@@ -20,5 +20,9 @@
  org.eclipse.wst.server.core,
  org.apache.geronimo.deployment.model,
  org.eclipse.jst.server.generic.ui,
- org.apache.geronimo.core
+ org.apache.geronimo.core,
+ org.eclipse.ui.editors,
+ org.eclipse.ui.workbench,
+ org.eclipse.ui.workbench.texteditor,
+ org.eclipse.ui.browser
 Eclipse-AutoStart: true

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/plugin.properties
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/plugin.properties?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/plugin.properties (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/plugin.properties Tue Aug 16 15:39:15 2005
@@ -1,4 +1,6 @@
 pluginName=Geronimo server UI support
 providerName=Apache Software Foundation
 
-editorName=Geronimo Web Deployment Plan Editor
\ No newline at end of file
+editorName=Geronimo Web Deployment Plan Editor
+
+PopupMenus.launchconsole=Launch Geronimo Console
\ No newline at end of file

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/plugin.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/plugin.xml?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/plugin.xml (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/plugin.xml Tue Aug 16 15:39:15 2005
@@ -34,5 +34,18 @@
             name="%editorName">
       </editor>
   </extension>
+  
+  <extension point = "org.eclipse.ui.popupMenus">
+     <objectContribution
+        id="org.apache.geronimo.ui.serveractions"
+        objectClass="org.eclipse.wst.server.core.IServer">
+	    <action id="org.apache.geronimo.ui.launchconsole"
+	       label="%PopupMenus.launchconsole"
+	       icon="icons/obj16/geronimo.gif"
+	       class="org.apache.geronimo.ui.actions.LaunchGeronimoConsoleAction"	
+	       enablesFor="1">
+	    </action>
+	 </objectContribution>
+ </extension>
 
 </plugin>

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,94 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.geronimo.ui.actions;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.internal.browser.BrowserViewer;
+import org.eclipse.ui.internal.browser.WebBrowserEditor;
+import org.eclipse.ui.internal.browser.WebBrowserEditorInput;
+import org.eclipse.wst.server.core.IServer;
+
+/**
+ * 
+ * 
+ */
+public class LaunchGeronimoConsoleAction implements IObjectActionDelegate {
+
+    public static final String serverID = "org.eclipse.jst.server.geronimo.10";
+
+    /**
+     * 
+     */
+    public LaunchGeronimoConsoleAction() {
+        super();
+        // TODO Auto-generated constructor stub
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction,
+     *      org.eclipse.ui.IWorkbenchPart)
+     */
+    public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+        // TODO Auto-generated method stub
+
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+     */
+    public void run(IAction action) {
+
+        try {
+            URL url = new URL("http://localhost:8080/console/login.jsp");
+            WebBrowserEditorInput input = new WebBrowserEditorInput(url,
+                    BrowserViewer.LOCATION_BAR);
+            WebBrowserEditor.open(input);
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        }
+
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
+     *      org.eclipse.jface.viewers.ISelection)
+     */
+    public void selectionChanged(IAction action, ISelection selection) {
+        
+        IServer server = (IServer) ((StructuredSelection) selection)
+                .getFirstElement();
+        
+        boolean enable = server.getServerType().getId().equals(serverID)
+                && server.getServerState() == IServer.STATE_STARTED;
+
+        action.setEnabled(enable);
+
+    }
+
+}

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/actions/LaunchGeronimoConsoleAction.java
------------------------------------------------------------------------------
    svn:executable = *

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java?rev=233071&r1=233070&r2=233071&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/DPEditor.java Tue Aug 16 15:39:15 2005
@@ -23,6 +23,7 @@
 import org.apache.geronimo.ui.internal.Messages;
 import org.apache.geronimo.ui.internal.Trace;
 import org.apache.geronimo.ui.pages.NamingFormPage;
+import org.apache.geronimo.ui.pages.SecurityPage;
 import org.apache.geronimo.ui.pages.WebGeneralPage;
 import org.apache.geronimo.xml.ns.web.WebAppType;
 import org.eclipse.core.runtime.IProgressMonitor;
@@ -43,30 +44,34 @@
 
     protected WebAppType plan;
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.eclipse.ui.ISaveablePart#doSave(org.eclipse.core.runtime.IProgressMonitor)
      */
     public void doSave(IProgressMonitor monitor) {
-        if (isDirty()) {
-            InputStream is = null;
+
+        InputStream is = null;
+        try {
+            IEditorInput input = getEditorInput();
+            if (input instanceof IFileEditorInput) {
+
+                plan.eResource().save(Collections.EMPTY_MAP);
+                commitFormPages(true);
+                editorDirtyStateChanged();
+
+            }
+        } catch (Exception e) {
+            Trace.trace(Trace.SEVERE, "Error saving", e);
+        } finally {
             try {
-                IEditorInput input = getEditorInput();
-                if (input instanceof IFileEditorInput) {
-                    plan.eResource().save(Collections.EMPTY_MAP);
-                    commitFormPages(true);
-                    editorDirtyStateChanged();
-                }
+                if (is != null)
+                    is.close();
             } catch (Exception e) {
-                Trace.trace(Trace.SEVERE, "Error saving", e);
-            } finally {
-                try {
-                    if (is != null)
-                        is.close();
-                } catch (Exception e) {
-                    // do nothing
-                }
+                // do nothing
             }
         }
+
     }
 
     private void commitFormPages(boolean onSave) {
@@ -93,33 +98,23 @@
         // ignore
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.eclipse.ui.forms.editor.FormEditor#addPages()
      */
     protected void addPages() {
         try {
-            addPage(new WebGeneralPage(this, "webgeneralpage",
+            addPage(new WebGeneralPage(this, "generalpage",
                     Messages.editorTabGeneral));
-            addPage(new NamingFormPage(this, "namingformpage",
+            addPage(new NamingFormPage(this, "namingpage",
                     Messages.editorTabNaming));
+            addPage(new SecurityPage(this, "securitypage",
+                    Messages.editorTabSecurity));
+            createPageDependencies();
         } catch (PartInitException e) {
             e.printStackTrace();
         }
-        createPageSecurity();
-        createPageDependencies();
-    }
-
-    protected void createPageSecurity() {
-
-        ScrolledForm form = getToolkit().createScrolledForm(getContainer());
-
-        form.setText(Messages.editorTitle);
-        form.getBody().setLayout(new GridLayout());
-
-        form.reflow(true);
-
-        int index = addPage(form);
-        setPageText(index, Messages.editorTabSecurity); //$NON-NLS-1$
 
     }
 
@@ -146,7 +141,9 @@
         }
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.eclipse.ui.ISaveablePart#isSaveAsAllowed()
      */
     public boolean isSaveAsAllowed() {



Mime
View raw message