summaryrefslogtreecommitdiffstats
path: root/das-java/contrib/ldap/das.ldap.configuration.model.v100/src
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-02 22:21:03 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-02 22:21:03 +0000
commitf3e3191c911992ae4b55cf1619206ad7dd2b7c9f (patch)
tree59522e24f2dcb85cf55f7b4eb9e161382059fe45 /das-java/contrib/ldap/das.ldap.configuration.model.v100/src
parent1a07cc91f40d1a8307189f746f6f55e3be7bb6d5 (diff)
Moving LDAP DAS to contrib folder at new SVN structure
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@832142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'das-java/contrib/ldap/das.ldap.configuration.model.v100/src')
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/Configuration.java296
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/ConfigurationFactory.java45
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/DASMeta.java70
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationFactoryImpl.java130
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java692
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java726
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java234
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java158
-rw-r--r--das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java167
9 files changed, 2518 insertions, 0 deletions
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/Configuration.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/Configuration.java
new file mode 100644
index 0000000000..f885a91f68
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/Configuration.java
@@ -0,0 +1,296 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.apache.tuscany.model.Configuration#getHost <em>Host</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#getPort <em>Port</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#getInitialContextFactory <em>Initial Context Factory</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#getDasPartitionName <em>Das Partition Name</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#getSchemaPartitionName <em>Schema Partition Name</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#getSecurityPrincipal <em>Security Principal</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#getSecurityAuthenticationType <em>Security Authentication Type</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#getSecurityCredentials <em>Security Credentials</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#getNlog4jConfigurationFilePath <em>Nlog4j Configuration File Path</em>}</li>
+ * <li>{@link org.apache.tuscany.model.Configuration#isEmbedded <em>Embedded</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @model
+ * @generated
+ */
+public interface Configuration
+{
+ /**
+ * Returns the value of the '<em><b>Host</b></em>' attribute.
+ * The default value is <code>"localhost"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Host</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Host</em>' attribute.
+ * @see #setHost(String)
+ * @model default="localhost"
+ * @generated
+ */
+ String getHost();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getHost <em>Host</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Host</em>' attribute.
+ * @see #getHost()
+ * @generated
+ */
+ void setHost(String value);
+
+ /**
+ * Returns the value of the '<em><b>Port</b></em>' attribute.
+ * The default value is <code>"10389"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Port</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Port</em>' attribute.
+ * @see #setPort(String)
+ * @model default="10389"
+ * @generated
+ */
+ String getPort();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getPort <em>Port</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Port</em>' attribute.
+ * @see #getPort()
+ * @generated
+ */
+ void setPort(String value);
+
+ /**
+ * Returns the value of the '<em><b>Initial Context Factory</b></em>' attribute.
+ * The default value is <code>"org.apache.directory.server.core.jndi.CoreContextFactory"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Initial Context Factory</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Initial Context Factory</em>' attribute.
+ * @see #setInitialContextFactory(String)
+ * @model default="org.apache.directory.server.core.jndi.CoreContextFactory"
+ * @generated
+ */
+ String getInitialContextFactory();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getInitialContextFactory <em>Initial Context Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Initial Context Factory</em>' attribute.
+ * @see #getInitialContextFactory()
+ * @generated
+ */
+ void setInitialContextFactory(String value);
+
+ /**
+ * Returns the value of the '<em><b>Das Partition Name</b></em>' attribute.
+ * The default value is <code>"das"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Das Partition Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Das Partition Name</em>' attribute.
+ * @see #setDasPartitionName(String)
+ * @model default="das"
+ * @generated
+ */
+ String getDasPartitionName();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getDasPartitionName <em>Das Partition Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Das Partition Name</em>' attribute.
+ * @see #getDasPartitionName()
+ * @generated
+ */
+ void setDasPartitionName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Schema Partition Name</b></em>' attribute.
+ * The default value is <code>"schema"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Schema Partition Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Schema Partition Name</em>' attribute.
+ * @see #setSchemaPartitionName(String)
+ * @model default="schema"
+ * @generated
+ */
+ String getSchemaPartitionName();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getSchemaPartitionName <em>Schema Partition Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Schema Partition Name</em>' attribute.
+ * @see #getSchemaPartitionName()
+ * @generated
+ */
+ void setSchemaPartitionName(String value);
+
+ /**
+ * Returns the value of the '<em><b>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>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>Security Principal</em>' attribute.
+ * @see #setSecurityPrincipal(String)
+ * @model default="uid=admin,ou=system"
+ * @generated
+ */
+ String getSecurityPrincipal();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getSecurityPrincipal <em>Security Principal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Security Principal</em>' attribute.
+ * @see #getSecurityPrincipal()
+ * @generated
+ */
+ void setSecurityPrincipal(String value);
+
+ /**
+ * Returns the value of the '<em><b>Security Authentication Type</b></em>' attribute.
+ * The default value is <code>"simple"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Security Authentication Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Security Authentication Type</em>' attribute.
+ * @see #setSecurityAuthenticationType(String)
+ * @model default="simple"
+ * @generated
+ */
+ String getSecurityAuthenticationType();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getSecurityAuthenticationType <em>Security Authentication Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Security Authentication Type</em>' attribute.
+ * @see #getSecurityAuthenticationType()
+ * @generated
+ */
+ void setSecurityAuthenticationType(String value);
+
+ /**
+ * Returns the value of the '<em><b>Security Credentials</b></em>' attribute.
+ * The default value is <code>"secret"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>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>Security Credentials</em>' attribute.
+ * @see #setSecurityCredentials(String)
+ * @model default="secret"
+ * @generated
+ */
+ String getSecurityCredentials();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getSecurityCredentials <em>Security Credentials</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Security Credentials</em>' attribute.
+ * @see #getSecurityCredentials()
+ * @generated
+ */
+ void setSecurityCredentials(String value);
+
+ /**
+ * Returns the value of the '<em><b>Nlog4j Configuration File Path</b></em>' attribute.
+ * The default value is <code>"src/test/resources/log4j.properties"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Nlog4j Configuration File Path</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Nlog4j Configuration File Path</em>' attribute.
+ * @see #setNlog4jConfigurationFilePath(String)
+ * @model default="src/test/resources/log4j.properties"
+ * @generated
+ */
+ String getNlog4jConfigurationFilePath();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getNlog4jConfigurationFilePath <em>Nlog4j Configuration File Path</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Nlog4j Configuration File Path</em>' attribute.
+ * @see #getNlog4jConfigurationFilePath()
+ * @generated
+ */
+ void setNlog4jConfigurationFilePath(String value);
+
+ /**
+ * Returns the value of the '<em><b>Embedded</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Embedded</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Embedded</em>' attribute.
+ * @see #setEmbedded(boolean)
+ * @model default="false"
+ * @generated
+ */
+ boolean isEmbedded();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.Configuration#isEmbedded <em>Embedded</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Embedded</em>' attribute.
+ * @see #isEmbedded()
+ * @generated
+ */
+ void setEmbedded(boolean value);
+
+} // Configuration
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/ConfigurationFactory.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/ConfigurationFactory.java
new file mode 100644
index 0000000000..5edfd1230e
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/ConfigurationFactory.java
@@ -0,0 +1,45 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public interface ConfigurationFactory
+{
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ ConfigurationFactory INSTANCE = org.apache.tuscany.model.impl.ConfigurationFactoryImpl.eINSTANCE;
+
+ /**
+ * Returns a new object of class '<em>Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Configuration</em>'.
+ * @generated
+ */
+ Configuration createConfiguration();
+
+ /**
+ * Returns a new object of class '<em>DAS Meta</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>DAS Meta</em>'.
+ * @generated
+ */
+ DASMeta createDASMeta();
+
+} //ConfigurationFactory
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/DASMeta.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/DASMeta.java
new file mode 100644
index 0000000000..cd424ffa9c
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/DASMeta.java
@@ -0,0 +1,70 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model;
+
+import java.util.List;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>DAS Meta</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.apache.tuscany.model.DASMeta#getSupportedSchemas <em>Supported Schemas</em>}</li>
+ * <li>{@link org.apache.tuscany.model.DASMeta#getId <em>Id</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @model
+ * @generated
+ */
+public interface DASMeta
+{
+ /**
+ * Returns the value of the '<em><b>Supported Schemas</b></em>' attribute list.
+ * The list contents are of type {@link java.lang.String}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Supported Schemas</em>' attribute list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Supported Schemas</em>' attribute list.
+ * @model default="localhost"
+ * @generated
+ */
+ List<String> getSupportedSchemas();
+
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' attribute.
+ * The default value is <code>"0"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Id</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Id</em>' attribute.
+ * @see #setId(String)
+ * @model default="0" id="true"
+ * @generated
+ */
+ String getId();
+
+ /**
+ * Sets the value of the '{@link org.apache.tuscany.model.DASMeta#getId <em>Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Id</em>' attribute.
+ * @see #getId()
+ * @generated
+ */
+ void setId(String value);
+
+} // DASMeta
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationFactoryImpl.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationFactoryImpl.java
new file mode 100644
index 0000000000..e22a4e1a30
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationFactoryImpl.java
@@ -0,0 +1,130 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.impl;
+
+import org.apache.tuscany.model.*;
+
+import org.eclipse.emf.ecore.EClass;
+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 ConfigurationFactoryImpl extends EFactoryImpl implements ConfigurationFactory
+{
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final ConfigurationFactoryImpl eINSTANCE = init();
+
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static ConfigurationFactoryImpl init()
+ {
+ try
+ {
+ ConfigurationFactoryImpl theConfigurationFactory = (ConfigurationFactoryImpl)EPackage.Registry.INSTANCE.getEFactory("http://org.apache.tuscany/das.ldap.configuration.model.ecore.v100");
+ if (theConfigurationFactory != null)
+ {
+ return theConfigurationFactory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new ConfigurationFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ConfigurationFactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case ConfigurationPackageImpl.CONFIGURATION: return (EObject)createConfiguration();
+ case ConfigurationPackageImpl.DAS_META: return (EObject)createDASMeta();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Configuration createConfiguration()
+ {
+ ConfigurationImpl configuration = new ConfigurationImpl();
+ return configuration;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DASMeta createDASMeta()
+ {
+ DASMetaImpl dasMeta = new DASMetaImpl();
+ return dasMeta;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ConfigurationPackageImpl getConfigurationPackageImpl()
+ {
+ return (ConfigurationPackageImpl)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static ConfigurationPackageImpl getPackage()
+ {
+ return ConfigurationPackageImpl.eINSTANCE;
+ }
+
+} //ConfigurationFactoryImpl
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java
new file mode 100644
index 0000000000..cbc280ebf5
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java
@@ -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
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java
new file mode 100644
index 0000000000..15afe8aa32
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java
@@ -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
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java
new file mode 100644
index 0000000000..2f14d4011a
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java
@@ -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
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java
new file mode 100644
index 0000000000..7d0d4e154d
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java
@@ -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
diff --git a/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java
new file mode 100644
index 0000000000..81668705b6
--- /dev/null
+++ b/das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java
@@ -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