tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r562520 [2/10] - in /incubator/tuscany/java/das/ldap: ./ das.ldap.configuration.model.ecore.v100/ das.ldap.configuration.model.ecore.v100/model/ das.ldap.configuration.model.ecore.v100/src/ das.ldap.configuration.model.v100/ das.ldap.config...
Date Fri, 03 Aug 2007 16:40:19 GMT
Added: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,692 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.impl;
+
+import org.apache.tuscany.model.Configuration;
+
+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.sdo.impl.EDataObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getHost <em>Host</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getPort <em>Port</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getInitialContextFactory <em>Initial Context Factory</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getDasPartitionName <em>Das Partition Name</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getSchemaPartitionName <em>Schema Partition Name</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getSecurityPrincipal <em>Security Principal</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getSecurityAuthenticationType <em>Security Authentication Type</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getSecurityCredentials <em>Security Credentials</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#getNlog4jConfigurationFilePath <em>Nlog4j Configuration File Path</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.ConfigurationImpl#isEmbedded <em>Embedded</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ConfigurationImpl extends EDataObjectImpl implements Configuration
+{
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * The default value of the '{@link #getHost() <em>Host</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getHost()
+     * @generated
+     * @ordered
+     */
+    protected static final String HOST_EDEFAULT = "localhost";
+
+    /**
+     * The cached value of the '{@link #getHost() <em>Host</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getHost()
+     * @generated
+     * @ordered
+     */
+    protected String host = HOST_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getPort() <em>Port</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPort()
+     * @generated
+     * @ordered
+     */
+    protected static final String PORT_EDEFAULT = "10389";
+
+    /**
+     * The cached value of the '{@link #getPort() <em>Port</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPort()
+     * @generated
+     * @ordered
+     */
+    protected String port = PORT_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getInitialContextFactory() <em>Initial Context Factory</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getInitialContextFactory()
+     * @generated
+     * @ordered
+     */
+    protected static final String INITIAL_CONTEXT_FACTORY_EDEFAULT = "org.apache.directory.server.core.jndi.CoreContextFactory";
+
+    /**
+     * The cached value of the '{@link #getInitialContextFactory() <em>Initial Context Factory</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getInitialContextFactory()
+     * @generated
+     * @ordered
+     */
+    protected String initialContextFactory = INITIAL_CONTEXT_FACTORY_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getDasPartitionName() <em>Das Partition Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getDasPartitionName()
+     * @generated
+     * @ordered
+     */
+    protected static final String DAS_PARTITION_NAME_EDEFAULT = "das";
+
+    /**
+     * The cached value of the '{@link #getDasPartitionName() <em>Das Partition Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getDasPartitionName()
+     * @generated
+     * @ordered
+     */
+    protected String dasPartitionName = DAS_PARTITION_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getSchemaPartitionName() <em>Schema Partition Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSchemaPartitionName()
+     * @generated
+     * @ordered
+     */
+    protected static final String SCHEMA_PARTITION_NAME_EDEFAULT = "schema";
+
+    /**
+     * The cached value of the '{@link #getSchemaPartitionName() <em>Schema Partition Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSchemaPartitionName()
+     * @generated
+     * @ordered
+     */
+    protected String schemaPartitionName = SCHEMA_PARTITION_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getSecurityPrincipal() <em>Security Principal</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSecurityPrincipal()
+     * @generated
+     * @ordered
+     */
+    protected static final String SECURITY_PRINCIPAL_EDEFAULT = "uid=admin,ou=system";
+
+    /**
+     * The cached value of the '{@link #getSecurityPrincipal() <em>Security Principal</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSecurityPrincipal()
+     * @generated
+     * @ordered
+     */
+    protected String securityPrincipal = SECURITY_PRINCIPAL_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getSecurityAuthenticationType() <em>Security Authentication Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSecurityAuthenticationType()
+     * @generated
+     * @ordered
+     */
+    protected static final String SECURITY_AUTHENTICATION_TYPE_EDEFAULT = "simple";
+
+    /**
+     * The cached value of the '{@link #getSecurityAuthenticationType() <em>Security Authentication Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSecurityAuthenticationType()
+     * @generated
+     * @ordered
+     */
+    protected String securityAuthenticationType = SECURITY_AUTHENTICATION_TYPE_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getSecurityCredentials() <em>Security Credentials</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSecurityCredentials()
+     * @generated
+     * @ordered
+     */
+    protected static final String SECURITY_CREDENTIALS_EDEFAULT = "secret";
+
+    /**
+     * The cached value of the '{@link #getSecurityCredentials() <em>Security Credentials</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSecurityCredentials()
+     * @generated
+     * @ordered
+     */
+    protected String securityCredentials = SECURITY_CREDENTIALS_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getNlog4jConfigurationFilePath() <em>Nlog4j Configuration File Path</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getNlog4jConfigurationFilePath()
+     * @generated
+     * @ordered
+     */
+    protected static final String NLOG4J_CONFIGURATION_FILE_PATH_EDEFAULT = "src/test/resources/log4j.properties";
+
+    /**
+     * The cached value of the '{@link #getNlog4jConfigurationFilePath() <em>Nlog4j Configuration File Path</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getNlog4jConfigurationFilePath()
+     * @generated
+     * @ordered
+     */
+    protected String nlog4jConfigurationFilePath = NLOG4J_CONFIGURATION_FILE_PATH_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #isEmbedded() <em>Embedded</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #isEmbedded()
+     * @generated
+     * @ordered
+     */
+    protected static final boolean EMBEDDED_EDEFAULT = false;
+
+    /**
+     * The cached value of the '{@link #isEmbedded() <em>Embedded</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #isEmbedded()
+     * @generated
+     * @ordered
+     */
+    protected boolean embedded = EMBEDDED_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected ConfigurationImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    protected EClass eStaticClass()
+    {
+        return ConfigurationPackageImpl.Literals.CONFIGURATION;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getHost()
+    {
+        return host;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setHost(String newHost)
+    {
+        String oldHost = host;
+        host = newHost;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__HOST, oldHost, host));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getPort()
+    {
+        return port;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setPort(String newPort)
+    {
+        String oldPort = port;
+        port = newPort;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__PORT, oldPort, port));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getInitialContextFactory()
+    {
+        return initialContextFactory;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setInitialContextFactory(String newInitialContextFactory)
+    {
+        String oldInitialContextFactory = initialContextFactory;
+        initialContextFactory = newInitialContextFactory;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__INITIAL_CONTEXT_FACTORY, oldInitialContextFactory, initialContextFactory));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getDasPartitionName()
+    {
+        return dasPartitionName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setDasPartitionName(String newDasPartitionName)
+    {
+        String oldDasPartitionName = dasPartitionName;
+        dasPartitionName = newDasPartitionName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__DAS_PARTITION_NAME, oldDasPartitionName, dasPartitionName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSchemaPartitionName()
+    {
+        return schemaPartitionName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSchemaPartitionName(String newSchemaPartitionName)
+    {
+        String oldSchemaPartitionName = schemaPartitionName;
+        schemaPartitionName = newSchemaPartitionName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__SCHEMA_PARTITION_NAME, oldSchemaPartitionName, schemaPartitionName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSecurityPrincipal()
+    {
+        return securityPrincipal;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSecurityPrincipal(String newSecurityPrincipal)
+    {
+        String oldSecurityPrincipal = securityPrincipal;
+        securityPrincipal = newSecurityPrincipal;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__SECURITY_PRINCIPAL, oldSecurityPrincipal, securityPrincipal));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSecurityAuthenticationType()
+    {
+        return securityAuthenticationType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSecurityAuthenticationType(String newSecurityAuthenticationType)
+    {
+        String oldSecurityAuthenticationType = securityAuthenticationType;
+        securityAuthenticationType = newSecurityAuthenticationType;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__SECURITY_AUTHENTICATION_TYPE, oldSecurityAuthenticationType, securityAuthenticationType));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSecurityCredentials()
+    {
+        return securityCredentials;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSecurityCredentials(String newSecurityCredentials)
+    {
+        String oldSecurityCredentials = securityCredentials;
+        securityCredentials = newSecurityCredentials;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__SECURITY_CREDENTIALS, oldSecurityCredentials, securityCredentials));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getNlog4jConfigurationFilePath()
+    {
+        return nlog4jConfigurationFilePath;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setNlog4jConfigurationFilePath(String newNlog4jConfigurationFilePath)
+    {
+        String oldNlog4jConfigurationFilePath = nlog4jConfigurationFilePath;
+        nlog4jConfigurationFilePath = newNlog4jConfigurationFilePath;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH, oldNlog4jConfigurationFilePath, nlog4jConfigurationFilePath));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean isEmbedded()
+    {
+        return embedded;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEmbedded(boolean newEmbedded)
+    {
+        boolean oldEmbedded = embedded;
+        embedded = newEmbedded;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__EMBEDDED, oldEmbedded, embedded));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object eGet(int featureID, boolean resolve, boolean coreType)
+    {
+        switch (featureID)
+        {
+            case ConfigurationPackageImpl.CONFIGURATION__HOST:
+                return getHost();
+            case ConfigurationPackageImpl.CONFIGURATION__PORT:
+                return getPort();
+            case ConfigurationPackageImpl.CONFIGURATION__INITIAL_CONTEXT_FACTORY:
+                return getInitialContextFactory();
+            case ConfigurationPackageImpl.CONFIGURATION__DAS_PARTITION_NAME:
+                return getDasPartitionName();
+            case ConfigurationPackageImpl.CONFIGURATION__SCHEMA_PARTITION_NAME:
+                return getSchemaPartitionName();
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_PRINCIPAL:
+                return getSecurityPrincipal();
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_AUTHENTICATION_TYPE:
+                return getSecurityAuthenticationType();
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_CREDENTIALS:
+                return getSecurityCredentials();
+            case ConfigurationPackageImpl.CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH:
+                return getNlog4jConfigurationFilePath();
+            case ConfigurationPackageImpl.CONFIGURATION__EMBEDDED:
+                return isEmbedded() ? Boolean.TRUE : Boolean.FALSE;
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eSet(int featureID, Object newValue)
+    {
+        switch (featureID)
+        {
+            case ConfigurationPackageImpl.CONFIGURATION__HOST:
+                setHost((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__PORT:
+                setPort((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__INITIAL_CONTEXT_FACTORY:
+                setInitialContextFactory((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__DAS_PARTITION_NAME:
+                setDasPartitionName((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__SCHEMA_PARTITION_NAME:
+                setSchemaPartitionName((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_PRINCIPAL:
+                setSecurityPrincipal((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_AUTHENTICATION_TYPE:
+                setSecurityAuthenticationType((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_CREDENTIALS:
+                setSecurityCredentials((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH:
+                setNlog4jConfigurationFilePath((String)newValue);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__EMBEDDED:
+                setEmbedded(((Boolean)newValue).booleanValue());
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eUnset(int featureID)
+    {
+        switch (featureID)
+        {
+            case ConfigurationPackageImpl.CONFIGURATION__HOST:
+                setHost(HOST_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__PORT:
+                setPort(PORT_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__INITIAL_CONTEXT_FACTORY:
+                setInitialContextFactory(INITIAL_CONTEXT_FACTORY_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__DAS_PARTITION_NAME:
+                setDasPartitionName(DAS_PARTITION_NAME_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__SCHEMA_PARTITION_NAME:
+                setSchemaPartitionName(SCHEMA_PARTITION_NAME_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_PRINCIPAL:
+                setSecurityPrincipal(SECURITY_PRINCIPAL_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_AUTHENTICATION_TYPE:
+                setSecurityAuthenticationType(SECURITY_AUTHENTICATION_TYPE_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_CREDENTIALS:
+                setSecurityCredentials(SECURITY_CREDENTIALS_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH:
+                setNlog4jConfigurationFilePath(NLOG4J_CONFIGURATION_FILE_PATH_EDEFAULT);
+                return;
+            case ConfigurationPackageImpl.CONFIGURATION__EMBEDDED:
+                setEmbedded(EMBEDDED_EDEFAULT);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public boolean eIsSet(int featureID)
+    {
+        switch (featureID)
+        {
+            case ConfigurationPackageImpl.CONFIGURATION__HOST:
+                return HOST_EDEFAULT == null ? host != null : !HOST_EDEFAULT.equals(host);
+            case ConfigurationPackageImpl.CONFIGURATION__PORT:
+                return PORT_EDEFAULT == null ? port != null : !PORT_EDEFAULT.equals(port);
+            case ConfigurationPackageImpl.CONFIGURATION__INITIAL_CONTEXT_FACTORY:
+                return INITIAL_CONTEXT_FACTORY_EDEFAULT == null ? initialContextFactory != null : !INITIAL_CONTEXT_FACTORY_EDEFAULT.equals(initialContextFactory);
+            case ConfigurationPackageImpl.CONFIGURATION__DAS_PARTITION_NAME:
+                return DAS_PARTITION_NAME_EDEFAULT == null ? dasPartitionName != null : !DAS_PARTITION_NAME_EDEFAULT.equals(dasPartitionName);
+            case ConfigurationPackageImpl.CONFIGURATION__SCHEMA_PARTITION_NAME:
+                return SCHEMA_PARTITION_NAME_EDEFAULT == null ? schemaPartitionName != null : !SCHEMA_PARTITION_NAME_EDEFAULT.equals(schemaPartitionName);
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_PRINCIPAL:
+                return SECURITY_PRINCIPAL_EDEFAULT == null ? securityPrincipal != null : !SECURITY_PRINCIPAL_EDEFAULT.equals(securityPrincipal);
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_AUTHENTICATION_TYPE:
+                return SECURITY_AUTHENTICATION_TYPE_EDEFAULT == null ? securityAuthenticationType != null : !SECURITY_AUTHENTICATION_TYPE_EDEFAULT.equals(securityAuthenticationType);
+            case ConfigurationPackageImpl.CONFIGURATION__SECURITY_CREDENTIALS:
+                return SECURITY_CREDENTIALS_EDEFAULT == null ? securityCredentials != null : !SECURITY_CREDENTIALS_EDEFAULT.equals(securityCredentials);
+            case ConfigurationPackageImpl.CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH:
+                return NLOG4J_CONFIGURATION_FILE_PATH_EDEFAULT == null ? nlog4jConfigurationFilePath != null : !NLOG4J_CONFIGURATION_FILE_PATH_EDEFAULT.equals(nlog4jConfigurationFilePath);
+            case ConfigurationPackageImpl.CONFIGURATION__EMBEDDED:
+                return embedded != EMBEDDED_EDEFAULT;
+        }
+        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(" (host: ");
+        result.append(host);
+        result.append(", port: ");
+        result.append(port);
+        result.append(", initialContextFactory: ");
+        result.append(initialContextFactory);
+        result.append(", dasPartitionName: ");
+        result.append(dasPartitionName);
+        result.append(", schemaPartitionName: ");
+        result.append(schemaPartitionName);
+        result.append(", securityPrincipal: ");
+        result.append(securityPrincipal);
+        result.append(", securityAuthenticationType: ");
+        result.append(securityAuthenticationType);
+        result.append(", securityCredentials: ");
+        result.append(securityCredentials);
+        result.append(", nlog4jConfigurationFilePath: ");
+        result.append(nlog4jConfigurationFilePath);
+        result.append(", embedded: ");
+        result.append(embedded);
+        result.append(')');
+        return result.toString();
+    }
+
+} //ConfigurationImpl

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,726 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.impl;
+
+import org.apache.tuscany.model.Configuration;
+import org.apache.tuscany.model.ConfigurationFactory;
+import org.apache.tuscany.model.DASMeta;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+/**
+ * <!-- 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.model.ConfigurationFactory
+ * @model kind="package"
+ * @generated
+ */
+public class ConfigurationPackageImpl extends EPackageImpl
+{
+    /**
+     * The package name.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String eNAME = "model";
+
+    /**
+     * The package namespace URI.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String eNS_URI = "http://org.apache.tuscany/das.ldap.configuration.model.ecore.v100";
+
+    /**
+     * The package namespace name.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final String eNS_PREFIX = "tuscany";
+
+    /**
+     * The singleton instance of the package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public static final ConfigurationPackageImpl eINSTANCE = org.apache.tuscany.model.impl.ConfigurationPackageImpl.init();
+
+    /**
+     * The meta object id for the '{@link org.apache.tuscany.model.impl.ConfigurationImpl <em>Configuration</em>}' class.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see org.apache.tuscany.model.impl.ConfigurationImpl
+     * @see org.apache.tuscany.model.impl.ConfigurationPackageImpl#getConfiguration()
+     * @generated
+     */
+    public static final int CONFIGURATION = 0;
+
+    /**
+     * The feature id for the '<em><b>Host</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__HOST = 0;
+
+    /**
+     * The feature id for the '<em><b>Port</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__PORT = 1;
+
+    /**
+     * The feature id for the '<em><b>Initial Context Factory</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__INITIAL_CONTEXT_FACTORY = 2;
+
+    /**
+     * The feature id for the '<em><b>Das Partition Name</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__DAS_PARTITION_NAME = 3;
+
+    /**
+     * The feature id for the '<em><b>Schema Partition Name</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__SCHEMA_PARTITION_NAME = 4;
+
+    /**
+     * The feature id for the '<em><b>Security Principal</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__SECURITY_PRINCIPAL = 5;
+
+    /**
+     * The feature id for the '<em><b>Security Authentication Type</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__SECURITY_AUTHENTICATION_TYPE = 6;
+
+    /**
+     * The feature id for the '<em><b>Security Credentials</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__SECURITY_CREDENTIALS = 7;
+
+    /**
+     * The feature id for the '<em><b>Nlog4j Configuration File Path</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH = 8;
+
+    /**
+     * The feature id for the '<em><b>Embedded</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION__EMBEDDED = 9;
+
+    /**
+     * The number of structural features of the '<em>Configuration</em>' class.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int CONFIGURATION_FEATURE_COUNT = 10;
+
+    /**
+     * The meta object id for the '{@link org.apache.tuscany.model.impl.DASMetaImpl <em>DAS Meta</em>}' class.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see org.apache.tuscany.model.impl.DASMetaImpl
+     * @see org.apache.tuscany.model.impl.ConfigurationPackageImpl#getDASMeta()
+     * @generated
+     */
+    public static final int DAS_META = 1;
+
+    /**
+     * The feature id for the '<em><b>Supported Schemas</b></em>' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int DAS_META__SUPPORTED_SCHEMAS = 0;
+
+    /**
+     * The feature id for the '<em><b>Id</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int DAS_META__ID = 1;
+
+    /**
+     * The number of structural features of the '<em>DAS Meta</em>' class.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     * @ordered
+     */
+    public static final int DAS_META_FEATURE_COUNT = 2;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass configurationEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass dasMetaEClass = 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.model.impl.ConfigurationPackageImpl#eNS_URI
+     * @see #init()
+     * @generated
+     */
+    private ConfigurationPackageImpl()
+    {
+        super(eNS_URI, ((EFactory)ConfigurationFactory.INSTANCE));
+    }
+
+    /**
+     * <!-- 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 ConfigurationPackageImpl init()
+    {
+        if (isInited) return (ConfigurationPackageImpl)EPackage.Registry.INSTANCE.getEPackage(ConfigurationPackageImpl.eNS_URI);
+
+        // Obtain or create and register package
+        ConfigurationPackageImpl theConfigurationPackageImpl = (ConfigurationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof ConfigurationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ConfigurationPackageImpl());
+
+        isInited = true;
+
+        // Create package meta-data objects
+        theConfigurationPackageImpl.createPackageContents();
+
+        // Initialize created meta-data
+        theConfigurationPackageImpl.initializePackageContents();
+
+        // Mark meta-data to indicate it can't be changed
+        theConfigurationPackageImpl.freeze();
+
+        return theConfigurationPackageImpl;
+    }
+
+
+    /**
+     * Returns the meta object for class '{@link org.apache.tuscany.model.Configuration <em>Configuration</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for class '<em>Configuration</em>'.
+     * @see org.apache.tuscany.model.Configuration
+     * @generated
+     */
+    public EClass getConfiguration()
+    {
+        return configurationEClass;
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getHost <em>Host</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Host</em>'.
+     * @see org.apache.tuscany.model.Configuration#getHost()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_Host()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getPort <em>Port</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Port</em>'.
+     * @see org.apache.tuscany.model.Configuration#getPort()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_Port()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getInitialContextFactory <em>Initial Context Factory</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Initial Context Factory</em>'.
+     * @see org.apache.tuscany.model.Configuration#getInitialContextFactory()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_InitialContextFactory()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getDasPartitionName <em>Das Partition Name</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Das Partition Name</em>'.
+     * @see org.apache.tuscany.model.Configuration#getDasPartitionName()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_DasPartitionName()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getSchemaPartitionName <em>Schema Partition Name</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Schema Partition Name</em>'.
+     * @see org.apache.tuscany.model.Configuration#getSchemaPartitionName()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_SchemaPartitionName()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(4);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getSecurityPrincipal <em>Security Principal</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Security Principal</em>'.
+     * @see org.apache.tuscany.model.Configuration#getSecurityPrincipal()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_SecurityPrincipal()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(5);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getSecurityAuthenticationType <em>Security Authentication Type</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Security Authentication Type</em>'.
+     * @see org.apache.tuscany.model.Configuration#getSecurityAuthenticationType()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_SecurityAuthenticationType()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(6);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getSecurityCredentials <em>Security Credentials</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Security Credentials</em>'.
+     * @see org.apache.tuscany.model.Configuration#getSecurityCredentials()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_SecurityCredentials()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(7);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#getNlog4jConfigurationFilePath <em>Nlog4j Configuration File Path</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Nlog4j Configuration File Path</em>'.
+     * @see org.apache.tuscany.model.Configuration#getNlog4jConfigurationFilePath()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_Nlog4jConfigurationFilePath()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(8);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.Configuration#isEmbedded <em>Embedded</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Embedded</em>'.
+     * @see org.apache.tuscany.model.Configuration#isEmbedded()
+     * @see #getConfiguration()
+     * @generated
+     */
+    public EAttribute getConfiguration_Embedded()
+    {
+        return (EAttribute)configurationEClass.getEStructuralFeatures().get(9);
+    }
+
+    /**
+     * Returns the meta object for class '{@link org.apache.tuscany.model.DASMeta <em>DAS Meta</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for class '<em>DAS Meta</em>'.
+     * @see org.apache.tuscany.model.DASMeta
+     * @generated
+     */
+    public EClass getDASMeta()
+    {
+        return dasMetaEClass;
+    }
+
+    /**
+     * Returns the meta object for the attribute list '{@link org.apache.tuscany.model.DASMeta#getSupportedSchemas <em>Supported Schemas</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute list '<em>Supported Schemas</em>'.
+     * @see org.apache.tuscany.model.DASMeta#getSupportedSchemas()
+     * @see #getDASMeta()
+     * @generated
+     */
+    public EAttribute getDASMeta_SupportedSchemas()
+    {
+        return (EAttribute)dasMetaEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * Returns the meta object for the attribute '{@link org.apache.tuscany.model.DASMeta#getId <em>Id</em>}'.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @return the meta object for the attribute '<em>Id</em>'.
+     * @see org.apache.tuscany.model.DASMeta#getId()
+     * @see #getDASMeta()
+     * @generated
+     */
+    public EAttribute getDASMeta_Id()
+    {
+        return (EAttribute)dasMetaEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * 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
+     */
+    public ConfigurationFactory getConfigurationFactory()
+    {
+        return (ConfigurationFactory)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
+        configurationEClass = createEClass(CONFIGURATION);
+        createEAttribute(configurationEClass, CONFIGURATION__HOST);
+        createEAttribute(configurationEClass, CONFIGURATION__PORT);
+        createEAttribute(configurationEClass, CONFIGURATION__INITIAL_CONTEXT_FACTORY);
+        createEAttribute(configurationEClass, CONFIGURATION__DAS_PARTITION_NAME);
+        createEAttribute(configurationEClass, CONFIGURATION__SCHEMA_PARTITION_NAME);
+        createEAttribute(configurationEClass, CONFIGURATION__SECURITY_PRINCIPAL);
+        createEAttribute(configurationEClass, CONFIGURATION__SECURITY_AUTHENTICATION_TYPE);
+        createEAttribute(configurationEClass, CONFIGURATION__SECURITY_CREDENTIALS);
+        createEAttribute(configurationEClass, CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH);
+        createEAttribute(configurationEClass, CONFIGURATION__EMBEDDED);
+
+        dasMetaEClass = createEClass(DAS_META);
+        createEAttribute(dasMetaEClass, DAS_META__SUPPORTED_SCHEMAS);
+        createEAttribute(dasMetaEClass, DAS_META__ID);
+    }
+
+    /**
+     * <!-- 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(configurationEClass, Configuration.class, "Configuration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getConfiguration_Host(), ecorePackage.getEString(), "host", "localhost", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_Port(), ecorePackage.getEString(), "port", "10389", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_InitialContextFactory(), ecorePackage.getEString(), "initialContextFactory", "org.apache.directory.server.core.jndi.CoreContextFactory", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_DasPartitionName(), ecorePackage.getEString(), "dasPartitionName", "das", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_SchemaPartitionName(), ecorePackage.getEString(), "schemaPartitionName", "schema", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_SecurityPrincipal(), ecorePackage.getEString(), "securityPrincipal", "uid=admin,ou=system", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_SecurityAuthenticationType(), ecorePackage.getEString(), "securityAuthenticationType", "simple", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_SecurityCredentials(), ecorePackage.getEString(), "securityCredentials", "secret", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_Nlog4jConfigurationFilePath(), ecorePackage.getEString(), "nlog4jConfigurationFilePath", "src/test/resources/log4j.properties", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConfiguration_Embedded(), ecorePackage.getEBoolean(), "embedded", "false", 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(dasMetaEClass, DASMeta.class, "DASMeta", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getDASMeta_SupportedSchemas(), ecorePackage.getEString(), "supportedSchemas", "localhost", 0, -1, DASMeta.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASMeta_Id(), ecorePackage.getEString(), "id", "0", 0, 1, DASMeta.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        // Create resource
+        createResource(eNS_URI);
+    }
+
+    /**
+     * <!-- 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
+     */
+    public interface Literals
+    {
+        /**
+         * The meta object literal for the '{@link org.apache.tuscany.model.impl.ConfigurationImpl <em>Configuration</em>}' class.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @see org.apache.tuscany.model.impl.ConfigurationImpl
+         * @see org.apache.tuscany.model.impl.ConfigurationPackageImpl#getConfiguration()
+         * @generated
+         */
+        public static final EClass CONFIGURATION = eINSTANCE.getConfiguration();
+
+        /**
+         * The meta object literal for the '<em><b>Host</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__HOST = eINSTANCE.getConfiguration_Host();
+
+        /**
+         * The meta object literal for the '<em><b>Port</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__PORT = eINSTANCE.getConfiguration_Port();
+
+        /**
+         * The meta object literal for the '<em><b>Initial Context Factory</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__INITIAL_CONTEXT_FACTORY = eINSTANCE.getConfiguration_InitialContextFactory();
+
+        /**
+         * The meta object literal for the '<em><b>Das Partition Name</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__DAS_PARTITION_NAME = eINSTANCE.getConfiguration_DasPartitionName();
+
+        /**
+         * The meta object literal for the '<em><b>Schema Partition Name</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__SCHEMA_PARTITION_NAME = eINSTANCE.getConfiguration_SchemaPartitionName();
+
+        /**
+         * The meta object literal for the '<em><b>Security Principal</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__SECURITY_PRINCIPAL = eINSTANCE.getConfiguration_SecurityPrincipal();
+
+        /**
+         * The meta object literal for the '<em><b>Security Authentication Type</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__SECURITY_AUTHENTICATION_TYPE = eINSTANCE.getConfiguration_SecurityAuthenticationType();
+
+        /**
+         * The meta object literal for the '<em><b>Security Credentials</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__SECURITY_CREDENTIALS = eINSTANCE.getConfiguration_SecurityCredentials();
+
+        /**
+         * The meta object literal for the '<em><b>Nlog4j Configuration File Path</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH = eINSTANCE.getConfiguration_Nlog4jConfigurationFilePath();
+
+        /**
+         * The meta object literal for the '<em><b>Embedded</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute CONFIGURATION__EMBEDDED = eINSTANCE.getConfiguration_Embedded();
+
+        /**
+         * The meta object literal for the '{@link org.apache.tuscany.model.impl.DASMetaImpl <em>DAS Meta</em>}' class.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @see org.apache.tuscany.model.impl.DASMetaImpl
+         * @see org.apache.tuscany.model.impl.ConfigurationPackageImpl#getDASMeta()
+         * @generated
+         */
+        public static final EClass DAS_META = eINSTANCE.getDASMeta();
+
+        /**
+         * The meta object literal for the '<em><b>Supported Schemas</b></em>' attribute list feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute DAS_META__SUPPORTED_SCHEMAS = eINSTANCE.getDASMeta_SupportedSchemas();
+
+        /**
+         * The meta object literal for the '<em><b>Id</b></em>' attribute feature.
+         * <!-- begin-user-doc -->
+         * <!-- end-user-doc -->
+         * @generated
+         */
+        public static final EAttribute DAS_META__ID = eINSTANCE.getDASMeta_Id();
+
+    }
+
+} //ConfigurationPackageImpl

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,234 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.impl;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.apache.tuscany.model.DASMeta;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.emf.ecore.sdo.impl.EDataObjectImpl;
+
+import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>DAS Meta</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.model.impl.DASMetaImpl#getSupportedSchemas <em>Supported Schemas</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.impl.DASMetaImpl#getId <em>Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DASMetaImpl extends EDataObjectImpl implements DASMeta
+{
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * The cached value of the '{@link #getSupportedSchemas() <em>Supported Schemas</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSupportedSchemas()
+     * @generated
+     * @ordered
+     */
+    protected EList<String> supportedSchemas;
+
+    /**
+     * The default value of the '{@link #getId() <em>Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getId()
+     * @generated
+     * @ordered
+     */
+    protected static final String ID_EDEFAULT = "0";
+
+    /**
+     * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getId()
+     * @generated
+     * @ordered
+     */
+    protected String id = ID_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected DASMetaImpl()
+    {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    protected EClass eStaticClass()
+    {
+        return ConfigurationPackageImpl.Literals.DAS_META;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public List<String> getSupportedSchemas()
+    {
+        if (supportedSchemas == null)
+        {
+            supportedSchemas = new EDataTypeUniqueEList<String>(String.class, this, ConfigurationPackageImpl.DAS_META__SUPPORTED_SCHEMAS);
+        }
+        return supportedSchemas;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getId()
+    {
+        return id;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setId(String newId)
+    {
+        String oldId = id;
+        id = newId;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.DAS_META__ID, oldId, id));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public Object eGet(int featureID, boolean resolve, boolean coreType)
+    {
+        switch (featureID)
+        {
+            case ConfigurationPackageImpl.DAS_META__SUPPORTED_SCHEMAS:
+                return getSupportedSchemas();
+            case ConfigurationPackageImpl.DAS_META__ID:
+                return getId();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @SuppressWarnings("unchecked")
+    @Override
+    public void eSet(int featureID, Object newValue)
+    {
+        switch (featureID)
+        {
+            case ConfigurationPackageImpl.DAS_META__SUPPORTED_SCHEMAS:
+                getSupportedSchemas().clear();
+                getSupportedSchemas().addAll((Collection<? extends String>)newValue);
+                return;
+            case ConfigurationPackageImpl.DAS_META__ID:
+                setId((String)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public void eUnset(int featureID)
+    {
+        switch (featureID)
+        {
+            case ConfigurationPackageImpl.DAS_META__SUPPORTED_SCHEMAS:
+                getSupportedSchemas().clear();
+                return;
+            case ConfigurationPackageImpl.DAS_META__ID:
+                setId(ID_EDEFAULT);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    @Override
+    public boolean eIsSet(int featureID)
+    {
+        switch (featureID)
+        {
+            case ConfigurationPackageImpl.DAS_META__SUPPORTED_SCHEMAS:
+                return supportedSchemas != null && !supportedSchemas.isEmpty();
+            case ConfigurationPackageImpl.DAS_META__ID:
+                return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+        }
+        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(" (supportedSchemas: ");
+        result.append(supportedSchemas);
+        result.append(", id: ");
+        result.append(id);
+        result.append(')');
+        return result.toString();
+    }
+
+} //DASMetaImpl

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,158 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.util;
+
+import org.apache.tuscany.model.*;
+
+import org.apache.tuscany.model.impl.ConfigurationPackageImpl;
+
+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;
+
+/**
+ * <!-- 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.apache.tuscany.model.impl.ConfigurationPackageImpl
+ * @generated
+ */
+public class ConfigurationAdapterFactory extends AdapterFactoryImpl
+{
+    /**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static ConfigurationPackageImpl modelPackage;
+
+    /**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ConfigurationAdapterFactory()
+    {
+        if (modelPackage == null)
+        {
+            modelPackage = ConfigurationPackageImpl.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
+     */
+    @Override
+    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 ConfigurationSwitch<Adapter> modelSwitch =
+        new ConfigurationSwitch<Adapter>()
+        {
+            @Override
+            public Adapter caseConfiguration(Configuration object)
+            {
+                return createConfigurationAdapter();
+            }
+            @Override
+            public Adapter caseDASMeta(DASMeta object)
+            {
+                return createDASMetaAdapter();
+            }
+            @Override
+            public Adapter 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
+     */
+    @Override
+    public Adapter createAdapter(Notifier target)
+    {
+        return modelSwitch.doSwitch((EObject)target);
+    }
+
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.tuscany.model.Configuration <em>Configuration</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.apache.tuscany.model.Configuration
+     * @generated
+     */
+    public Adapter createConfigurationAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.tuscany.model.DASMeta <em>DAS Meta</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.apache.tuscany.model.DASMeta
+     * @generated
+     */
+    public Adapter createDASMetaAdapter()
+    {
+        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;
+    }
+
+} //ConfigurationAdapterFactory

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,167 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.util;
+
+import java.util.List;
+
+import org.apache.tuscany.model.*;
+
+import org.apache.tuscany.model.impl.ConfigurationPackageImpl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- 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.apache.tuscany.model.impl.ConfigurationPackageImpl
+ * @generated
+ */
+public class ConfigurationSwitch<T>
+{
+    /**
+     * The cached model package
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static ConfigurationPackageImpl modelPackage;
+
+    /**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public ConfigurationSwitch()
+    {
+        if (modelPackage == null)
+        {
+            modelPackage = ConfigurationPackageImpl.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 T 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 T doSwitch(EClass theEClass, EObject theEObject)
+    {
+        if (theEClass.eContainer() == modelPackage)
+        {
+            return doSwitch(theEClass.getClassifierID(), theEObject);
+        }
+        else
+        {
+            List<EClass> eSuperTypes = theEClass.getESuperTypes();
+            return
+                eSuperTypes.isEmpty() ?
+                    defaultCase(theEObject) :
+                    doSwitch(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 T doSwitch(int classifierID, EObject theEObject)
+    {
+        switch (classifierID)
+        {
+            case ConfigurationPackageImpl.CONFIGURATION:
+            {
+                Configuration configuration = (Configuration)theEObject;
+                T result = caseConfiguration(configuration);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case ConfigurationPackageImpl.DAS_META:
+            {
+                DASMeta dasMeta = (DASMeta)theEObject;
+                T result = caseDASMeta(dasMeta);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+    /**
+     * Returns the result of interpreting the object as an instance of '<em>Configuration</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 interpreting the object as an instance of '<em>Configuration</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseConfiguration(Configuration object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpreting the object as an instance of '<em>DAS Meta</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 interpreting the object as an instance of '<em>DAS Meta</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseDASMeta(DASMeta object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpreting 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 interpreting the object as an instance of '<em>EObject</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+     * @generated
+     */
+    public T defaultCase(EObject object)
+    {
+        return null;
+    }
+
+} //ConfigurationSwitch

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/das/ldap/das.ldap.constants/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.constants/pom.xml?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.constants/pom.xml (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.constants/pom.xml Fri Aug  3 09:40:00 2007
@@ -0,0 +1,20 @@
+<?xml version="1.0"?><project>
+  <parent>
+    <artifactId>tuscany-das-ldap</artifactId>
+    <groupId>org.apache.tuscany.das</groupId>
+    <version>1.0-incubating-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>das.ldap.constants</artifactId>
+  <name>das.ldap.constants</name>
+
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,48 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.tuscany.das.ldap.constants;
+
+public interface ApacheDSConnectionConstants
+{
+    String APACHE_CONTEXT_FACTORY                          =
+        "org.apache.directory.server.core.jndi.CoreContextFactory";
+
+    String SUN_CONTEXT_FACTORY                                =
+        "com.sun.jndi.ldap.LdapCtxFactory";
+    
+    String SIMPLE_SECURITY_AUTHENTICATION_VALUE = 
+        "simple";
+    
+    String DEFAULT_SECURITY_PRINCIPAL_VALUE          = 
+        "uid=admin,ou=system";
+    
+    String DEFAULT_SECURITY_CREDENTIALS_VALUE    = 
+        "secret";
+    
+    String SCHEMA_PROVIDER_PATH                              =
+    	"ou=schema";
+    
+    String SYSTEM_PROVIDER_PATH                               =
+    	"ou=system";
+    
+    String NLOG4J_CONFIGURATION_FILEPATH              =
+    	"src/test/resources/log4j.properties";
+    	
+}

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,95 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.tuscany.das.ldap.constants;
+
+public interface DASConstants {
+    String DAS_META_ID_DEFAULT                       = 
+        "0";
+
+    
+    String DAS_XSD_NAMESPACE                 = 
+        "http://org.apache.tuscany/das/ldap";
+
+    String M_META_TOP_SDO_OBJECT_CLASS        = 
+        "metaTopSDO";
+    
+    String M_COMPLEX_MAY                      = 
+        "m-complexMay";
+    
+    String M_COMPLEX_MAY_DESCRIPTION          = 
+        "SDO Type member that is a reference";
+
+    String M_COMPLEX_MUST                               = 
+        "m-complexMust";
+    
+    String M_COMPLEX_MUST_DESCRIPTION       = 
+        "Required SDO Type member reference.";
+    
+    String ID                                                         = 
+        "id";
+    
+    String ID_DESCRIPTION                                 = 
+        "Unique DataObject Instance Integer ID";
+    
+    //==================================================
+    String XSD_CONTEXT_NAME                         = 
+        "xsd";
+
+    String ECORE_CONTEXT_NAME                     = 
+        "ecore";
+
+    String DAS_CONTEXT_NAME                         = 
+        "das";
+
+    String SYNTAXES_CONTEXT_NAME               = 
+        "syntaxes";
+    
+    String SYNTAX_CHECKERS_CONTEXT_NAME = 
+        "syntaxCheckers";
+    
+    String ATTRIBUTE_TYPES_CONTEXT_NAME   = 
+        "attributeTypes";
+    
+    String OBJECT_CLASSES_CONTEXT_NAME     = 
+        "objectClasses";
+    
+    String META_CONTEXT_NAME                        =
+        "meta";
+    //==================================================
+
+    String LDAP_USER_APPLICATIONS                 = 
+        "USER_APPLICATIONS";
+    
+    String LDAP_FALSE                                         = 
+        "FALSE";
+    
+    String TUSCANY_OID_PREFIX_VALUE            = 
+        "1.3.6.1.4.1.18060.4";
+    
+    
+    String OID_SYNTAX_OID_VALUE                     = 
+        "1.3.6.1.4.1.1466.115.121.1.38";
+    
+    String INTEGER_SYNTAX_OID_VALUE            = 
+        "1.3.6.1.4.1.1466.115.121.1.27";
+    
+    String DISTINGUISHED_NAME_SYNTAX_OID_VALUE = 
+        "1.3.6.1.4.1.1466.115.121.1.12";
+}

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,8 @@
+package org.apache.tuscany.das.ldap.constants;
+
+public interface SyntaxOIDValues {
+	
+	String SYNTAX_STRING_OID_VALUE     = "1.3.6.1.4.1.1466.115.121.1.15";
+	String SYNTAX_INTEGER_OID_VALUE   = "1.3.6.1.4.1.1466.115.121.1.27";
+	String SYNTAX_BOOLEAN_OID_VALUE = "1.3.6.1.4.1.1466.115.121.1.7";
+}

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java?view=auto&rev=562520
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java (added)
+++ incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java Fri Aug  3 09:40:00 2007
@@ -0,0 +1,25 @@
+
+package org.apache.tuscany.das.ldap.schema.constants;
+
+public interface AttributeTypeConstants
+{
+    String CN                              = "cn";
+    String OU                              = "ou";
+    String OBJECT_CLASS           = "objectClass";
+    String CREATORS_NAME      = "creatorsName";
+    String CREATE_TIMESTAMP  = "createTimestamp";
+    String MODIFY_TIMESTAMP  = "modifyTimestamp";
+    String MODIFIERS_NAME      = "modifiersName";
+
+    String LDAP_SYNTAXES        = "ldapSyntaxes";
+    String SYNTAXES                  = "syntaxes";
+    String SYNTAX_CHECKERS   = "syntaxCheckers";
+    String MATCHING_RULES     = "matchingRules";
+    String ATTRIBUTE_TYPES     = "attributeTypes";
+    String OBJECT_CLASSES       = "objectClasses";
+    String MATCHING_RULE       = "matchingRuleUse";
+    String DIT_STRUCTURE        = "ditStructureRules";
+    String DIT_CONTENT            = "ditContentRules";
+    String NAME_FORMS            = "nameForms";
+    String UNIQUE_IDENTIFIER  = "uniqueIdentifier";
+}

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/das/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message