directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r543239 [4/37] - in /directory/sandbox/oersoy/das.testing/das.ldap.parent: ./ das.ldap.configuration.model.ecore.v100/ das.ldap.configuration.model.ecore.v100/.settings/ das.ldap.configuration.model.ecore.v100/model/ das.ldap.configuration....
Date Thu, 31 May 2007 19:58:38 GMT
Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.java Thu May 31 12:58:13 2007
@@ -0,0 +1,627 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.impl;
+
+import java.util.Hashtable;
+
+import javax.naming.NamingException;
+
+import javax.naming.directory.DirContext;
+
+import org.apache.tuscany.das.ldap.configuration.model.v100.ConnectionManager;
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration;
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Factory;
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package;
+
+import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants;
+import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EOperation;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DASLdapModelV100PackageImpl extends EPackageImpl implements DASLdapModelV100Package
+{
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass connectionManagerEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass dasConfigurationEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass attributeTypeConstantsEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass objectClassConstantsEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EDataType namingExceptionEDataType = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EDataType dirContextEDataType = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EDataType hashtableEDataType = null;
+
+    /**
+     * Creates an instance of the model <b>Package</b>, registered with
+     * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+     * package URI value.
+     * <p>Note: the correct way to create the package is via the static
+     * factory method {@link #init init()}, which also performs
+     * initialization of the package, or returns the registered package,
+     * if one already exists.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see org.eclipse.emf.ecore.EPackage.Registry
+     * @see org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Package#eNS_URI
+     * @see #init()
+     * @generated
+     */
+    private DASLdapModelV100PackageImpl()
+    {
+        super(eNS_URI, DASLdapModelV100Factory.eINSTANCE);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private static boolean isInited = false;
+
+    /**
+     * Creates, registers, and initializes the <b>Package</b> for this
+     * model, and for any others upon which it depends.  Simple
+     * dependencies are satisfied by calling this method on all
+     * dependent packages before doing anything else.  This method drives
+     * initialization for interdependent packages directly, in parallel
+     * with this package, itself.
+     * <p>Of this package and its interdependencies, all packages which
+     * have not yet been registered by their URI values are first created
+     * and registered.  The packages are then initialized in two steps:
+     * meta-model objects for all of the packages are created before any
+     * are initialized, since one package's meta-model objects may refer to
+     * those of another.
+     * <p>Invocation of this method will not affect any packages that have
+     * already been initialized.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #eNS_URI
+     * @see #createPackageContents()
+     * @see #initializePackageContents()
+     * @generated
+     */
+    public static DASLdapModelV100Package init()
+    {
+        if (isInited) return (DASLdapModelV100Package)EPackage.Registry.INSTANCE.getEPackage(DASLdapModelV100Package.eNS_URI);
+
+        // Obtain or create and register package
+        DASLdapModelV100PackageImpl theDASLdapModelV100Package = (DASLdapModelV100PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof DASLdapModelV100PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new DASLdapModelV100PackageImpl());
+
+        isInited = true;
+
+        // Create package meta-data objects
+        theDASLdapModelV100Package.createPackageContents();
+
+        // Initialize created meta-data
+        theDASLdapModelV100Package.initializePackageContents();
+
+        // Mark meta-data to indicate it can't be changed
+        theDASLdapModelV100Package.freeze();
+
+        return theDASLdapModelV100Package;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getConnectionManager()
+    {
+        return connectionManagerEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_JavaNamingFactoryInitial()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_JavaNamingSecurityAuthentication()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_JavaNamingSecurityPrincipal()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_JavaNamingSecurityCredentials()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_SchemaPartitionDN()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(4);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_HotPartitionContextFactory()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(5);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_Port()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(6);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_Host()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(7);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getConnectionManager_DasPartitionName()
+    {
+        return (EAttribute)connectionManagerEClass.getEStructuralFeatures().get(8);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getConnectionManager_DasConfiguration()
+    {
+        return (EReference)connectionManagerEClass.getEStructuralFeatures().get(9);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getDASConfiguration()
+    {
+        return dasConfigurationEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfiguration_GenModelName()
+    {
+        return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfiguration_RepositoryBase()
+    {
+        return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfiguration_JarName()
+    {
+        return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfiguration_XsdNsURI()
+    {
+        return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfiguration_XsdNsPrefix()
+    {
+        return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(4);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDASConfiguration_OidPrefix()
+    {
+        return (EAttribute)dasConfigurationEClass.getEStructuralFeatures().get(5);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getAttributeTypeConstants()
+    {
+        return attributeTypeConstantsEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getObjectClassConstants()
+    {
+        return objectClassConstantsEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EDataType getNamingException()
+    {
+        return namingExceptionEDataType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EDataType getDirContext()
+    {
+        return dirContextEDataType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EDataType getHashtable()
+    {
+        return hashtableEDataType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DASLdapModelV100Factory getDASLdapModelV100Factory()
+    {
+        return (DASLdapModelV100Factory)getEFactoryInstance();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private boolean isCreated = false;
+
+    /**
+     * Creates the meta-model objects for the package.  This method is
+     * guarded to have no affect on any invocation but its first.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void createPackageContents()
+    {
+        if (isCreated) return;
+        isCreated = true;
+
+        // Create classes and their features
+        connectionManagerEClass = createEClass(CONNECTION_MANAGER);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__JAVA_NAMING_FACTORY_INITIAL);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__JAVA_NAMING_SECURITY_AUTHENTICATION);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__JAVA_NAMING_SECURITY_PRINCIPAL);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__JAVA_NAMING_SECURITY_CREDENTIALS);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__SCHEMA_PARTITION_DN);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__HOT_PARTITION_CONTEXT_FACTORY);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__PORT);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__HOST);
+        createEAttribute(connectionManagerEClass, CONNECTION_MANAGER__DAS_PARTITION_NAME);
+        createEReference(connectionManagerEClass, CONNECTION_MANAGER__DAS_CONFIGURATION);
+
+        dasConfigurationEClass = createEClass(DAS_CONFIGURATION);
+        createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__GEN_MODEL_NAME);
+        createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__REPOSITORY_BASE);
+        createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__JAR_NAME);
+        createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__XSD_NS_URI);
+        createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__XSD_NS_PREFIX);
+        createEAttribute(dasConfigurationEClass, DAS_CONFIGURATION__OID_PREFIX);
+
+        attributeTypeConstantsEClass = createEClass(ATTRIBUTE_TYPE_CONSTANTS);
+
+        objectClassConstantsEClass = createEClass(OBJECT_CLASS_CONSTANTS);
+
+        // Create data types
+        namingExceptionEDataType = createEDataType(NAMING_EXCEPTION);
+        dirContextEDataType = createEDataType(DIR_CONTEXT);
+        hashtableEDataType = createEDataType(HASHTABLE);
+    }
+
+    /**
+     * <!-- 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
+        connectionManagerEClass.getESuperTypes().add(this.getAttributeTypeConstants());
+        connectionManagerEClass.getESuperTypes().add(this.getObjectClassConstants());
+
+        // Initialize classes and features; add operations and parameters
+        initEClass(connectionManagerEClass, ConnectionManager.class, "ConnectionManager", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getConnectionManager_JavaNamingFactoryInitial(), ecorePackage.getEString(), "javaNamingFactoryInitial", "com.sun.jndi.ldap.LdapCtxFactory", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConnectionManager_JavaNamingSecurityAuthentication(), ecorePackage.getEString(), "javaNamingSecurityAuthentication", "simple", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConnectionManager_JavaNamingSecurityPrincipal(), ecorePackage.getEString(), "javaNamingSecurityPrincipal", "uid=admin,ou=system", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConnectionManager_JavaNamingSecurityCredentials(), ecorePackage.getEString(), "javaNamingSecurityCredentials", "secret", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConnectionManager_SchemaPartitionDN(), ecorePackage.getEString(), "schemaPartitionDN", "ou=schema", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConnectionManager_HotPartitionContextFactory(), ecorePackage.getEString(), "hotPartitionContextFactory", "org.apache.directory.server.core.jndi.CoreContextFactory", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConnectionManager_Port(), ecorePackage.getEString(), "port", "10389", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConnectionManager_Host(), ecorePackage.getEString(), "host", "localhost", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getConnectionManager_DasPartitionName(), ecorePackage.getEString(), "dasPartitionName", "das", 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getConnectionManager_DasConfiguration(), this.getDASConfiguration(), null, "dasConfiguration", null, 0, 1, ConnectionManager.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        EOperation op = addEOperation(connectionManagerEClass, null, "disconnect");
+        addEParameter(op, this.getDirContext(), "dirContext", 0, 1);
+        addEException(op, this.getNamingException());
+
+        addEOperation(connectionManagerEClass, this.getHashtable(), "createAuthenticationEnvironment", 0, 1);
+
+        addEOperation(connectionManagerEClass, this.getHashtable(), "createSchemaEnvironment", 0, 1);
+
+        addEOperation(connectionManagerEClass, this.getHashtable(), "createDasPartitionEnvironment", 0, 1);
+
+        op = addEOperation(connectionManagerEClass, this.getDirContext(), "createDASPartition", 0, 1);
+        addEException(op, this.getNamingException());
+
+        addEOperation(connectionManagerEClass, ecorePackage.getEString(), "getSchemaURL", 0, 1);
+
+        addEOperation(connectionManagerEClass, ecorePackage.getEString(), "getDasURL", 0, 1);
+
+        addEOperation(connectionManagerEClass, ecorePackage.getEString(), "getDASPartitionDN", 0, 1);
+
+        addEOperation(connectionManagerEClass, ecorePackage.getEString(), "getDASSchemaRDN", 0, 1);
+
+        initEClass(dasConfigurationEClass, DASConfiguration.class, "DASConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getDASConfiguration_GenModelName(), ecorePackage.getEString(), "genModelName", "model.genmodel", 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfiguration_RepositoryBase(), ecorePackage.getEString(), "repositoryBase", "/usr/share/java", 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfiguration_JarName(), ecorePackage.getEString(), "jarName", null, 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfiguration_XsdNsURI(), ecorePackage.getEString(), "xsdNsURI", "ou=example, ou=com", 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfiguration_XsdNsPrefix(), ecorePackage.getEString(), "xsdNsPrefix", "ou=example, ou=com", 0, 1, DASConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getDASConfiguration_OidPrefix(), ecorePackage.getEString(), "oidPrefix", "1.3.6.1.4.1.18060.4", 1, 1, DASConfiguration.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        addEOperation(dasConfigurationEClass, ecorePackage.getEResource(), "loadGeneratorModel", 0, 1);
+
+        addEOperation(dasConfigurationEClass, ecorePackage.getEBoolean(), "hasValidNamespaceURI", 0, 1);
+
+        addEOperation(dasConfigurationEClass, ecorePackage.getEBoolean(), "isEPackageMetaDataWritten", 0, 1);
+
+        initEClass(attributeTypeConstantsEClass, AttributeTypeConstants.class, "AttributeTypeConstants", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
+
+        initEClass(objectClassConstantsEClass, ObjectClassConstants.class, "ObjectClassConstants", IS_ABSTRACT, IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
+
+        // Initialize data types
+        initEDataType(namingExceptionEDataType, NamingException.class, "NamingException", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+        initEDataType(dirContextEDataType, DirContext.class, "DirContext", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);
+        initEDataType(hashtableEDataType, Hashtable.class, "Hashtable", !IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS, "java.util.Hashtable<Object, Object>");
+
+        // Create resource
+        createResource(eNS_URI);
+
+        // Create annotations
+        // http://www.eclipse.org/emf/2002/GenModel
+        createGenModelAnnotations();
+    }
+
+    /**
+     * Initializes the annotations for <b>http://www.eclipse.org/emf/2002/GenModel</b>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected void createGenModelAnnotations()
+    {
+        String source = "http://www.eclipse.org/emf/2002/GenModel";		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(0), 
+           source, 
+           new String[] 
+           {
+             "body", "dirContext.close();"
+           });		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(1), 
+           source, 
+           new String[] 
+           {
+             "body", "<%Hashtable<Object, Object>%> env = new Hashtable<Object, Object>();\nenv.put( \n<%javax.naming.Context%>.SECURITY_PRINCIPAL, \nthis.javaNamingSecurityPrincipal );\nenv.put(Context.SECURITY_CREDENTIALS, \nthis.javaNamingSecurityCredentials );\nenv.put(Context.SECURITY_AUTHENTICATION, \nthis.javaNamingSecurityAuthentication );\n\n return env;\n"
+           });		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(2), 
+           source, 
+           new String[] 
+           {
+             "body", "<%Hashtable<Object, Object>%> env = new Hashtable<Object, Object>();\nenv.put( \n<%javax.naming.Context%>.SECURITY_PRINCIPAL, \nthis.javaNamingSecurityPrincipal );\nenv.put(Context.SECURITY_CREDENTIALS, \nthis.javaNamingSecurityCredentials );\nenv.put(Context.SECURITY_AUTHENTICATION, \nthis.javaNamingSecurityAuthentication );\n\n return env;\n"
+           });		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(3), 
+           source, 
+           new String[] 
+           {
+             "body", "<%Hashtable<Object, Object>%> env = new Hashtable<Object, Object>();\nenv.put( \n<%javax.naming.Context%>.SECURITY_PRINCIPAL, \nthis.javaNamingSecurityPrincipal );\nenv.put(Context.SECURITY_CREDENTIALS, \nthis.javaNamingSecurityCredentials );\nenv.put(Context.SECURITY_AUTHENTICATION, \nthis.javaNamingSecurityAuthentication );\n\n return env;\n"
+           });		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(4), 
+           source, 
+           new String[] 
+           {
+             "body", "<%org.apache.directory.server.core.configuration.MutableStartupConfiguration%> configuration  = \nnew MutableStartupConfiguration();\n        \n<%org.apache.directory.server.core.configuration.MutablePartitionConfiguration%> dasPartition = \n new MutablePartitionConfiguration();\n        \ndasPartition.setName( getDasPartitionName() );\ndasPartition.setSuffix( getDASPartitionDN() );\n\n<%java.util.Set%><MutablePartitionConfiguration> partitions = \nnew <%java.util.HashSet%><MutablePartitionConfiguration> ();\npartitions.add( dasPartition );\nconfiguration.setContextPartitionConfigurations( partitions );\n        \n<%javax.naming.directory.Attributes%> suffixAttributes = new <%javax.naming.directory.BasicAttributes%>();\nsuffixAttributes.put( \"objectClass\", \"top\");\nsuffixAttributes.get( \"objectClass\" ).add( \"organizationalUnit\" );\nsuffixAttributes.put( \"ou\", \"das\" );\n\ndasPartition.setContextEntry( suffixAttributes );\n        \n<%java.uti
 l.Hashtable%><Object, Object> env = createAuthenticationEnvironment();\n        \nenv.put(Context.INITIAL_CONTEXT_FACTORY, \nhotPartitionContextFactory);\n        \nenv.put( Context.PROVIDER_URL, getDASPartitionDN()  );\n\nenv.put( <%org.apache.directory.server.core.configuration.Configuration%>.JNDI_KEY, configuration );\n        \nreturn new <%javax.naming.directory.InitialDirContext%>( env );"
+           });		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(5), 
+           source, 
+           new String[] 
+           {
+             "body", "return \"ldap://\" + getHost() + \":\" + getPort() + \"/\" + getSchemaPartitionDN();"
+           });		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(6), 
+           source, 
+           new String[] 
+           {
+             "body", "return \"ldap://\" + getHost() + \":\" + getPort() + \"/\" + getDASPartitionDN();"
+           });		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(7), 
+           source, 
+           new String[] 
+           {
+             "body", "return \"ou=\" + getDasPartitionName();"
+           });		
+        addAnnotation
+          (connectionManagerEClass.getEOperations().get(8), 
+           source, 
+           new String[] 
+           {
+             "body", "return \"cn=\" + getDasPartitionName();"
+           });		
+        addAnnotation
+          (dasConfigurationEClass.getEOperations().get(1), 
+           source, 
+           new String[] 
+           {
+             "body", "        <%org.eclipse.emf.common.util.URI%> xsdNamespaceURI = URI.createURI(xsdNsURI);\n        String authority    = xsdNamespaceURI.authority();\n\n        if ( authority.contains( \":\" ) )\n        {\n            return false;\n        }\n        \n        if (!authority.contains( \".\" ))\n        {\n            return false;\n        }\n        return true;"
+           });
+    }
+
+} //DASLdapModelV100PackageImpl

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.java?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.java (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.java Thu May 31 12:58:13 2007
@@ -0,0 +1,199 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.util;
+
+import org.apache.tuscany.das.ldap.configuration.model.v100.*;
+
+import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants;
+import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants;
+
+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.das.ldap.configuration.model.v100.DASLdapModelV100Package
+ * @generated
+ */
+public class DASLdapModelV100AdapterFactory extends AdapterFactoryImpl
+{
+    /**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static DASLdapModelV100Package modelPackage;
+
+    /**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DASLdapModelV100AdapterFactory()
+    {
+        if (modelPackage == null)
+        {
+            modelPackage = DASLdapModelV100Package.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 DASLdapModelV100Switch<Adapter> modelSwitch =
+        new DASLdapModelV100Switch<Adapter>()
+        {
+            @Override
+            public Adapter caseConnectionManager(ConnectionManager object)
+            {
+                return createConnectionManagerAdapter();
+            }
+            @Override
+            public Adapter caseDASConfiguration(DASConfiguration object)
+            {
+                return createDASConfigurationAdapter();
+            }
+            @Override
+            public Adapter caseAttributeTypeConstants(AttributeTypeConstants object)
+            {
+                return createAttributeTypeConstantsAdapter();
+            }
+            @Override
+            public Adapter caseObjectClassConstants(ObjectClassConstants object)
+            {
+                return createObjectClassConstantsAdapter();
+            }
+            @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.das.ldap.configuration.model.v100.ConnectionManager <em>Connection Manager</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.das.ldap.configuration.model.v100.ConnectionManager
+     * @generated
+     */
+    public Adapter createConnectionManagerAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration <em>DAS 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.das.ldap.configuration.model.v100.DASConfiguration
+     * @generated
+     */
+    public Adapter createDASConfigurationAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants <em>Attribute Type Constants</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.das.ldap.schema.constants.AttributeTypeConstants
+     * @generated
+     */
+    public Adapter createAttributeTypeConstantsAdapter()
+    {
+        return null;
+    }
+
+    /**
+     * Creates a new adapter for an object of class '{@link org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants <em>Object Class Constants</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.das.ldap.schema.constants.ObjectClassConstants
+     * @generated
+     */
+    public Adapter createObjectClassConstantsAdapter()
+    {
+        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;
+    }
+
+} //DASLdapModelV100AdapterFactory

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.java?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.java (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.java Thu May 31 12:58:13 2007
@@ -0,0 +1,202 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.util;
+
+import java.util.List;
+
+import org.apache.tuscany.das.ldap.configuration.model.v100.*;
+
+import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants;
+import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants;
+
+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.das.ldap.configuration.model.v100.DASLdapModelV100Package
+ * @generated
+ */
+public class DASLdapModelV100Switch<T>
+{
+    /**
+     * The cached model package
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected static DASLdapModelV100Package modelPackage;
+
+    /**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DASLdapModelV100Switch()
+    {
+        if (modelPackage == null)
+        {
+            modelPackage = DASLdapModelV100Package.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 DASLdapModelV100Package.CONNECTION_MANAGER:
+            {
+                ConnectionManager connectionManager = (ConnectionManager)theEObject;
+                T result = caseConnectionManager(connectionManager);
+                if (result == null) result = caseAttributeTypeConstants(connectionManager);
+                if (result == null) result = caseObjectClassConstants(connectionManager);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case DASLdapModelV100Package.DAS_CONFIGURATION:
+            {
+                DASConfiguration dasConfiguration = (DASConfiguration)theEObject;
+                T result = caseDASConfiguration(dasConfiguration);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Connection Manager</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Connection Manager</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseConnectionManager(ConnectionManager object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>DAS 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 interpretting the object as an instance of '<em>DAS Configuration</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseDASConfiguration(DASConfiguration object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Attribute Type Constants</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Attribute Type Constants</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseAttributeTypeConstants(AttributeTypeConstants object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>Object Class Constants</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Object Class Constants</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+    public T caseObjectClassConstants(ObjectClassConstants object)
+    {
+        return null;
+    }
+
+    /**
+     * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * <!-- begin-user-doc -->
+     * This implementation returns null;
+     * returning a non-null result will terminate the switch, but this is the last case anyway.
+     * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+     * @generated
+     */
+    public T defaultCase(EObject object)
+    {
+        return null;
+    }
+
+} //DASLdapModelV100Switch

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.java?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.java (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.java Thu May 31 12:58:13 2007
@@ -0,0 +1,20 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.validation;
+
+
+/**
+ * A sample validator interface for {@link org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface AttributeTypeConstantsValidator
+{
+    boolean validate();
+
+}

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.java?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.java (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.java Thu May 31 12:58:13 2007
@@ -0,0 +1,31 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.validation;
+
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration;
+
+/**
+ * A sample validator interface for {@link org.apache.tuscany.das.ldap.configuration.model.v100.ConnectionManager}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ConnectionManagerValidator
+{
+    boolean validate();
+
+    boolean validateJavaNamingFactoryInitial(String value);
+    boolean validateJavaNamingSecurityAuthentication(String value);
+    boolean validateJavaNamingSecurityPrincipal(String value);
+    boolean validateJavaNamingSecurityCredentials(String value);
+    boolean validateSchemaPartitionDN(String value);
+    boolean validateHotPartitionContextFactory(String value);
+    boolean validatePort(String value);
+    boolean validateHost(String value);
+    boolean validateDasPartitionName(String value);
+    boolean validateDasConfiguration(DASConfiguration value);
+}

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.java?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.java (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.java Thu May 31 12:58:13 2007
@@ -0,0 +1,26 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.validation;
+
+
+/**
+ * A sample validator interface for {@link org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface DASConfigurationValidator
+{
+    boolean validate();
+
+    boolean validateGenModelName(String value);
+    boolean validateRepositoryBase(String value);
+    boolean validateJarName(String value);
+    boolean validateXsdNsURI(String value);
+    boolean validateXsdNsPrefix(String value);
+    boolean validateOidPrefix(String value);
+}

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.java?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.java (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/main/java/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.java Thu May 31 12:58:13 2007
@@ -0,0 +1,20 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.das.ldap.configuration.model.v100.validation;
+
+
+/**
+ * A sample validator interface for {@link org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface ObjectClassConstantsValidator
+{
+    boolean validate();
+
+}

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/test/java/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/test/java/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.java?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/test/java/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.java (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/src/test/java/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.java Thu May 31 12:58:13 2007
@@ -0,0 +1,238 @@
+package org.apache.tuscany.das.ldap.configuration.v100;
+
+import java.util.Hashtable;
+
+import javax.naming.NamingException;
+import javax.naming.directory.Attribute;
+import javax.naming.directory.Attributes;
+import javax.naming.directory.BasicAttribute;
+import javax.naming.directory.BasicAttributes;
+import javax.naming.directory.DirContext;
+import javax.naming.directory.InitialDirContext;
+
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASConfiguration;
+import org.apache.tuscany.das.ldap.configuration.model.v100.DASLdapModelV100Factory;
+import org.apache.tuscany.das.ldap.configuration.model.v100.ConnectionManager;
+import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants;
+import org.apache.tuscany.das.ldap.schema.constants.ObjectClassConstants;
+import org.apache.tuscany.das.ldap.util.InitialContextCreator;
+
+import junit.framework.TestCase;
+
+public class ConnectionManagerTest extends TestCase 
+implements AttributeTypeConstants, ObjectClassConstants {
+
+    private DASLdapModelV100Factory dasLdapV100Factory = null; 
+    private ConnectionManager connectionManager        = null;
+//    private DirContext partitionContext                = null;
+//    private DirContext schemaContext                   = null;
+    
+    private String xsdNamespace = 
+        "http://example.org/users/accounts";
+
+	protected void setUp() 
+    throws Exception {
+		super.setUp();
+        dasLdapV100Factory = 
+            DASLdapModelV100Factory.eINSTANCE;
+        
+        DASConfiguration dasConfiguration = 
+            dasLdapV100Factory.createDASConfiguration();
+        
+        dasConfiguration.setXsdNsURI( xsdNamespace );
+        
+        connectionManager  = 
+            dasLdapV100Factory.createConnectionManager();
+        
+        connectionManager.setDasPartitionName( "system" );
+        
+        connectionManager.setDasConfiguration( dasConfiguration );
+    }
+
+	protected void tearDown() 
+    throws Exception {
+		super.tearDown();
+    }
+    
+
+    /*
+    public void testCreateObjectClass() 
+    throws NamingException
+    {
+        DirContext directoryContext = 
+            connectionManager.createSchemaObjectClassesContext();
+        
+        Attribute attribute = new BasicAttribute( "objectClass",   "metaObjectclass" );
+        attribute.add("metaTop" );
+        attribute.add( "top" );
+
+        Attributes attributes = new BasicAttributes();
+        
+        attributes.put( "m-oid",         "1.3.6.1.4.1.18060.18060.18060.0.4.1.2.28" );
+        //attributes.put( "m-description", "org.example.user.account.Account" );
+        //attributes.put( "m-must",        "id" );
+        //attributes.put( "m-must",        "org-example-user-account-Account-name" );
+        //attributes.put( "m-may",         "street" );
+        attributes.put( "m-obsolete",    "false" );
+        
+        directoryContext.createSubcontext( 
+            "m-oid=1.3.6.1.4.1.18060.18060.18060.0.4.1.2.28", 
+            attributes);
+        
+        connectionManager.disconnect( directoryContext );   
+    }
+    */
+
+    /*
+    private void modify( int op, List<String> descriptions, String opAttr ) throws NamingException
+    {
+        LdapDN dn = new LdapDN( getSubschemaSubentryDN() );
+        Attribute attr = new AttributeImpl( opAttr );
+        for ( String description : descriptions )
+        {
+            attr.add( description );
+        }
+        
+        Attributes mods = new AttributesImpl();
+        mods.put( attr );
+        
+        rootDSE.modifyAttributes( dn, op, mods );
+    }
+    
+    
+    
+    private void createDummySyntaxChecker( String oid, String schema ) throws NamingException
+    {
+        List<String> descriptions = new ArrayList<String>();
+        descriptions.add( "( " + oid + " DESC 'bogus desc' FQCN " + AcceptAllSyntaxChecker.class.getName() 
+            + " X-SCHEMA '" + schema + "' )" );
+        modify( DirContext.ADD_ATTRIBUTE, descriptions, "syntaxCheckers" );
+    }
+    */
+
+    /*
+    public void testCreateSyntax() throws NamingException
+    {
+        DirContext syntaxContext = 
+            connectionManager.createSchemaSyntaxesContext();
+        
+        DirContext syntaxCheckersContext = 
+            connectionManager.createSchemaSyntaxCheckersContext();
+        
+
+        Attributes syntaxCheckerAttributes = 
+            new BasicAttributes();
+        Attribute syntaxCheckerAttribute   = 
+            new BasicAttribute("objectClass", "metaSyntaxChecker");
+        syntaxCheckerAttribute.add("metaTop");
+        syntaxCheckerAttribute.add("top");
+        
+        syntaxCheckerAttributes.put( syntaxCheckerAttribute );
+        syntaxCheckerAttributes.put( 
+            "m-fqcn", 
+            "org.apache.directory.shared.ldap.schema.syntax.AcceptAllSyntaxChecker" );
+        
+        syntaxCheckerAttributes.put( "m-oid","1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5" );
+        syntaxCheckersContext.destroySubcontext( "m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5" );
+        syntaxCheckersContext.createSubcontext(
+            "m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5",  
+            syntaxCheckerAttributes);
+
+        
+        Attributes attributes = new BasicAttributes();
+        Attribute attribute = new BasicAttribute(
+            "objectClass", 
+            "metaSyntax");
+        attribute.add("metaTop");
+        attribute.add("top");
+
+        attributes.put( "m-oid","1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5" );
+        
+        syntaxContext.createSubcontext( 
+            "m-oid=1.3.6.1.4.1.18060.0.4.0.0.1.1.5.5.5.5",  
+            attributes);
+    }
+    */
+    
+/*
+    public void testConnect() 
+    throws NamingException
+    {
+        partitionContext = connectionManager.connect();
+        
+        assertEquals(
+            partitionContext.getNameInNamespace(), 
+            "ou=das");
+
+        System.out.println(partitionContext.getNameInNamespace());
+
+        partitionContext.close();
+    }
+*/
+    
+    /*
+    public void testSchemaConnect() 
+    throws NamingException
+    {
+        
+        schemaContext   = connectionManager.schemaConnect();
+        
+        assertEquals(
+            schemaContext.getNameInNamespace(),
+            "cn=das,ou=schema");
+        
+        System.out.println(schemaContext.getNameInNamespace());
+        schemaContext.close();
+        
+    }
+    */
+
+
+    /*
+    public void testIsEPackageMetaDataWritten() 
+    throws NamingException
+    {
+//      directoryContext = jndiProperties.schemaConnect();
+        directoryContext = connect();
+        DirContext dirContext = ( DirContext ) 
+        directoryContext.createSubcontext( "cn=test1" );
+        
+        dirContext.createSubcontext( "cn=test2" );
+        
+        directoryContext.lookup( "cn=test2, cn=test1" );
+        
+        dirContext.destroySubcontext( "cn=test2" );
+        directoryContext.destroySubcontext( "cn=test1" );
+        
+        directoryContext.close();
+    }
+    */
+    
+    public DirContext connect() throws NamingException
+    {
+                Hashtable<String,String> env = new Hashtable<String, String>();
+                //"org.apache.directory.server.core.jndi.CoreContextFactory"
+                env.put( 
+                    "java.naming.factory.initial", 
+                    "com.sun.jndi.ldap.LdapCtxFactory" );
+                env.put( 
+                    "java.naming.provider.url", 
+                    "ldap://localhost:10389/ou=schema");
+                env.put( 
+                    "java.naming.security.authentication", 
+                    "simple");
+                env.put( 
+                    "java.naming.security.principal", 
+                    "uid=admin,ou=system" );
+                env.put( 
+                   "java.naming.security.credentials", 
+                   "secret" );
+                
+                return new InitialDirContext(env);
+    }
+
+	public void testModelLoad()
+	{
+		assertTrue(true);
+	}
+}

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/ConnectionManager.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/ConnectionManager.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/ConnectionManager.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASConfiguration.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASConfiguration.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASConfiguration.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Factory.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Factory.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Factory.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package$Literals.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package%24Literals.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package$Literals.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/DASLdapModelV100Package.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/ConnectionManagerImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/ConnectionManagerImpl.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/ConnectionManagerImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigurationImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigurationImpl.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASConfigurationImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100FactoryImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/impl/DASLdapModelV100PackageImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory$1.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory%241.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory$1.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100AdapterFactory.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/util/DASLdapModelV100Switch.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/AttributeTypeConstantsValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ConnectionManagerValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/DASConfigurationValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/classes/org/apache/tuscany/das/ldap/configuration/model/v100/validation/ObjectClassConstantsValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/das.ldap.configuration.model.v100-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/das.ldap.configuration.model.v100-1.0-SNAPSHOT.jar?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/das.ldap.configuration.model.v100-1.0-SNAPSHOT.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/TEST-org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/TEST-org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.xml?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/TEST-org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.xml (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/TEST-org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.xml Thu May 31 12:58:13 2007
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.282" errors="0" skipped="0" tests="1" name="org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest">
+  <properties>
+    <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
+    <property name="sun.boot.library.path" value="/usr/java/jdk1.6.0/jre/lib/i386"/>
+    <property name="java.vm.version" value="1.6.0-b105"/>
+    <property name="java.vm.vendor" value="Sun Microsystems Inc."/>
+    <property name="java.vendor.url" value="http://java.sun.com/"/>
+    <property name="path.separator" value=":"/>
+    <property name="java.vm.name" value="Java HotSpot(TM) Client VM"/>
+    <property name="file.encoding.pkg" value="sun.io"/>
+    <property name="user.country" value="US"/>
+    <property name="sun.java.launcher" value="SUN_STANDARD"/>
+    <property name="sun.os.patch.level" value="unknown"/>
+    <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
+    <property name="user.dir" value="/home/ole/workspace/das.ldap.parent/das.ldap.configuration.model.v100"/>
+    <property name="java.runtime.version" value="1.6.0-b105"/>
+    <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
+    <property name="basedir" value="/home/ole/workspace/das.ldap.parent/das.ldap.configuration.model.v100"/>
+    <property name="java.endorsed.dirs" value="/usr/java/jdk1.6.0/jre/lib/endorsed"/>
+    <property name="os.arch" value="i386"/>
+    <property name="java.io.tmpdir" value="/tmp"/>
+    <property name="line.separator" value="
+"/>
+    <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
+    <property name="os.name" value="Linux"/>
+    <property name="sun.jnu.encoding" value="UTF-8"/>
+    <property name="java.library.path" value="/usr/java/jdk1.6.0/jre/lib/i386/client:/usr/java/jdk1.6.0/jre/lib/i386:/usr/java/jdk1.6.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib"/>
+    <property name="java.specification.name" value="Java Platform API Specification"/>
+    <property name="java.class.version" value="50.0"/>
+    <property name="sun.management.compiler" value="HotSpot Client Compiler"/>
+    <property name="os.version" value="2.6.20-1.2948.fc6"/>
+    <property name="user.home" value="/home/ole"/>
+    <property name="user.timezone" value="America/Chicago"/>
+    <property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
+    <property name="file.encoding" value="UTF-8"/>
+    <property name="java.specification.version" value="1.6"/>
+    <property name="user.name" value="ole"/>
+    <property name="java.class.path" value="/home/ole/.m2/repository/org/apache/maven/surefire/surefire-api/2.0/surefire-api-2.0.jar:/home/ole/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/ole/.m2/repository/org/apache/maven/surefire/surefire-booter/2.0/surefire-booter-2.0.jar"/>
+    <property name="java.vm.specification.version" value="1.0"/>
+    <property name="sun.arch.data.model" value="32"/>
+    <property name="java.home" value="/usr/java/jdk1.6.0/jre"/>
+    <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
+    <property name="user.language" value="en"/>
+    <property name="java.vm.info" value="mixed mode, sharing"/>
+    <property name="java.version" value="1.6.0"/>
+    <property name="java.ext.dirs" value="/usr/java/jdk1.6.0/jre/lib/ext:/usr/java/packages/lib/ext"/>
+    <property name="sun.boot.class.path" value="/usr/java/jdk1.6.0/jre/lib/resources.jar:/usr/java/jdk1.6.0/jre/lib/rt.jar:/usr/java/jdk1.6.0/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0/jre/lib/jsse.jar:/usr/java/jdk1.6.0/jre/lib/jce.jar:/usr/java/jdk1.6.0/jre/lib/charsets.jar:/usr/java/jdk1.6.0/jre/classes"/>
+    <property name="java.vendor" value="Sun Microsystems Inc."/>
+    <property name="localRepository" value="/home/ole/.m2/repository"/>
+    <property name="file.separator" value="/"/>
+    <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/>
+    <property name="sun.cpu.endian" value="little"/>
+    <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
+    <property name="sun.cpu.isalist" value=""/>
+  </properties>
+  <testcase time="0.117" name="testModelLoad"/>
+</testsuite>
\ No newline at end of file

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.txt
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.txt?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.txt (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/surefire-reports/org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest.txt Thu May 31 12:58:13 2007
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: org.apache.tuscany.das.ldap.configuration.v100.ConnectionManagerTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.295 sec

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/test-classes/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/test-classes/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.class?view=auto&rev=543239
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/target/test-classes/org/apache/tuscany/das/ldap/configuration/v100/ConnectionManagerTest.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/text/description.txt
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/text/description.txt?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/text/description.txt (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.configuration.model.v100/text/description.txt Thu May 31 12:58:13 2007
@@ -0,0 +1,50 @@
+Model Model
+
+This model description is not a real EMF artifact. It was generated by the
+org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's
+code generator can be extended.
+This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+
+Package v100 <http://org.apache.tuscany/das.ldap.configuration.model.ecore.v100>
+
+  Class ConnectionManager -> AttributeTypeConstants, ObjectClassConstants
+    Attribute javaNamingFactoryInitial : EString
+    Attribute javaNamingSecurityAuthentication : EString
+    Attribute javaNamingSecurityPrincipal : EString
+    Attribute javaNamingSecurityCredentials : EString
+    Attribute schemaPartitionDN : EString
+    Attribute hotPartitionContextFactory : EString
+    Attribute port : EString
+    Attribute host : EString
+    Attribute dasPartitionName : EString
+    Reference dasConfiguration : DASConfiguration
+    Operation disconnect(DirContext) : void
+    Operation createAuthenticationEnvironment() : Hashtable
+    Operation createSchemaEnvironment() : Hashtable
+    Operation createDasPartitionEnvironment() : Hashtable
+    Operation createDASPartition() : DirContext
+    Operation getSchemaURL() : EString
+    Operation getDasURL() : EString
+    Operation getDASPartitionDN() : EString
+    Operation getDASSchemaRDN() : EString
+
+  Class DASConfiguration
+    Attribute genModelName : EString
+    Attribute repositoryBase : EString
+    Attribute jarName : EString
+    Attribute xsdNsURI : EString
+    Attribute xsdNsPrefix : EString
+    Attribute oidPrefix : EString<<1..1>>
+    Operation loadGeneratorModel() : EResource
+    Operation hasValidNamespaceURI() : EBoolean
+    Operation isEPackageMetaDataWritten() : EBoolean
+
+  Class AttributeTypeConstants
+
+  Class ObjectClassConstants
+
+  DataType NamingException <javax.naming.NamingException>
+
+  DataType DirContext <javax.naming.directory.DirContext>
+
+  DataType Hashtable <java.util.Hashtable>

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.classpath
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.classpath?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.classpath (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.classpath Thu May 31 12:58:13 2007
@@ -0,0 +1,6 @@
+<classpath>
+  <classpathentry kind="src" path="src/main/java"/>
+  <classpathentry kind="output" path="target/classes"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+  <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+</classpath>
\ No newline at end of file

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.project
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.project?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.project (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.project Thu May 31 12:58:13 2007
@@ -0,0 +1,14 @@
+<projectDescription>
+  <name>das.ldap.constants</name>
+  <comment/>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+      <arguments/>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.settings/org.eclipse.jdt.core.prefs?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.settings/org.eclipse.jdt.core.prefs (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/.settings/org.eclipse.jdt.core.prefs Thu May 31 12:58:13 2007
@@ -0,0 +1,5 @@
+#Wed Apr 25 09:53:11 CDT 2007
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5

Added: directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/pom.xml?view=auto&rev=543239
==============================================================================
--- directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/pom.xml (added)
+++ directory/sandbox/oersoy/das.testing/das.ldap.parent/das.ldap.constants/pom.xml Thu May 31 12:58:13 2007
@@ -0,0 +1,21 @@
+<?xml version="1.0"?><project>
+  <parent>
+    <artifactId>das.ldap.parent</artifactId>
+    <groupId>org.apache.tuscany</groupId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.tuscany</groupId>
+  <artifactId>das.ldap.constants</artifactId>
+  <name>das.ldap.constants</name>
+  <version>1.0-SNAPSHOT</version>
+  <url>http://maven.apache.org</url>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file



Mime
View raw message