From f3e3191c911992ae4b55cf1619206ad7dd2b7c9f Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 2 Nov 2009 22:21:03 +0000 Subject: 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 --- .../org/apache/tuscany/model/Configuration.java | 296 +++++++++ .../apache/tuscany/model/ConfigurationFactory.java | 45 ++ .../java/org/apache/tuscany/model/DASMeta.java | 70 ++ .../model/impl/ConfigurationFactoryImpl.java | 130 ++++ .../tuscany/model/impl/ConfigurationImpl.java | 692 ++++++++++++++++++++ .../model/impl/ConfigurationPackageImpl.java | 726 +++++++++++++++++++++ .../org/apache/tuscany/model/impl/DASMetaImpl.java | 234 +++++++ .../model/util/ConfigurationAdapterFactory.java | 158 +++++ .../tuscany/model/util/ConfigurationSwitch.java | 167 +++++ 9 files changed, 2518 insertions(+) create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/Configuration.java create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/ConfigurationFactory.java create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/DASMeta.java create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationFactoryImpl.java create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationImpl.java create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/ConfigurationPackageImpl.java create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/impl/DASMetaImpl.java create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationAdapterFactory.java create mode 100644 das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/model/util/ConfigurationSwitch.java (limited to 'das-java/contrib/ldap/das.ldap.configuration.model.v100/src/main/java/org/apache') 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 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.model; + + +/** + * + * A representation of the model object 'Configuration'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @model + * @generated + */ +public interface Configuration +{ + /** + * Returns the value of the 'Host' attribute. + * The default value is "localhost". + * + *

+ * If the meaning of the 'Host' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Host' attribute. + * @see #setHost(String) + * @model default="localhost" + * @generated + */ + String getHost(); + + /** + * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getHost Host}' attribute. + * + * + * @param value the new value of the 'Host' attribute. + * @see #getHost() + * @generated + */ + void setHost(String value); + + /** + * Returns the value of the 'Port' attribute. + * The default value is "10389". + * + *

+ * If the meaning of the 'Port' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Port' attribute. + * @see #setPort(String) + * @model default="10389" + * @generated + */ + String getPort(); + + /** + * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getPort Port}' attribute. + * + * + * @param value the new value of the 'Port' attribute. + * @see #getPort() + * @generated + */ + void setPort(String value); + + /** + * Returns the value of the 'Initial Context Factory' attribute. + * The default value is "org.apache.directory.server.core.jndi.CoreContextFactory". + * + *

+ * If the meaning of the 'Initial Context Factory' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Initial Context Factory' 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 Initial Context Factory}' attribute. + * + * + * @param value the new value of the 'Initial Context Factory' attribute. + * @see #getInitialContextFactory() + * @generated + */ + void setInitialContextFactory(String value); + + /** + * Returns the value of the 'Das Partition Name' attribute. + * The default value is "das". + * + *

+ * If the meaning of the 'Das Partition Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Das Partition Name' attribute. + * @see #setDasPartitionName(String) + * @model default="das" + * @generated + */ + String getDasPartitionName(); + + /** + * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getDasPartitionName Das Partition Name}' attribute. + * + * + * @param value the new value of the 'Das Partition Name' attribute. + * @see #getDasPartitionName() + * @generated + */ + void setDasPartitionName(String value); + + /** + * Returns the value of the 'Schema Partition Name' attribute. + * The default value is "schema". + * + *

+ * If the meaning of the 'Schema Partition Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Schema Partition Name' attribute. + * @see #setSchemaPartitionName(String) + * @model default="schema" + * @generated + */ + String getSchemaPartitionName(); + + /** + * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getSchemaPartitionName Schema Partition Name}' attribute. + * + * + * @param value the new value of the 'Schema Partition Name' attribute. + * @see #getSchemaPartitionName() + * @generated + */ + void setSchemaPartitionName(String value); + + /** + * Returns the value of the 'Security Principal' attribute. + * The default value is "uid=admin,ou=system". + * + *

+ * If the meaning of the 'Security Principal' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Security Principal' 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 Security Principal}' attribute. + * + * + * @param value the new value of the 'Security Principal' attribute. + * @see #getSecurityPrincipal() + * @generated + */ + void setSecurityPrincipal(String value); + + /** + * Returns the value of the 'Security Authentication Type' attribute. + * The default value is "simple". + * + *

+ * If the meaning of the 'Security Authentication Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Security Authentication Type' attribute. + * @see #setSecurityAuthenticationType(String) + * @model default="simple" + * @generated + */ + String getSecurityAuthenticationType(); + + /** + * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getSecurityAuthenticationType Security Authentication Type}' attribute. + * + * + * @param value the new value of the 'Security Authentication Type' attribute. + * @see #getSecurityAuthenticationType() + * @generated + */ + void setSecurityAuthenticationType(String value); + + /** + * Returns the value of the 'Security Credentials' attribute. + * The default value is "secret". + * + *

+ * If the meaning of the 'Security Credentials' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Security Credentials' attribute. + * @see #setSecurityCredentials(String) + * @model default="secret" + * @generated + */ + String getSecurityCredentials(); + + /** + * Sets the value of the '{@link org.apache.tuscany.model.Configuration#getSecurityCredentials Security Credentials}' attribute. + * + * + * @param value the new value of the 'Security Credentials' attribute. + * @see #getSecurityCredentials() + * @generated + */ + void setSecurityCredentials(String value); + + /** + * Returns the value of the 'Nlog4j Configuration File Path' attribute. + * The default value is "src/test/resources/log4j.properties". + * + *

+ * If the meaning of the 'Nlog4j Configuration File Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nlog4j Configuration File Path' 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 Nlog4j Configuration File Path}' attribute. + * + * + * @param value the new value of the 'Nlog4j Configuration File Path' attribute. + * @see #getNlog4jConfigurationFilePath() + * @generated + */ + void setNlog4jConfigurationFilePath(String value); + + /** + * Returns the value of the 'Embedded' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'Embedded' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Embedded' attribute. + * @see #setEmbedded(boolean) + * @model default="false" + * @generated + */ + boolean isEmbedded(); + + /** + * Sets the value of the '{@link org.apache.tuscany.model.Configuration#isEmbedded Embedded}' attribute. + * + * + * @param value the new value of the 'Embedded' 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 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.model; + + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @generated + */ +public interface ConfigurationFactory +{ + /** + * The singleton instance of the factory. + * + * + * @generated + */ + ConfigurationFactory INSTANCE = org.apache.tuscany.model.impl.ConfigurationFactoryImpl.eINSTANCE; + + /** + * Returns a new object of class 'Configuration'. + * + * + * @return a new object of class 'Configuration'. + * @generated + */ + Configuration createConfiguration(); + + /** + * Returns a new object of class 'DAS Meta'. + * + * + * @return a new object of class 'DAS Meta'. + * @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 @@ +/** + * + * + * + * $Id$ + */ +package org.apache.tuscany.model; + +import java.util.List; + +/** + * + * A representation of the model object 'DAS Meta'. + * + * + *

+ * The following features are supported: + *

+ *

+ * + * @model + * @generated + */ +public interface DASMeta +{ + /** + * Returns the value of the 'Supported Schemas' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Supported Schemas' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Supported Schemas' attribute list. + * @model default="localhost" + * @generated + */ + List getSupportedSchemas(); + + /** + * Returns the value of the 'Id' attribute. + * The default value is "0". + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @model default="0" id="true" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.apache.tuscany.model.DASMeta#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' 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 @@ +/** + * + * + * + * $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; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class ConfigurationFactoryImpl extends EFactoryImpl implements ConfigurationFactory +{ + /** + * The singleton instance of the factory. + * + * + * @generated + */ + public static final ConfigurationFactoryImpl eINSTANCE = init(); + + /** + * Creates the default factory implementation. + * + * + * @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. + * + * + * @generated + */ + public ConfigurationFactoryImpl() + { + super(); + } + + /** + * + * + * @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"); + } + } + + /** + * + * + * @generated + */ + public Configuration createConfiguration() + { + ConfigurationImpl configuration = new ConfigurationImpl(); + return configuration; + } + + /** + * + * + * @generated + */ + public DASMeta createDASMeta() + { + DASMetaImpl dasMeta = new DASMetaImpl(); + return dasMeta; + } + + /** + * + * + * @generated + */ + public ConfigurationPackageImpl getConfigurationPackageImpl() + { + return (ConfigurationPackageImpl)getEPackage(); + } + + /** + * + * + * @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 @@ +/** + * + * + * + * $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; + +/** + * + * An implementation of the model object 'Configuration'. + * + *

+ * The following features are implemented: + *

+ *

+ * + * @generated + */ +public class ConfigurationImpl extends EDataObjectImpl implements Configuration +{ + /** + * + * + * @generated + */ + private static final long serialVersionUID = 1L; + + /** + * The default value of the '{@link #getHost() Host}' attribute. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected static final String HOST_EDEFAULT = "localhost"; + + /** + * The cached value of the '{@link #getHost() Host}' attribute. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected String host = HOST_EDEFAULT; + + /** + * The default value of the '{@link #getPort() Port}' attribute. + * + * + * @see #getPort() + * @generated + * @ordered + */ + protected static final String PORT_EDEFAULT = "10389"; + + /** + * The cached value of the '{@link #getPort() Port}' attribute. + * + * + * @see #getPort() + * @generated + * @ordered + */ + protected String port = PORT_EDEFAULT; + + /** + * The default value of the '{@link #getInitialContextFactory() Initial Context Factory}' attribute. + * + * + * @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() Initial Context Factory}' attribute. + * + * + * @see #getInitialContextFactory() + * @generated + * @ordered + */ + protected String initialContextFactory = INITIAL_CONTEXT_FACTORY_EDEFAULT; + + /** + * The default value of the '{@link #getDasPartitionName() Das Partition Name}' attribute. + * + * + * @see #getDasPartitionName() + * @generated + * @ordered + */ + protected static final String DAS_PARTITION_NAME_EDEFAULT = "das"; + + /** + * The cached value of the '{@link #getDasPartitionName() Das Partition Name}' attribute. + * + * + * @see #getDasPartitionName() + * @generated + * @ordered + */ + protected String dasPartitionName = DAS_PARTITION_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSchemaPartitionName() Schema Partition Name}' attribute. + * + * + * @see #getSchemaPartitionName() + * @generated + * @ordered + */ + protected static final String SCHEMA_PARTITION_NAME_EDEFAULT = "schema"; + + /** + * The cached value of the '{@link #getSchemaPartitionName() Schema Partition Name}' attribute. + * + * + * @see #getSchemaPartitionName() + * @generated + * @ordered + */ + protected String schemaPartitionName = SCHEMA_PARTITION_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSecurityPrincipal() Security Principal}' attribute. + * + * + * @see #getSecurityPrincipal() + * @generated + * @ordered + */ + protected static final String SECURITY_PRINCIPAL_EDEFAULT = "uid=admin,ou=system"; + + /** + * The cached value of the '{@link #getSecurityPrincipal() Security Principal}' attribute. + * + * + * @see #getSecurityPrincipal() + * @generated + * @ordered + */ + protected String securityPrincipal = SECURITY_PRINCIPAL_EDEFAULT; + + /** + * The default value of the '{@link #getSecurityAuthenticationType() Security Authentication Type}' attribute. + * + * + * @see #getSecurityAuthenticationType() + * @generated + * @ordered + */ + protected static final String SECURITY_AUTHENTICATION_TYPE_EDEFAULT = "simple"; + + /** + * The cached value of the '{@link #getSecurityAuthenticationType() Security Authentication Type}' attribute. + * + * + * @see #getSecurityAuthenticationType() + * @generated + * @ordered + */ + protected String securityAuthenticationType = SECURITY_AUTHENTICATION_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getSecurityCredentials() Security Credentials}' attribute. + * + * + * @see #getSecurityCredentials() + * @generated + * @ordered + */ + protected static final String SECURITY_CREDENTIALS_EDEFAULT = "secret"; + + /** + * The cached value of the '{@link #getSecurityCredentials() Security Credentials}' attribute. + * + * + * @see #getSecurityCredentials() + * @generated + * @ordered + */ + protected String securityCredentials = SECURITY_CREDENTIALS_EDEFAULT; + + /** + * The default value of the '{@link #getNlog4jConfigurationFilePath() Nlog4j Configuration File Path}' attribute. + * + * + * @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() Nlog4j Configuration File Path}' attribute. + * + * + * @see #getNlog4jConfigurationFilePath() + * @generated + * @ordered + */ + protected String nlog4jConfigurationFilePath = NLOG4J_CONFIGURATION_FILE_PATH_EDEFAULT; + + /** + * The default value of the '{@link #isEmbedded() Embedded}' attribute. + * + * + * @see #isEmbedded() + * @generated + * @ordered + */ + protected static final boolean EMBEDDED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isEmbedded() Embedded}' attribute. + * + * + * @see #isEmbedded() + * @generated + * @ordered + */ + protected boolean embedded = EMBEDDED_EDEFAULT; + + /** + * + * + * @generated + */ + protected ConfigurationImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ConfigurationPackageImpl.Literals.CONFIGURATION; + } + + /** + * + * + * @generated + */ + public String getHost() + { + return host; + } + + /** + * + * + * @generated + */ + public void setHost(String newHost) + { + String oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__HOST, oldHost, host)); + } + + /** + * + * + * @generated + */ + public String getPort() + { + return port; + } + + /** + * + * + * @generated + */ + public void setPort(String newPort) + { + String oldPort = port; + port = newPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__PORT, oldPort, port)); + } + + /** + * + * + * @generated + */ + public String getInitialContextFactory() + { + return initialContextFactory; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getDasPartitionName() + { + return dasPartitionName; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getSchemaPartitionName() + { + return schemaPartitionName; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getSecurityPrincipal() + { + return securityPrincipal; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getSecurityAuthenticationType() + { + return securityAuthenticationType; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getSecurityCredentials() + { + return securityCredentials; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getNlog4jConfigurationFilePath() + { + return nlog4jConfigurationFilePath; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public boolean isEmbedded() + { + return embedded; + } + + /** + * + * + * @generated + */ + public void setEmbedded(boolean newEmbedded) + { + boolean oldEmbedded = embedded; + embedded = newEmbedded; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ConfigurationPackageImpl.CONFIGURATION__EMBEDDED, oldEmbedded, embedded)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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 @@ +/** + * + * + * + * $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; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + * + * + * @see org.apache.tuscany.model.ConfigurationFactory + * @model kind="package" + * @generated + */ +public class ConfigurationPackageImpl extends EPackageImpl +{ + /** + * The package name. + * + * + * @generated + */ + public static final String eNAME = "model"; + + /** + * The package namespace URI. + * + * + * @generated + */ + public static final String eNS_URI = "http://org.apache.tuscany/das.ldap.configuration.model.ecore.v100"; + + /** + * The package namespace name. + * + * + * @generated + */ + public static final String eNS_PREFIX = "tuscany"; + + /** + * The singleton instance of the package. + * + * + * @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 Configuration}' class. + * + * + * @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 'Host' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__HOST = 0; + + /** + * The feature id for the 'Port' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__PORT = 1; + + /** + * The feature id for the 'Initial Context Factory' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__INITIAL_CONTEXT_FACTORY = 2; + + /** + * The feature id for the 'Das Partition Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__DAS_PARTITION_NAME = 3; + + /** + * The feature id for the 'Schema Partition Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__SCHEMA_PARTITION_NAME = 4; + + /** + * The feature id for the 'Security Principal' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__SECURITY_PRINCIPAL = 5; + + /** + * The feature id for the 'Security Authentication Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__SECURITY_AUTHENTICATION_TYPE = 6; + + /** + * The feature id for the 'Security Credentials' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__SECURITY_CREDENTIALS = 7; + + /** + * The feature id for the 'Nlog4j Configuration File Path' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH = 8; + + /** + * The feature id for the 'Embedded' attribute. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION__EMBEDDED = 9; + + /** + * The number of structural features of the 'Configuration' class. + * + * + * @generated + * @ordered + */ + public static final int CONFIGURATION_FEATURE_COUNT = 10; + + /** + * The meta object id for the '{@link org.apache.tuscany.model.impl.DASMetaImpl DAS Meta}' class. + * + * + * @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 'Supported Schemas' attribute list. + * + * + * @generated + * @ordered + */ + public static final int DAS_META__SUPPORTED_SCHEMAS = 0; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + public static final int DAS_META__ID = 1; + + /** + * The number of structural features of the 'DAS Meta' class. + * + * + * @generated + * @ordered + */ + public static final int DAS_META_FEATURE_COUNT = 2; + + /** + * + * + * @generated + */ + private EClass configurationEClass = null; + + /** + * + * + * @generated + */ + private EClass dasMetaEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @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)); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package 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. + *

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. + *

Invocation of this method will not affect any packages that have + * already been initialized. + * + * + * @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 Configuration}'. + * + * + * @return the meta object for class 'Configuration'. + * @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 Host}'. + * + * + * @return the meta object for the attribute 'Host'. + * @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 Port}'. + * + * + * @return the meta object for the attribute 'Port'. + * @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 Initial Context Factory}'. + * + * + * @return the meta object for the attribute 'Initial Context Factory'. + * @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 Das Partition Name}'. + * + * + * @return the meta object for the attribute 'Das Partition Name'. + * @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 Schema Partition Name}'. + * + * + * @return the meta object for the attribute 'Schema Partition Name'. + * @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 Security Principal}'. + * + * + * @return the meta object for the attribute 'Security Principal'. + * @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 Security Authentication Type}'. + * + * + * @return the meta object for the attribute 'Security Authentication Type'. + * @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 Security Credentials}'. + * + * + * @return the meta object for the attribute 'Security Credentials'. + * @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 Nlog4j Configuration File Path}'. + * + * + * @return the meta object for the attribute 'Nlog4j Configuration File Path'. + * @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 Embedded}'. + * + * + * @return the meta object for the attribute 'Embedded'. + * @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 DAS Meta}'. + * + * + * @return the meta object for class 'DAS Meta'. + * @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 Supported Schemas}'. + * + * + * @return the meta object for the attribute list 'Supported Schemas'. + * @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 Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @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. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + public ConfigurationFactory getConfigurationFactory() + { + return (ConfigurationFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @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); + } + + /** + * + * + * @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. + * + * + * @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); + } + + /** + * + * Defines literals for the meta objects that represent + *

+ * + * @generated + */ + public interface Literals + { + /** + * The meta object literal for the '{@link org.apache.tuscany.model.impl.ConfigurationImpl Configuration}' class. + * + * + * @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 'Host' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__HOST = eINSTANCE.getConfiguration_Host(); + + /** + * The meta object literal for the 'Port' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__PORT = eINSTANCE.getConfiguration_Port(); + + /** + * The meta object literal for the 'Initial Context Factory' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__INITIAL_CONTEXT_FACTORY = eINSTANCE.getConfiguration_InitialContextFactory(); + + /** + * The meta object literal for the 'Das Partition Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__DAS_PARTITION_NAME = eINSTANCE.getConfiguration_DasPartitionName(); + + /** + * The meta object literal for the 'Schema Partition Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__SCHEMA_PARTITION_NAME = eINSTANCE.getConfiguration_SchemaPartitionName(); + + /** + * The meta object literal for the 'Security Principal' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__SECURITY_PRINCIPAL = eINSTANCE.getConfiguration_SecurityPrincipal(); + + /** + * The meta object literal for the 'Security Authentication Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__SECURITY_AUTHENTICATION_TYPE = eINSTANCE.getConfiguration_SecurityAuthenticationType(); + + /** + * The meta object literal for the 'Security Credentials' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__SECURITY_CREDENTIALS = eINSTANCE.getConfiguration_SecurityCredentials(); + + /** + * The meta object literal for the 'Nlog4j Configuration File Path' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__NLOG4J_CONFIGURATION_FILE_PATH = eINSTANCE.getConfiguration_Nlog4jConfigurationFilePath(); + + /** + * The meta object literal for the 'Embedded' attribute feature. + * + * + * @generated + */ + public static final EAttribute CONFIGURATION__EMBEDDED = eINSTANCE.getConfiguration_Embedded(); + + /** + * The meta object literal for the '{@link org.apache.tuscany.model.impl.DASMetaImpl DAS Meta}' class. + * + * + * @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 'Supported Schemas' attribute list feature. + * + * + * @generated + */ + public static final EAttribute DAS_META__SUPPORTED_SCHEMAS = eINSTANCE.getDASMeta_SupportedSchemas(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @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 @@ +/** + * + * + * + * $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; + +/** + * + * An implementation of the model object 'DAS Meta'. + * + *

+ * The following features are implemented: + *

+ *

+ * + * @generated + */ +public class DASMetaImpl extends EDataObjectImpl implements DASMeta +{ + /** + * + * + * @generated + */ + private static final long serialVersionUID = 1L; + + /** + * The cached value of the '{@link #getSupportedSchemas() Supported Schemas}' attribute list. + * + * + * @see #getSupportedSchemas() + * @generated + * @ordered + */ + protected EList supportedSchemas; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = "0"; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected DASMetaImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ConfigurationPackageImpl.Literals.DAS_META; + } + + /** + * + * + * @generated + */ + public List getSupportedSchemas() + { + if (supportedSchemas == null) + { + supportedSchemas = new EDataTypeUniqueEList(String.class, this, ConfigurationPackageImpl.DAS_META__SUPPORTED_SCHEMAS); + } + return supportedSchemas; + } + + /** + * + * + * @generated + */ + public String getId() + { + return id; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case ConfigurationPackageImpl.DAS_META__SUPPORTED_SCHEMAS: + getSupportedSchemas().clear(); + getSupportedSchemas().addAll((Collection)newValue); + return; + case ConfigurationPackageImpl.DAS_META__ID: + setId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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 @@ +/** + * + * + * + * $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; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.apache.tuscany.model.impl.ConfigurationPackageImpl + * @generated + */ +public class ConfigurationAdapterFactory extends AdapterFactoryImpl +{ + /** + * The cached model package. + * + * + * @generated + */ + protected static ConfigurationPackageImpl modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public ConfigurationAdapterFactory() + { + if (modelPackage == null) + { + modelPackage = ConfigurationPackageImpl.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected ConfigurationSwitch modelSwitch = + new ConfigurationSwitch() + { + @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 target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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 Configuration}'. + * + * 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. + * + * @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 DAS Meta}'. + * + * 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. + * + * @return the new adapter. + * @see org.apache.tuscany.model.DASMeta + * @generated + */ + public Adapter createDASMetaAdapter() + { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @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 @@ +/** + * + * + * + * $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; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.apache.tuscany.model.impl.ConfigurationPackageImpl + * @generated + */ +public class ConfigurationSwitch +{ + /** + * The cached model package + * + * + * @generated + */ + protected static ConfigurationPackageImpl modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public ConfigurationSwitch() + { + if (modelPackage == null) + { + modelPackage = ConfigurationPackageImpl.eINSTANCE; + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + public T doSwitch(EObject theEObject) + { + return doSwitch(theEObject.eClass(), theEObject); + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + protected T doSwitch(EClass theEClass, EObject theEObject) + { + if (theEClass.eContainer() == modelPackage) + { + return doSwitch(theEClass.getClassifierID(), theEObject); + } + else + { + List eSuperTypes = theEClass.getESuperTypes(); + return + eSuperTypes.isEmpty() ? + defaultCase(theEObject) : + doSwitch(eSuperTypes.get(0), theEObject); + } + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX 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 'Configuration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Configuration'. + * @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 'DAS Meta'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DAS Meta'. + * @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 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + public T defaultCase(EObject object) + { + return null; + } + +} //ConfigurationSwitch -- cgit v1.2.3