directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r529293 [2/4] - in /directory/sandbox/oersoy/das.ldap.parent: ./ das.ldap.configuration.model.ecore.v100/ das.ldap.configuration.model.ecore.v100/.settings/ das.ldap.configuration.model.ecore.v100/model/ das.ldap.configuration.model.ecore.v...
Date Mon, 16 Apr 2007 15:43:26 GMT
Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.java?view=auto&rev=529293
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.java Mon Apr 16 08:43:15 2007
@@ -0,0 +1,540 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ *   <li>each class,</li>
+ *   <li>each feature of each class,</li>
+ *   <li>each enum,</li>
+ *   <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Factory
+ * @model kind="package"
+ * @generated
+ */
+public interface DASLdapModelV100Package extends EPackage
+{
+    /**
+     * The package name.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    String eNAME = "v100";
+
+    /**
+     * The package namespace URI.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    String eNS_URI = "http://org.apache.tuscany/das.ldap.configuration.model.ecore.v100";
+
+    /**
+     * The package namespace name.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    String eNS_PREFIX = "das.ldap.v100";
+
+    /**
+     * The singleton instance of the package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    DASLdapModelV100Package eINSTANCE = org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl.init();
+
+    /**
+     * The meta object id for the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.JNDIPropertiesImpl <em>JNDI Properties</em>}' class.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.JNDIPropertiesImpl
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getJNDIProperties()
+     * @generated
+     */
+    int JNDI_PROPERTIES = 0;
+
+    /**
+     * The feature id for the '<em><b>Java Naming Factory Initial</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int JNDI_PROPERTIES__JAVA_NAMING_FACTORY_INITIAL = 0;
+
+    /**
+     * The feature id for the '<em><b>Java Naming Provider Url</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int JNDI_PROPERTIES__JAVA_NAMING_PROVIDER_URL = 1;
+
+    /**
+     * The feature id for the '<em><b>Java Naming Security Authentication</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int JNDI_PROPERTIES__JAVA_NAMING_SECURITY_AUTHENTICATION = 2;
+
+    /**
+     * The feature id for the '<em><b>Java Naming Security Principal</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int JNDI_PROPERTIES__JAVA_NAMING_SECURITY_PRINCIPAL = 3;
+
+    /**
+     * The feature id for the '<em><b>Java Naming Security Credentials</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int JNDI_PROPERTIES__JAVA_NAMING_SECURITY_CREDENTIALS = 4;
+
+    /**
+     * The number of structural features of the '<em>JNDI Properties</em>' class.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int JNDI_PROPERTIES_FEATURE_COUNT = 5;
+
+    /**
+     * The meta object id for the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl <em>DAS Config</em>}' class.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getDASConfig()
+     * @generated
+     */
+    int DAS_CONFIG = 1;
+
+    /**
+     * The feature id for the '<em><b>Gen Model Name</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int DAS_CONFIG__GEN_MODEL_NAME = 0;
+
+    /**
+     * The feature id for the '<em><b>Repository Base</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int DAS_CONFIG__REPOSITORY_BASE = 1;
+
+    /**
+     * The feature id for the '<em><b>Jar Name</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int DAS_CONFIG__JAR_NAME = 2;
+
+    /**
+     * The feature id for the '<em><b>EPackage Ns URI</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int DAS_CONFIG__EPACKAGE_NS_URI = 3;
+
+    /**
+     * The feature id for the '<em><b>EPackage Ns Prefix</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int DAS_CONFIG__EPACKAGE_NS_PREFIX = 4;
+
+    /**
+     * The number of structural features of the '<em>DAS Config</em>' class.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    int DAS_CONFIG_FEATURE_COUNT = 5;
+
+    /**
+     * The meta object id for the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys <em>JNDI Environment Keys</em>}' enum.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getJNDIEnvironmentKeys()
+     * @generated
+     */
+    int JNDI_ENVIRONMENT_KEYS = 2;
+
+    /**
+     * The meta object id for the '<em>Naming Exception</em>' data type.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see javax.naming.NamingException
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getNamingException()
+     * @generated
+     */
+    int NAMING_EXCEPTION = 3;
+
+    /**
+     * The meta object id for the '<em>Dir Context</em>' data type.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see javax.naming.directory.DirContext
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getDirContext()
+     * @generated
+     */
+    int DIR_CONTEXT = 4;
+
+
+    /**
+     * Returns the meta object for class '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties <em>JNDI Properties</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for class '<em>JNDI Properties</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties
+     * @generated
+     */
+    EClass getJNDIProperties();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingFactoryInitial <em>Java Naming Factory Initial</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Java Naming Factory Initial</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingFactoryInitial()
+     * @see #getJNDIProperties()
+     * @generated
+     */
+    EAttribute getJNDIProperties_JavaNamingFactoryInitial();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingProviderUrl <em>Java Naming Provider Url</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Java Naming Provider Url</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingProviderUrl()
+     * @see #getJNDIProperties()
+     * @generated
+     */
+    EAttribute getJNDIProperties_JavaNamingProviderUrl();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityAuthentication <em>Java Naming Security Authentication</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Java Naming Security Authentication</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityAuthentication()
+     * @see #getJNDIProperties()
+     * @generated
+     */
+    EAttribute getJNDIProperties_JavaNamingSecurityAuthentication();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityPrincipal <em>Java Naming Security Principal</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Java Naming Security Principal</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityPrincipal()
+     * @see #getJNDIProperties()
+     * @generated
+     */
+    EAttribute getJNDIProperties_JavaNamingSecurityPrincipal();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityCredentials <em>Java Naming Security Credentials</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Java Naming Security Credentials</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityCredentials()
+     * @see #getJNDIProperties()
+     * @generated
+     */
+    EAttribute getJNDIProperties_JavaNamingSecurityCredentials();
+
+    /**
+     * Returns the meta object for class '{@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig <em>DAS Config</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for class '<em>DAS Config</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig
+     * @generated
+     */
+    EClass getDASConfig();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getGenModelName <em>Gen Model Name</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Gen Model Name</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getGenModelName()
+     * @see #getDASConfig()
+     * @generated
+     */
+    EAttribute getDASConfig_GenModelName();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getRepositoryBase <em>Repository Base</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Repository Base</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getRepositoryBase()
+     * @see #getDASConfig()
+     * @generated
+     */
+    EAttribute getDASConfig_RepositoryBase();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getJarName <em>Jar Name</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Jar Name</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getJarName()
+     * @see #getDASConfig()
+     * @generated
+     */
+    EAttribute getDASConfig_JarName();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getEPackageNsURI <em>EPackage Ns URI</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>EPackage Ns URI</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getEPackageNsURI()
+     * @see #getDASConfig()
+     * @generated
+     */
+    EAttribute getDASConfig_EPackageNsURI();
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getEPackageNsPrefix <em>EPackage Ns Prefix</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>EPackage Ns Prefix</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig#getEPackageNsPrefix()
+     * @see #getDASConfig()
+     * @generated
+     */
+    EAttribute getDASConfig_EPackageNsPrefix();
+
+    /**
+     * Returns the meta object for enum '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys <em>JNDI Environment Keys</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for enum '<em>JNDI Environment Keys</em>'.
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys
+     * @generated
+     */
+    EEnum getJNDIEnvironmentKeys();
+
+    /**
+     * Returns the meta object for data type '{@link javax.naming.NamingException <em>Naming Exception</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for data type '<em>Naming Exception</em>'.
+     * @see javax.naming.NamingException
+     * @model instanceClass="javax.naming.NamingException" serializable="false"
+     * @generated
+     */
+    EDataType getNamingException();
+
+    /**
+     * Returns the meta object for data type '{@link javax.naming.directory.DirContext <em>Dir Context</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for data type '<em>Dir Context</em>'.
+     * @see javax.naming.directory.DirContext
+     * @model instanceClass="javax.naming.directory.DirContext"
+     * @generated
+     */
+    EDataType getDirContext();
+
+    /**
+     * Returns the factory that creates the instances of the model.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the factory that creates the instances of the model.
+     * @generated
+     */
+    DASLdapModelV100Factory getDASLdapModelV100Factory();
+
+    /**
+     * <!-- begin-user-doc -->
+     * Defines literals for the meta objects that represent
+     * <ul>
+     *   <li>each class,</li>
+     *   <li>each feature of each class,</li>
+     *   <li>each enum,</li>
+     *   <li>and each data type</li>
+     * </ul>
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    interface Literals
+    {
+        /**
+         * The meta object literal for the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.JNDIPropertiesImpl <em>JNDI Properties</em>}' class.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.JNDIPropertiesImpl
+         * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getJNDIProperties()
+         * @generated
+         */
+        EClass JNDI_PROPERTIES = eINSTANCE.getJNDIProperties();
+
+        /**
+         * The meta object literal for the '<em><b>Java Naming Factory Initial</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute JNDI_PROPERTIES__JAVA_NAMING_FACTORY_INITIAL = eINSTANCE.getJNDIProperties_JavaNamingFactoryInitial();
+
+        /**
+         * The meta object literal for the '<em><b>Java Naming Provider Url</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute JNDI_PROPERTIES__JAVA_NAMING_PROVIDER_URL = eINSTANCE.getJNDIProperties_JavaNamingProviderUrl();
+
+        /**
+         * The meta object literal for the '<em><b>Java Naming Security Authentication</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute JNDI_PROPERTIES__JAVA_NAMING_SECURITY_AUTHENTICATION = eINSTANCE.getJNDIProperties_JavaNamingSecurityAuthentication();
+
+        /**
+         * The meta object literal for the '<em><b>Java Naming Security Principal</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute JNDI_PROPERTIES__JAVA_NAMING_SECURITY_PRINCIPAL = eINSTANCE.getJNDIProperties_JavaNamingSecurityPrincipal();
+
+        /**
+         * The meta object literal for the '<em><b>Java Naming Security Credentials</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute JNDI_PROPERTIES__JAVA_NAMING_SECURITY_CREDENTIALS = eINSTANCE.getJNDIProperties_JavaNamingSecurityCredentials();
+
+        /**
+         * The meta object literal for the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl <em>DAS Config</em>}' class.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl
+         * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getDASConfig()
+         * @generated
+         */
+        EClass DAS_CONFIG = eINSTANCE.getDASConfig();
+
+        /**
+         * The meta object literal for the '<em><b>Gen Model Name</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute DAS_CONFIG__GEN_MODEL_NAME = eINSTANCE.getDASConfig_GenModelName();
+
+        /**
+         * The meta object literal for the '<em><b>Repository Base</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute DAS_CONFIG__REPOSITORY_BASE = eINSTANCE.getDASConfig_RepositoryBase();
+
+        /**
+         * The meta object literal for the '<em><b>Jar Name</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute DAS_CONFIG__JAR_NAME = eINSTANCE.getDASConfig_JarName();
+
+        /**
+         * The meta object literal for the '<em><b>EPackage Ns URI</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute DAS_CONFIG__EPACKAGE_NS_URI = eINSTANCE.getDASConfig_EPackageNsURI();
+
+        /**
+         * The meta object literal for the '<em><b>EPackage Ns Prefix</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        EAttribute DAS_CONFIG__EPACKAGE_NS_PREFIX = eINSTANCE.getDASConfig_EPackageNsPrefix();
+
+        /**
+         * The meta object literal for the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys <em>JNDI Environment Keys</em>}' enum.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @see org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys
+         * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getJNDIEnvironmentKeys()
+         * @generated
+         */
+        EEnum JNDI_ENVIRONMENT_KEYS = eINSTANCE.getJNDIEnvironmentKeys();
+
+        /**
+         * The meta object literal for the '<em>Naming Exception</em>' data type.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @see javax.naming.NamingException
+         * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getNamingException()
+         * @generated
+         */
+        EDataType NAMING_EXCEPTION = eINSTANCE.getNamingException();
+
+        /**
+         * The meta object literal for the '<em>Dir Context</em>' data type.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @see javax.naming.directory.DirContext
+         * @see org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASLdapModelV100PackageImpl#getDirContext()
+         * @generated
+         */
+        EDataType DIR_CONTEXT = eINSTANCE.getDirContext();
+
+    }
+
+} //DASLdapModelV100Package

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/JNDIEnvironmentKeys.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/JNDIEnvironmentKeys.java?view=auto&rev=529293
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/JNDIEnvironmentKeys.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/JNDIEnvironmentKeys.java Mon Apr 16 08:43:15 2007
@@ -0,0 +1,308 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>JNDI Environment Keys</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#getJNDIEnvironmentKeys()
+ * @model
+ * @generated
+ */
+public enum JNDIEnvironmentKeys implements Enumerator
+{
+    /**
+     * The '<em><b>JAVA NAMING FACTORY INITIAL KEY</b></em>' literal object.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_FACTORY_INITIAL_KEY_VALUE
+     * @generated
+     * @ordered
+     */
+    JAVA_NAMING_FACTORY_INITIAL_KEY(0, "JAVA_NAMING_FACTORY_INITIAL_KEY", "java.naming.factory.initial"),
+
+    /**
+     * The '<em><b>JAVA NAMING PROVIDER URL KEY</b></em>' literal object.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_PROVIDER_URL_KEY_VALUE
+     * @generated
+     * @ordered
+     */
+    JAVA_NAMING_PROVIDER_URL_KEY(1, "JAVA_NAMING_PROVIDER_URL_KEY", "java.naming.provider.url"),
+
+    /**
+     * The '<em><b>JAVA NAMING SECURITY AUTHENTICATION KEY</b></em>' literal object.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_SECURITY_AUTHENTICATION_KEY_VALUE
+     * @generated
+     * @ordered
+     */
+    JAVA_NAMING_SECURITY_AUTHENTICATION_KEY(2, "JAVA_NAMING_SECURITY_AUTHENTICATION_KEY", "java.naming.security.authentication"),
+
+    /**
+     * The '<em><b>JAVA NAMING SECURITY PRINCIPAL KEY</b></em>' literal object.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_SECURITY_PRINCIPAL_KEY_VALUE
+     * @generated
+     * @ordered
+     */
+    JAVA_NAMING_SECURITY_PRINCIPAL_KEY(3, "JAVA_NAMING_SECURITY_PRINCIPAL_KEY", "java.naming.security.principal"),
+
+    /**
+     * The '<em><b>JAVA NAMING SECURITY CREDENTIALS KEY</b></em>' literal object.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_SECURITY_CREDENTIALS_KEY_VALUE
+     * @generated
+     * @ordered
+     */
+    JAVA_NAMING_SECURITY_CREDENTIALS_KEY(4, "JAVA_NAMING_SECURITY_CREDENTIALS_KEY", "java.naming.security.credentials");
+
+    /**
+     * The '<em><b>JAVA NAMING FACTORY INITIAL KEY</b></em>' literal value.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of '<em><b>JAVA NAMING FACTORY INITIAL KEY</b></em>' literal object isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_FACTORY_INITIAL_KEY
+     * @model literal="java.naming.factory.initial"
+     * @generated
+     * @ordered
+     */
+    public static final int JAVA_NAMING_FACTORY_INITIAL_KEY_VALUE = 0;
+
+    /**
+     * The '<em><b>JAVA NAMING PROVIDER URL KEY</b></em>' literal value.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of '<em><b>JAVA NAMING PROVIDER URL KEY</b></em>' literal object isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_PROVIDER_URL_KEY
+     * @model literal="java.naming.provider.url"
+     * @generated
+     * @ordered
+     */
+    public static final int JAVA_NAMING_PROVIDER_URL_KEY_VALUE = 1;
+
+    /**
+     * The '<em><b>JAVA NAMING SECURITY AUTHENTICATION KEY</b></em>' literal value.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of '<em><b>JAVA NAMING SECURITY AUTHENTICATION KEY</b></em>' literal object isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_SECURITY_AUTHENTICATION_KEY
+     * @model literal="java.naming.security.authentication"
+     * @generated
+     * @ordered
+     */
+    public static final int JAVA_NAMING_SECURITY_AUTHENTICATION_KEY_VALUE = 2;
+
+    /**
+     * The '<em><b>JAVA NAMING SECURITY PRINCIPAL KEY</b></em>' literal value.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of '<em><b>JAVA NAMING SECURITY PRINCIPAL KEY</b></em>' literal object isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_SECURITY_PRINCIPAL_KEY
+     * @model literal="java.naming.security.principal"
+     * @generated
+     * @ordered
+     */
+    public static final int JAVA_NAMING_SECURITY_PRINCIPAL_KEY_VALUE = 3;
+
+    /**
+     * The '<em><b>JAVA NAMING SECURITY CREDENTIALS KEY</b></em>' literal value.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of '<em><b>JAVA NAMING SECURITY CREDENTIALS KEY</b></em>' literal object isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @see #JAVA_NAMING_SECURITY_CREDENTIALS_KEY
+     * @model literal="java.naming.security.credentials"
+     * @generated
+     * @ordered
+     */
+    public static final int JAVA_NAMING_SECURITY_CREDENTIALS_KEY_VALUE = 4;
+
+    /**
+     * An array of all the '<em><b>JNDI Environment Keys</b></em>' enumerators.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private static final JNDIEnvironmentKeys[] VALUES_ARRAY =
+        new JNDIEnvironmentKeys[]
+        {
+            JAVA_NAMING_FACTORY_INITIAL_KEY,
+            JAVA_NAMING_PROVIDER_URL_KEY,
+            JAVA_NAMING_SECURITY_AUTHENTICATION_KEY,
+            JAVA_NAMING_SECURITY_PRINCIPAL_KEY,
+            JAVA_NAMING_SECURITY_CREDENTIALS_KEY,
+        };
+
+    /**
+     * A public read-only list of all the '<em><b>JNDI Environment Keys</b></em>' enumerators.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final List<JNDIEnvironmentKeys> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+    /**
+     * Returns the '<em><b>JNDI Environment Keys</b></em>' literal with the specified literal value.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static JNDIEnvironmentKeys get(String literal)
+    {
+        for (int i = 0; i < VALUES_ARRAY.length; ++i)
+        {
+            JNDIEnvironmentKeys result = VALUES_ARRAY[i];
+            if (result.toString().equals(literal))
+            {
+                return result;
+            }
+        }
+        return null;
+    }
+
+    /**
+     * Returns the '<em><b>JNDI Environment Keys</b></em>' literal with the specified name.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static JNDIEnvironmentKeys getByName(String name)
+    {
+        for (int i = 0; i < VALUES_ARRAY.length; ++i)
+        {
+            JNDIEnvironmentKeys result = VALUES_ARRAY[i];
+            if (result.getName().equals(name))
+            {
+                return result;
+            }
+        }
+        return null;
+    }
+
+    /**
+     * Returns the '<em><b>JNDI Environment Keys</b></em>' literal with the specified integer value.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static JNDIEnvironmentKeys get(int value)
+    {
+        switch (value)
+        {
+            case JAVA_NAMING_FACTORY_INITIAL_KEY_VALUE: return JAVA_NAMING_FACTORY_INITIAL_KEY;
+            case JAVA_NAMING_PROVIDER_URL_KEY_VALUE: return JAVA_NAMING_PROVIDER_URL_KEY;
+            case JAVA_NAMING_SECURITY_AUTHENTICATION_KEY_VALUE: return JAVA_NAMING_SECURITY_AUTHENTICATION_KEY;
+            case JAVA_NAMING_SECURITY_PRINCIPAL_KEY_VALUE: return JAVA_NAMING_SECURITY_PRINCIPAL_KEY;
+            case JAVA_NAMING_SECURITY_CREDENTIALS_KEY_VALUE: return JAVA_NAMING_SECURITY_CREDENTIALS_KEY;
+        }
+        return null;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private final int value;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private final String name;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private final String literal;
+
+    /**
+     * Only this class can construct instances.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private JNDIEnvironmentKeys(int value, String name, String literal)
+    {
+        this.value = value;
+        this.name = name;
+        this.literal = literal;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public int getValue()
+    {
+      return value;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getName()
+    {
+      return name;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getLiteral()
+    {
+      return literal;
+    }
+
+    /**
+     * Returns the literal value of the enumerator, which is its string representation.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public String toString()
+    {
+        return literal;
+    }
+    
+} //JNDIEnvironmentKeys

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/JNDIProperties.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/JNDIProperties.java?view=auto&rev=529293
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/JNDIProperties.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/JNDIProperties.java Mon Apr 16 08:43:15 2007
@@ -0,0 +1,190 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100;
+
+import javax.naming.NamingException;
+
+import javax.naming.directory.DirContext;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>JNDI Properties</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingFactoryInitial <em>Java Naming Factory Initial</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingProviderUrl <em>Java Naming Provider Url</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityAuthentication <em>Java Naming Security Authentication</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityPrincipal <em>Java Naming Security Principal</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityCredentials <em>Java Naming Security Credentials</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#getJNDIProperties()
+ * @model
+ * @generated
+ */
+public interface JNDIProperties extends EObject
+{
+    /**
+     * Returns the value of the '<em><b>Java Naming Factory Initial</b></em>' attribute.
+     * The default value is <code>"com.sun.jndi.ldap.LdapCtxFactory"</code>.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of the '<em>Java Naming Factory Initial</em>' attribute isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @return the value of the '<em>Java Naming Factory Initial</em>' attribute.
+     * @see #setJavaNamingFactoryInitial(String)
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#getJNDIProperties_JavaNamingFactoryInitial()
+     * @model default="com.sun.jndi.ldap.LdapCtxFactory"
+     * @generated
+     */
+    String getJavaNamingFactoryInitial();
+
+    /**
+     * Sets the value of the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingFactoryInitial <em>Java Naming Factory Initial</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param value the new value of the '<em>Java Naming Factory Initial</em>' attribute.
+     * @see #getJavaNamingFactoryInitial()
+     * @generated
+     */
+    void setJavaNamingFactoryInitial(String value);
+
+    /**
+     * Returns the value of the '<em><b>Java Naming Provider Url</b></em>' attribute.
+     * The default value is <code>"ldap://localhost:10389/ou=system"</code>.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of the '<em>Java Naming Provider Url</em>' attribute isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @return the value of the '<em>Java Naming Provider Url</em>' attribute.
+     * @see #setJavaNamingProviderUrl(String)
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#getJNDIProperties_JavaNamingProviderUrl()
+     * @model default="ldap://localhost:10389/ou=system"
+     * @generated
+     */
+    String getJavaNamingProviderUrl();
+
+    /**
+     * Sets the value of the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingProviderUrl <em>Java Naming Provider Url</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param value the new value of the '<em>Java Naming Provider Url</em>' attribute.
+     * @see #getJavaNamingProviderUrl()
+     * @generated
+     */
+    void setJavaNamingProviderUrl(String value);
+
+    /**
+     * Returns the value of the '<em><b>Java Naming Security Authentication</b></em>' attribute.
+     * The default value is <code>"simple"</code>.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of the '<em>Java Naming Security Authentication</em>' attribute isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @return the value of the '<em>Java Naming Security Authentication</em>' attribute.
+     * @see #setJavaNamingSecurityAuthentication(String)
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#getJNDIProperties_JavaNamingSecurityAuthentication()
+     * @model default="simple"
+     * @generated
+     */
+    String getJavaNamingSecurityAuthentication();
+
+    /**
+     * Sets the value of the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityAuthentication <em>Java Naming Security Authentication</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param value the new value of the '<em>Java Naming Security Authentication</em>' attribute.
+     * @see #getJavaNamingSecurityAuthentication()
+     * @generated
+     */
+    void setJavaNamingSecurityAuthentication(String value);
+
+    /**
+     * Returns the value of the '<em><b>Java Naming Security Principal</b></em>' attribute.
+     * The default value is <code>"uid=admin,ou=system"</code>.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of the '<em>Java Naming Security Principal</em>' attribute isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @return the value of the '<em>Java Naming Security Principal</em>' attribute.
+     * @see #setJavaNamingSecurityPrincipal(String)
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#getJNDIProperties_JavaNamingSecurityPrincipal()
+     * @model default="uid=admin,ou=system"
+     * @generated
+     */
+    String getJavaNamingSecurityPrincipal();
+
+    /**
+     * Sets the value of the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityPrincipal <em>Java Naming Security Principal</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param value the new value of the '<em>Java Naming Security Principal</em>' attribute.
+     * @see #getJavaNamingSecurityPrincipal()
+     * @generated
+     */
+    void setJavaNamingSecurityPrincipal(String value);
+
+    /**
+     * Returns the value of the '<em><b>Java Naming Security Credentials</b></em>' attribute.
+     * The default value is <code>"secret"</code>.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of the '<em>Java Naming Security Credentials</em>' attribute isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @return the value of the '<em>Java Naming Security Credentials</em>' attribute.
+     * @see #setJavaNamingSecurityCredentials(String)
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#getJNDIProperties_JavaNamingSecurityCredentials()
+     * @model default="secret"
+     * @generated
+     */
+    String getJavaNamingSecurityCredentials();
+
+    /**
+     * Sets the value of the '{@link org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties#getJavaNamingSecurityCredentials <em>Java Naming Security Credentials</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param value the new value of the '<em>Java Naming Security Credentials</em>' attribute.
+     * @see #getJavaNamingSecurityCredentials()
+     * @generated
+     */
+    void setJavaNamingSecurityCredentials(String value);
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @model dataType="org.apache.tuscany.das.ldap.configuration.model.v100.DirContext" unique="false" exceptions="org.apache.tuscany.das.ldap.configuration.model.v100.NamingException"
+     *        annotation="http://www.eclipse.org/emf/2002/GenModel body='        <%java.util.Hashtable%><String,String> env = new Hashtable<String, String>();\n        \n        env.put( \n            <%org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys%>.JAVA_NAMING_FACTORY_INITIAL_KEY.toString(), \n            this.javaNamingFactoryInitial );\n        env.put( \n            JNDIEnvironmentKeys.JAVA_NAMING_PROVIDER_URL_KEY.toString(), \n            this.javaNamingProviderUrl );\n        env.put( \n            JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_AUTHENTICATION_KEY.toString(), \n            this.javaNamingSecurityAuthentication );\n        env.put( \n            JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_PRINCIPAL_KEY.toString(), \n            this.javaNamingSecurityPrincipal );\n        env.put( \n            JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_CREDENTIALS_KEY.toString(), \n            this.javaNamingSecurityCredentials );\n        \n        ret
 urn new <%javax.naming.directory.InitialDirContext%>(env);'"
+     * @generated
+     */
+    DirContext connect() throws NamingException;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @model exceptions="org.apache.tuscany.das.ldap.configuration.model.v100.NamingException" dirContextDataType="org.apache.tuscany.das.ldap.configuration.model.v100.DirContext"
+     *        annotation="http://www.eclipse.org/emf/2002/GenModel body='dirContext.close();'"
+     * @generated
+     */
+    void disconnect(DirContext dirContext) throws NamingException;
+
+} // JNDIProperties

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigImpl.java?view=auto&rev=529293
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigImpl.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigImpl.java Mon Apr 16 08:43:15 2007
@@ -0,0 +1,419 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.impl;
+
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig;
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>DAS Config</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl#getGenModelName <em>Gen Model Name</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl#getRepositoryBase <em>Repository Base</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl#getJarName <em>Jar Name</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl#getEPackageNsURI <em>EPackage Ns URI</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.ldap.configuration.model.v100.impl.DASConfigImpl#getEPackageNsPrefix <em>EPackage Ns Prefix</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DASConfigImpl extends EObjectImpl implements DASConfig
+{
+    /**
+     * The default value of the '{@link #getGenModelName() <em>Gen Model Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGenModelName()
+     * @generated
+     * @ordered
+     */
+    protected static final String GEN_MODEL_NAME_EDEFAULT = "model.genmodel";
+
+    /**
+     * The cached value of the '{@link #getGenModelName() <em>Gen Model Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGenModelName()
+     * @generated
+     * @ordered
+     */
+    protected String genModelName = GEN_MODEL_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getRepositoryBase() <em>Repository Base</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRepositoryBase()
+     * @generated
+     * @ordered
+     */
+    protected static final String REPOSITORY_BASE_EDEFAULT = "/usr/share/java";
+
+    /**
+     * The cached value of the '{@link #getRepositoryBase() <em>Repository Base</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getRepositoryBase()
+     * @generated
+     * @ordered
+     */
+    protected String repositoryBase = REPOSITORY_BASE_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getJarName() <em>Jar Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getJarName()
+     * @generated
+     * @ordered
+     */
+    protected static final String JAR_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getJarName() <em>Jar Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getJarName()
+     * @generated
+     * @ordered
+     */
+    protected String jarName = JAR_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getEPackageNsURI() <em>EPackage Ns URI</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEPackageNsURI()
+     * @generated
+     * @ordered
+     */
+    protected static final String EPACKAGE_NS_URI_EDEFAULT = "ou=example, ou=com";
+
+    /**
+     * The cached value of the '{@link #getEPackageNsURI() <em>EPackage Ns URI</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEPackageNsURI()
+     * @generated
+     * @ordered
+     */
+    protected String ePackageNsURI = EPACKAGE_NS_URI_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getEPackageNsPrefix() <em>EPackage Ns Prefix</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEPackageNsPrefix()
+     * @generated
+     * @ordered
+     */
+    protected static final String EPACKAGE_NS_PREFIX_EDEFAULT = "ou=example, ou=com";
+
+    /**
+     * The cached value of the '{@link #getEPackageNsPrefix() <em>EPackage Ns Prefix</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEPackageNsPrefix()
+     * @generated
+     * @ordered
+     */
+    protected String ePackageNsPrefix = EPACKAGE_NS_PREFIX_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected DASConfigImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    protected EClass eStaticClass()
+    {
+        return DASLdapModelV100Package.Literals.DAS_CONFIG;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getGenModelName()
+    {
+        return genModelName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setGenModelName(String newGenModelName)
+    {
+        String oldGenModelName = genModelName;
+        genModelName = newGenModelName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, DASLdapModelV100Package.DAS_CONFIG__GEN_MODEL_NAME, oldGenModelName, genModelName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getRepositoryBase()
+    {
+        return repositoryBase;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setRepositoryBase(String newRepositoryBase)
+    {
+        String oldRepositoryBase = repositoryBase;
+        repositoryBase = newRepositoryBase;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, DASLdapModelV100Package.DAS_CONFIG__REPOSITORY_BASE, oldRepositoryBase, repositoryBase));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getJarName()
+    {
+        return jarName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setJarName(String newJarName)
+    {
+        String oldJarName = jarName;
+        jarName = newJarName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, DASLdapModelV100Package.DAS_CONFIG__JAR_NAME, oldJarName, jarName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getEPackageNsURI()
+    {
+        return ePackageNsURI;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEPackageNsURI(String newEPackageNsURI)
+    {
+        String oldEPackageNsURI = ePackageNsURI;
+        ePackageNsURI = newEPackageNsURI;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_URI, oldEPackageNsURI, ePackageNsURI));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getEPackageNsPrefix()
+    {
+        return ePackageNsPrefix;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEPackageNsPrefix(String newEPackageNsPrefix)
+    {
+        String oldEPackageNsPrefix = ePackageNsPrefix;
+        ePackageNsPrefix = newEPackageNsPrefix;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_PREFIX, oldEPackageNsPrefix, ePackageNsPrefix));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Resource loadGeneratorModel()
+    {
+        // TODO: implement this method
+        // Ensure that you remove @generated or mark it @generated NOT
+        throw new UnsupportedOperationException();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object eGet(int featureID, boolean resolve, boolean coreType)
+    {
+        switch (featureID)
+        {
+            case DASLdapModelV100Package.DAS_CONFIG__GEN_MODEL_NAME:
+                return getGenModelName();
+            case DASLdapModelV100Package.DAS_CONFIG__REPOSITORY_BASE:
+                return getRepositoryBase();
+            case DASLdapModelV100Package.DAS_CONFIG__JAR_NAME:
+                return getJarName();
+            case DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_URI:
+                return getEPackageNsURI();
+            case DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_PREFIX:
+                return getEPackageNsPrefix();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eSet(int featureID, Object newValue)
+    {
+        switch (featureID)
+        {
+            case DASLdapModelV100Package.DAS_CONFIG__GEN_MODEL_NAME:
+                setGenModelName((String)newValue);
+                return;
+            case DASLdapModelV100Package.DAS_CONFIG__REPOSITORY_BASE:
+                setRepositoryBase((String)newValue);
+                return;
+            case DASLdapModelV100Package.DAS_CONFIG__JAR_NAME:
+                setJarName((String)newValue);
+                return;
+            case DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_URI:
+                setEPackageNsURI((String)newValue);
+                return;
+            case DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_PREFIX:
+                setEPackageNsPrefix((String)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eUnset(int featureID)
+    {
+        switch (featureID)
+        {
+            case DASLdapModelV100Package.DAS_CONFIG__GEN_MODEL_NAME:
+                setGenModelName(GEN_MODEL_NAME_EDEFAULT);
+                return;
+            case DASLdapModelV100Package.DAS_CONFIG__REPOSITORY_BASE:
+                setRepositoryBase(REPOSITORY_BASE_EDEFAULT);
+                return;
+            case DASLdapModelV100Package.DAS_CONFIG__JAR_NAME:
+                setJarName(JAR_NAME_EDEFAULT);
+                return;
+            case DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_URI:
+                setEPackageNsURI(EPACKAGE_NS_URI_EDEFAULT);
+                return;
+            case DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_PREFIX:
+                setEPackageNsPrefix(EPACKAGE_NS_PREFIX_EDEFAULT);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public boolean eIsSet(int featureID)
+    {
+        switch (featureID)
+        {
+            case DASLdapModelV100Package.DAS_CONFIG__GEN_MODEL_NAME:
+                return GEN_MODEL_NAME_EDEFAULT == null ? genModelName != null : !GEN_MODEL_NAME_EDEFAULT.equals(genModelName);
+            case DASLdapModelV100Package.DAS_CONFIG__REPOSITORY_BASE:
+                return REPOSITORY_BASE_EDEFAULT == null ? repositoryBase != null : !REPOSITORY_BASE_EDEFAULT.equals(repositoryBase);
+            case DASLdapModelV100Package.DAS_CONFIG__JAR_NAME:
+                return JAR_NAME_EDEFAULT == null ? jarName != null : !JAR_NAME_EDEFAULT.equals(jarName);
+            case DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_URI:
+                return EPACKAGE_NS_URI_EDEFAULT == null ? ePackageNsURI != null : !EPACKAGE_NS_URI_EDEFAULT.equals(ePackageNsURI);
+            case DASLdapModelV100Package.DAS_CONFIG__EPACKAGE_NS_PREFIX:
+                return EPACKAGE_NS_PREFIX_EDEFAULT == null ? ePackageNsPrefix != null : !EPACKAGE_NS_PREFIX_EDEFAULT.equals(ePackageNsPrefix);
+        }
+        return super.eIsSet(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public String toString()
+    {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (genModelName: ");
+        result.append(genModelName);
+        result.append(", repositoryBase: ");
+        result.append(repositoryBase);
+        result.append(", jarName: ");
+        result.append(jarName);
+        result.append(", ePackageNsURI: ");
+        result.append(ePackageNsURI);
+        result.append(", ePackageNsPrefix: ");
+        result.append(ePackageNsPrefix);
+        result.append(')');
+        return result.toString();
+    }
+
+} //DASConfigImpl

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.java?view=auto&rev=529293
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.java Mon Apr 16 08:43:15 2007
@@ -0,0 +1,205 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.impl;
+
+import javax.naming.directory.DirContext;
+
+import org.apache.tuscany.das.ldap.configuration.model.v100.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DASLdapModelV100FactoryImpl extends EFactoryImpl implements DASLdapModelV100Factory
+{
+    /**
+     * Creates the default factory implementation.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static DASLdapModelV100Factory init()
+    {
+        try
+        {
+            DASLdapModelV100Factory theDASLdapModelV100Factory = (DASLdapModelV100Factory)EPackage.Registry.INSTANCE.getEFactory("http://org.apache.tuscany/das.ldap.configuration.model.ecore.v100"); 
+            if (theDASLdapModelV100Factory != null)
+            {
+                return theDASLdapModelV100Factory;
+            }
+        }
+        catch (Exception exception)
+        {
+            EcorePlugin.INSTANCE.log(exception);
+        }
+        return new DASLdapModelV100FactoryImpl();
+    }
+
+    /**
+     * Creates an instance of the factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DASLdapModelV100FactoryImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public EObject create(EClass eClass)
+    {
+        switch (eClass.getClassifierID())
+        {
+            case DASLdapModelV100Package.JNDI_PROPERTIES: return createJNDIProperties();
+            case DASLdapModelV100Package.DAS_CONFIG: return createDASConfig();
+            default:
+                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+        }
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object createFromString(EDataType eDataType, String initialValue)
+    {
+        switch (eDataType.getClassifierID())
+        {
+            case DASLdapModelV100Package.JNDI_ENVIRONMENT_KEYS:
+                return createJNDIEnvironmentKeysFromString(eDataType, initialValue);
+            case DASLdapModelV100Package.DIR_CONTEXT:
+                return createDirContextFromString(eDataType, initialValue);
+            default:
+                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+        }
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public String convertToString(EDataType eDataType, Object instanceValue)
+    {
+        switch (eDataType.getClassifierID())
+        {
+            case DASLdapModelV100Package.JNDI_ENVIRONMENT_KEYS:
+                return convertJNDIEnvironmentKeysToString(eDataType, instanceValue);
+            case DASLdapModelV100Package.DIR_CONTEXT:
+                return convertDirContextToString(eDataType, instanceValue);
+            default:
+                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+        }
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public JNDIProperties createJNDIProperties()
+    {
+        JNDIPropertiesImpl jndiProperties = new JNDIPropertiesImpl();
+        return jndiProperties;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DASConfig createDASConfig()
+    {
+        DASConfigImpl dasConfig = new DASConfigImpl();
+        return dasConfig;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public JNDIEnvironmentKeys createJNDIEnvironmentKeysFromString(EDataType eDataType, String initialValue)
+    {
+        JNDIEnvironmentKeys result = JNDIEnvironmentKeys.get(initialValue);
+        if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+        return result;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String convertJNDIEnvironmentKeysToString(EDataType eDataType, Object instanceValue)
+    {
+        return instanceValue == null ? null : instanceValue.toString();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DirContext createDirContextFromString(EDataType eDataType, String initialValue)
+    {
+        return (DirContext)super.createFromString(eDataType, initialValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String convertDirContextToString(EDataType eDataType, Object instanceValue)
+    {
+        return super.convertToString(eDataType, instanceValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DASLdapModelV100Package getDASLdapModelV100Package()
+    {
+        return (DASLdapModelV100Package)getEPackage();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @deprecated
+     * @generated
+     */
+    @Deprecated
+    public static DASLdapModelV100Package getPackage()
+    {
+        return DASLdapModelV100Package.eINSTANCE;
+    }
+
+} //DASLdapModelV100FactoryImpl

Added: directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java?view=auto&rev=529293
==============================================================================
--- directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java (added)
+++ directory/sandbox/oersoy/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java Mon Apr 16 08:43:15 2007
@@ -0,0 +1,442 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.impl;
+
+import javax.naming.NamingException;
+
+import javax.naming.directory.DirContext;
+
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASConfig;
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Factory;
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package;
+import org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys;
+import org.apache.tuscany.das.ldap.configuration.model.v100.JNDIProperties;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EOperation;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DASLdapModelV100PackageImpl extends EPackageImpl implements DASLdapModelV100Package
+{
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass jndiPropertiesEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass dasConfigEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EEnum jndiEnvironmentKeysEEnum = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EDataType namingExceptionEDataType = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EDataType dirContextEDataType = 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.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#eNS_URI
+     * @see #init()
+     * @generated
+     */
+    private DASLdapModelV100PackageImpl()
+    {
+        super(eNS_URI, DASLdapModelV100Factory.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 DASLdapModelV100Package init()
+    {
+        if (isInited) return (DASLdapModelV100Package)EPackage.Registry.INSTANCE.getEPackage(DASLdapModelV100Package.eNS_URI);
+
+        // Obtain or create and register package
+        DASLdapModelV100PackageImpl theDASLdapModelV100Package = (DASLdapModelV100PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof DASLdapModelV100PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new DASLdapModelV100PackageImpl());
+
+        isInited = true;
+
+        // Create package meta-data objects
+        theDASLdapModelV100Package.createPackageContents();
+
+        // Initialize created meta-data
+        theDASLdapModelV100Package.initializePackageContents();
+
+        // Mark meta-data to indicate it can't be changed
+        theDASLdapModelV100Package.freeze();
+
+        return theDASLdapModelV100Package;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getJNDIProperties()
+    {
+        return jndiPropertiesEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getJNDIProperties_JavaNamingFactoryInitial()
+    {
+        return (EAttribute)jndiPropertiesEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getJNDIProperties_JavaNamingProviderUrl()
+    {
+        return (EAttribute)jndiPropertiesEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getJNDIProperties_JavaNamingSecurityAuthentication()
+    {
+        return (EAttribute)jndiPropertiesEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getJNDIProperties_JavaNamingSecurityPrincipal()
+    {
+        return (EAttribute)jndiPropertiesEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getJNDIProperties_JavaNamingSecurityCredentials()
+    {
+        return (EAttribute)jndiPropertiesEClass.getEStructuralFeatures().get(4);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getDASConfig()
+    {
+        return dasConfigEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfig_GenModelName()
+    {
+        return (EAttribute)dasConfigEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfig_RepositoryBase()
+    {
+        return (EAttribute)dasConfigEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfig_JarName()
+    {
+        return (EAttribute)dasConfigEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfig_EPackageNsURI()
+    {
+        return (EAttribute)dasConfigEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfig_EPackageNsPrefix()
+    {
+        return (EAttribute)dasConfigEClass.getEStructuralFeatures().get(4);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EEnum getJNDIEnvironmentKeys()
+    {
+        return jndiEnvironmentKeysEEnum;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EDataType getNamingException()
+    {
+        return namingExceptionEDataType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EDataType getDirContext()
+    {
+        return dirContextEDataType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DASLdapModelV100Factory getDASLdapModelV100Factory()
+    {
+        return (DASLdapModelV100Factory)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
+        jndiPropertiesEClass = createEClass(JNDI_PROPERTIES);
+        createEAttribute(jndiPropertiesEClass, JNDI_PROPERTIES__JAVA_NAMING_FACTORY_INITIAL);
+        createEAttribute(jndiPropertiesEClass, JNDI_PROPERTIES__JAVA_NAMING_PROVIDER_URL);
+        createEAttribute(jndiPropertiesEClass, JNDI_PROPERTIES__JAVA_NAMING_SECURITY_AUTHENTICATION);
+        createEAttribute(jndiPropertiesEClass, JNDI_PROPERTIES__JAVA_NAMING_SECURITY_PRINCIPAL);
+        createEAttribute(jndiPropertiesEClass, JNDI_PROPERTIES__JAVA_NAMING_SECURITY_CREDENTIALS);
+
+        dasConfigEClass = createEClass(DAS_CONFIG);
+        createEAttribute(dasConfigEClass, DAS_CONFIG__GEN_MODEL_NAME);
+        createEAttribute(dasConfigEClass, DAS_CONFIG__REPOSITORY_BASE);
+        createEAttribute(dasConfigEClass, DAS_CONFIG__JAR_NAME);
+        createEAttribute(dasConfigEClass, DAS_CONFIG__EPACKAGE_NS_URI);
+        createEAttribute(dasConfigEClass, DAS_CONFIG__EPACKAGE_NS_PREFIX);
+
+        // Create enums
+        jndiEnvironmentKeysEEnum = createEEnum(JNDI_ENVIRONMENT_KEYS);
+
+        // Create data types
+        namingExceptionEDataType = createEDataType(NAMING_EXCEPTION);
+        dirContextEDataType = createEDataType(DIR_CONTEXT);
+    }
+
+    /**
+     * <!-- 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);
+
+        // Create type parameters
+
+        // Set bounds for type parameters
+
+        // Add supertypes to classes
+
+        // Initialize classes and features; add operations and parameters
+        initEClass(jndiPropertiesEClass, JNDIProperties.class, "JNDIProperties", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getJNDIProperties_JavaNamingFactoryInitial(), ecorePackage.getEString(), "javaNamingFactoryInitial", "com.sun.jndi.ldap.LdapCtxFactory", 0, 1, JNDIProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getJNDIProperties_JavaNamingProviderUrl(), ecorePackage.getEString(), "javaNamingProviderUrl", "ldap://localhost:10389/ou=system", 0, 1, JNDIProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getJNDIProperties_JavaNamingSecurityAuthentication(), ecorePackage.getEString(), "javaNamingSecurityAuthentication", "simple", 0, 1, JNDIProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getJNDIProperties_JavaNamingSecurityPrincipal(), ecorePackage.getEString(), "javaNamingSecurityPrincipal", "uid=admin,ou=system", 0, 1, JNDIProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getJNDIProperties_JavaNamingSecurityCredentials(), ecorePackage.getEString(), "javaNamingSecurityCredentials", "secret", 0, 1, JNDIProperties.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        EOperation op = addEOperation(jndiPropertiesEClass, this.getDirContext(), "connect", 0, 1);
+        addEException(op, this.getNamingException());
+
+        op = addEOperation(jndiPropertiesEClass, null, "disconnect");
+        addEParameter(op, this.getDirContext(), "dirContext", 0, 1);
+        addEException(op, this.getNamingException());
+
+        initEClass(dasConfigEClass, DASConfig.class, "DASConfig", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getDASConfig_GenModelName(), ecorePackage.getEString(), "genModelName", "model.genmodel", 0, 1, DASConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfig_RepositoryBase(), ecorePackage.getEString(), "repositoryBase", "/usr/share/java", 0, 1, DASConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfig_JarName(), ecorePackage.getEString(), "jarName", null, 0, 1, DASConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfig_EPackageNsURI(), ecorePackage.getEString(), "ePackageNsURI", "ou=example, ou=com", 0, 1, DASConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfig_EPackageNsPrefix(), ecorePackage.getEString(), "ePackageNsPrefix", "ou=example, ou=com", 0, 1, DASConfig.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        addEOperation(dasConfigEClass, ecorePackage.getEResource(), "loadGeneratorModel", 0, 1);
+
+        // Initialize enums and add enum literals
+        initEEnum(jndiEnvironmentKeysEEnum, JNDIEnvironmentKeys.class, "JNDIEnvironmentKeys");
+        addEEnumLiteral(jndiEnvironmentKeysEEnum, JNDIEnvironmentKeys.JAVA_NAMING_FACTORY_INITIAL_KEY);
+        addEEnumLiteral(jndiEnvironmentKeysEEnum, JNDIEnvironmentKeys.JAVA_NAMING_PROVIDER_URL_KEY);
+        addEEnumLiteral(jndiEnvironmentKeysEEnum, JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_AUTHENTICATION_KEY);
+        addEEnumLiteral(jndiEnvironmentKeysEEnum, JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_PRINCIPAL_KEY);
+        addEEnumLiteral(jndiEnvironmentKeysEEnum, JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_CREDENTIALS_KEY);
+
+        // Initialize data types
+        initEDataType(namingExceptionEDataType, NamingException.class, "NamingException", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+        initEDataType(dirContextEDataType, DirContext.class, "DirContext", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+
+        // Create resource
+        createResource(eNS_URI);
+
+        // Create annotations
+        // http://www.eclipse.org/emf/2002/GenModel
+        createGenModelAnnotations();
+    }
+
+    /**
+     * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/GenModel</b>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected void createGenModelAnnotations()
+    {
+        String source = "http://www.eclipse.org/emf/2002/GenModel";		
+        addAnnotation
+          (jndiPropertiesEClass.getEOperations().get(0), 
+           source, 
+           new String[] 
+           {
+             "body", "        <%java.util.Hashtable%><String,String> env = new Hashtable<String, String>();\n        \n        env.put( \n            <%org.apache.tuscany.das.ldap.configuration.model.v100.JNDIEnvironmentKeys%>.JAVA_NAMING_FACTORY_INITIAL_KEY.toString(), \n            this.javaNamingFactoryInitial );\n        env.put( \n            JNDIEnvironmentKeys.JAVA_NAMING_PROVIDER_URL_KEY.toString(), \n            this.javaNamingProviderUrl );\n        env.put( \n            JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_AUTHENTICATION_KEY.toString(), \n            this.javaNamingSecurityAuthentication );\n        env.put( \n            JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_PRINCIPAL_KEY.toString(), \n            this.javaNamingSecurityPrincipal );\n        env.put( \n            JNDIEnvironmentKeys.JAVA_NAMING_SECURITY_CREDENTIALS_KEY.toString(), \n            this.javaNamingSecurityCredentials );\n        \n        return new <%javax.naming.directory.InitialDirContext%
 >(env);"
+           });		
+        addAnnotation
+          (jndiPropertiesEClass.getEOperations().get(1), 
+           source, 
+           new String[] 
+           {
+             "body", "dirContext.close();"
+           });
+    }
+
+} //DASLdapModelV100PackageImpl



Mime
View raw message