From 0266166cb9ff9535c150250073ea1e57b42d2693 Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Sat, 14 Jan 2012 11:27:01 +0100 Subject: Adjusted copyrights to 2012 --- .../src/org/eclipse/emf/cdo/defs/CDOAuditDef.java | 114 +- .../emf/cdo/defs/CDOClientProtocolFactoryDef.java | 54 +- .../emf/cdo/defs/CDOClientProtocolProviderDef.java | 52 +- .../org/eclipse/emf/cdo/defs/CDODefsFactory.java | 260 +-- .../org/eclipse/emf/cdo/defs/CDODefsPackage.java | 1846 ++++++++++---------- .../emf/cdo/defs/CDOEagerPackageRegistryDef.java | 50 +- .../emf/cdo/defs/CDOLazyPackageRegistryDef.java | 50 +- .../emf/cdo/defs/CDOPackageRegistryDef.java | 102 +- .../org/eclipse/emf/cdo/defs/CDOResourceDef.java | 228 +-- .../org/eclipse/emf/cdo/defs/CDOSessionDef.java | 324 ++-- .../eclipse/emf/cdo/defs/CDOTransactionDef.java | 50 +- .../src/org/eclipse/emf/cdo/defs/CDOViewDef.java | 114 +- .../eclipse/emf/cdo/defs/EDynamicPackageDef.java | 112 +- .../eclipse/emf/cdo/defs/EGlobalPackageDef.java | 50 +- .../src/org/eclipse/emf/cdo/defs/EPackageDef.java | 116 +- .../src/org/eclipse/emf/cdo/defs/ResourceMode.java | 538 +++--- .../eclipse/emf/cdo/defs/impl/CDOAuditDefImpl.java | 386 ++-- .../defs/impl/CDOClientProtocolFactoryDefImpl.java | 114 +- .../emf/cdo/defs/impl/CDODefsFactoryImpl.java | 592 +++---- .../emf/cdo/defs/impl/CDODefsPackageImpl.java | 1216 ++++++------- .../defs/impl/CDOEagerPackageRegistryDefImpl.java | 122 +- .../defs/impl/CDOLazyPackageRegistryDefImpl.java | 120 +- .../cdo/defs/impl/CDOPackageRegistryDefImpl.java | 508 +++--- .../emf/cdo/defs/impl/CDOResourceDefImpl.java | 658 +++---- .../emf/cdo/defs/impl/CDOSessionDefImpl.java | 910 +++++----- .../emf/cdo/defs/impl/CDOTransactionDefImpl.java | 114 +- .../eclipse/emf/cdo/defs/impl/CDOViewDefImpl.java | 390 ++--- .../emf/cdo/defs/impl/EDynamicPackageDefImpl.java | 390 ++--- .../emf/cdo/defs/impl/EGlobalPackageDefImpl.java | 114 +- .../eclipse/emf/cdo/defs/impl/EPackageDefImpl.java | 378 ++-- .../emf/cdo/defs/util/CDODefsAdapterFactory.java | 844 ++++----- .../eclipse/emf/cdo/defs/util/CDODefsSwitch.java | 1128 ++++++------ .../org/eclipse/emf/cdo/defs/util/CDODefsUtil.java | 194 +- 33 files changed, 6119 insertions(+), 6119 deletions(-) (limited to 'plugins/org.eclipse.emf.cdo.defs/src') diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOAuditDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOAuditDef.java index 4d795a6ffe..330b2cbc86 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOAuditDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOAuditDef.java @@ -1,57 +1,57 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import java.util.Date; - -/** - * A representation of the model object 'CDO Audit Def'. - * - *
- * The following features are supported: - *
- * If the meaning of the 'Time Stamp' attribute isn't clear, there really should be more of a description - * here... - *
- * - * @return the value of the 'Time Stamp' attribute. - * @see #setTimeStamp(Date) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOAuditDef_TimeStamp() - * @model required="true" - * @generated - */ - Date getTimeStamp(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOAuditDef#getTimeStamp Time Stamp}' attribute. - * - * @param value the new value of the 'Time Stamp' attribute. - * @see #getTimeStamp() - * @generated - */ - void setTimeStamp(Date value); - -} // CDOAuditDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +import java.util.Date; + +/** + * A representation of the model object 'CDO Audit Def'. + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Time Stamp' attribute isn't clear, there really should be more of a description + * here... + *
+ * + * @return the value of the 'Time Stamp' attribute. + * @see #setTimeStamp(Date) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOAuditDef_TimeStamp() + * @model required="true" + * @generated + */ + Date getTimeStamp(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOAuditDef#getTimeStamp Time Stamp}' attribute. + * + * @param value the new value of the 'Time Stamp' attribute. + * @see #getTimeStamp() + * @generated + */ + void setTimeStamp(Date value); + +} // CDOAuditDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolFactoryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolFactoryDef.java index f44fe0d569..b175e11677 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolFactoryDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolFactoryDef.java @@ -1,27 +1,27 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import org.eclipse.net4j.defs.ClientProtocolFactoryDef; - -/** - * A representation of the model object 'CDO Client Protocol Factory Def'. - * - * - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOClientProtocolFactoryDef() - * @model - * @generated - */ -public interface CDOClientProtocolFactoryDef extends ClientProtocolFactoryDef -{ -} // CDOClientProtocolFactoryDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +import org.eclipse.net4j.defs.ClientProtocolFactoryDef; + +/** + * A representation of the model object 'CDO Client Protocol Factory Def'. + * + * + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOClientProtocolFactoryDef() + * @model + * @generated + */ +public interface CDOClientProtocolFactoryDef extends ClientProtocolFactoryDef +{ +} // CDOClientProtocolFactoryDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolProviderDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolProviderDef.java index a007c55ab3..492cbcff8c 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolProviderDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolProviderDef.java @@ -1,26 +1,26 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import org.eclipse.net4j.defs.ProtocolProviderDef; - -/** - * A representation of the model object 'CDO Client Protocol Provider Def'. - * - * @see org.eclipse.emf.cdo.cdodefs.CdodefsPackage#getCDOClientProtocolProviderDef() - * @model - * @generated - */ -public interface CDOClientProtocolProviderDef extends ProtocolProviderDef -{ -} // CDOClientProtocolProviderDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +import org.eclipse.net4j.defs.ProtocolProviderDef; + +/** + * A representation of the model object 'CDO Client Protocol Provider Def'. + * + * @see org.eclipse.emf.cdo.cdodefs.CdodefsPackage#getCDOClientProtocolProviderDef() + * @model + * @generated + */ +public interface CDOClientProtocolProviderDef extends ProtocolProviderDef +{ +} // CDOClientProtocolProviderDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsFactory.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsFactory.java index 11bdc94ebc..774728ef43 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsFactory.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsFactory.java @@ -1,130 +1,130 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import org.eclipse.emf.ecore.EFactory; - -/** - * The Factory for the model. It provides a create method for each non-abstract class of - * the model. - * @see org.eclipse.emf.cdo.defs.CDODefsPackage - * @generated - */ -public interface CDODefsFactory extends EFactory -{ - /** - * The singleton instance of the factory. - * - * @generated - */ - CDODefsFactory eINSTANCE = org.eclipse.emf.cdo.defs.impl.CDODefsFactoryImpl.init(); - - /** - * Returns a new object of class 'CDO View Def'. - * - * @return a new object of class 'CDO View Def'. - * @generated - */ - CDOViewDef createCDOViewDef(); - - /** - * Returns a new object of class 'CDO Transaction Def'. - * - * @return a new object of class 'CDO Transaction Def'. - * @generated - */ - CDOTransactionDef createCDOTransactionDef(); - - /** - * Returns a new object of class 'CDO Audit Def'. - * - * @return a new object of class 'CDO Audit Def'. - * @generated - */ - CDOAuditDef createCDOAuditDef(); - - /** - * Returns a new object of class 'CDO Session Def'. - * - * @return a new object of class 'CDO Session Def'. - * @generated - */ - CDOSessionDef createCDOSessionDef(); - - /** - * Returns a new object of class 'CDO Package Registry Def'. - * - * @return a new object of class 'CDO Package Registry Def'. - * @generated - */ - CDOPackageRegistryDef createCDOPackageRegistryDef(); - - /** - * Returns a new object of class 'CDO Eager Package Registry Def'. - * - * @return a new object of class 'CDO Eager Package Registry Def'. - * @generated - */ - CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef(); - - /** - * Returns a new object of class 'CDO Lazy Package Registry Def'. - * - * @return a new object of class 'CDO Lazy Package Registry Def'. - * @generated - */ - CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef(); - - /** - * Returns a new object of class 'EDynamic Package Def'. - * - * @return a new object of class 'EDynamic Package Def'. - * @generated - */ - EDynamicPackageDef createEDynamicPackageDef(); - - /** - * Returns a new object of class 'EGlobal Package Def'. - * - * @return a new object of class 'EGlobal Package Def'. - * @generated - */ - EGlobalPackageDef createEGlobalPackageDef(); - - /** - * Returns a new object of class 'CDO Client Protocol Factory Def'. - * - * @return a new object of class 'CDO Client Protocol Factory Def'. - * @generated - */ - CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef(); - - /** - * Returns a new object of class 'CDO Resource Def'. - * - * @return a new object of class 'CDO Resource Def'. - * @generated - */ - CDOResourceDef createCDOResourceDef(); - - /** - * Returns the package supported by this factory. - * - * @return the package supported by this factory. - * @generated - */ - CDODefsPackage getCDODefsPackage(); - -} // CDODefsFactory +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +import org.eclipse.emf.ecore.EFactory; + +/** + * The Factory for the model. It provides a create method for each non-abstract class of + * the model. + * @see org.eclipse.emf.cdo.defs.CDODefsPackage + * @generated + */ +public interface CDODefsFactory extends EFactory +{ + /** + * The singleton instance of the factory. + * + * @generated + */ + CDODefsFactory eINSTANCE = org.eclipse.emf.cdo.defs.impl.CDODefsFactoryImpl.init(); + + /** + * Returns a new object of class 'CDO View Def'. + * + * @return a new object of class 'CDO View Def'. + * @generated + */ + CDOViewDef createCDOViewDef(); + + /** + * Returns a new object of class 'CDO Transaction Def'. + * + * @return a new object of class 'CDO Transaction Def'. + * @generated + */ + CDOTransactionDef createCDOTransactionDef(); + + /** + * Returns a new object of class 'CDO Audit Def'. + * + * @return a new object of class 'CDO Audit Def'. + * @generated + */ + CDOAuditDef createCDOAuditDef(); + + /** + * Returns a new object of class 'CDO Session Def'. + * + * @return a new object of class 'CDO Session Def'. + * @generated + */ + CDOSessionDef createCDOSessionDef(); + + /** + * Returns a new object of class 'CDO Package Registry Def'. + * + * @return a new object of class 'CDO Package Registry Def'. + * @generated + */ + CDOPackageRegistryDef createCDOPackageRegistryDef(); + + /** + * Returns a new object of class 'CDO Eager Package Registry Def'. + * + * @return a new object of class 'CDO Eager Package Registry Def'. + * @generated + */ + CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef(); + + /** + * Returns a new object of class 'CDO Lazy Package Registry Def'. + * + * @return a new object of class 'CDO Lazy Package Registry Def'. + * @generated + */ + CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef(); + + /** + * Returns a new object of class 'EDynamic Package Def'. + * + * @return a new object of class 'EDynamic Package Def'. + * @generated + */ + EDynamicPackageDef createEDynamicPackageDef(); + + /** + * Returns a new object of class 'EGlobal Package Def'. + * + * @return a new object of class 'EGlobal Package Def'. + * @generated + */ + EGlobalPackageDef createEGlobalPackageDef(); + + /** + * Returns a new object of class 'CDO Client Protocol Factory Def'. + * + * @return a new object of class 'CDO Client Protocol Factory Def'. + * @generated + */ + CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef(); + + /** + * Returns a new object of class 'CDO Resource Def'. + * + * @return a new object of class 'CDO Resource Def'. + * @generated + */ + CDOResourceDef createCDOResourceDef(); + + /** + * Returns the package supported by this factory. + * + * @return the package supported by this factory. + * @generated + */ + CDODefsPackage getCDODefsPackage(); + +} // CDODefsFactory diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsPackage.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsPackage.java index c29c8e4172..07af50ee1f 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsPackage.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsPackage.java @@ -1,923 +1,923 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import org.eclipse.net4j.defs.Net4jDefsPackage; -import org.eclipse.net4j.util.defs.Net4jUtilDefsPackage; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * The Package for the model. It contains accessors for the meta objects to represent - *- * The following features are supported: - *
- * If the meaning of the 'Packages' containment reference list isn't clear, there really should be more of a - * description here... - *
- * - * @return the value of the 'Packages' containment reference list. - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOPackageRegistryDef_Packages() - * @model containment="true" - * @generated - */ - EList+ * The following features are supported: + *
+ * If the meaning of the 'Packages' containment reference list isn't clear, there really should be more of a + * description here... + *
+ * + * @return the value of the 'Packages' containment reference list. + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOPackageRegistryDef_Packages() + * @model containment="true" + * @generated + */ + EList- * The following features are supported: - *
- * If the meaning of the 'Cdo Transaction' reference isn't clear, there really should be more of a - * description here... - *
- * - * @return the value of the 'Cdo Transaction' reference. - * @see #setCdoTransaction(CDOTransactionDef) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOResourceDef_CdoTransaction() - * @model required="true" - * @generated - */ - CDOTransactionDef getCdoTransaction(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getCdoTransaction Cdo Transaction}' reference. - * - * @param value the new value of the 'Cdo Transaction' reference. - * @see #getCdoTransaction() - * @generated - */ - void setCdoTransaction(CDOTransactionDef value); - - /** - * Returns the value of the 'Resource Mode' attribute. - * The default value is"null"
.
- * The literals are from the enumeration {@link org.eclipse.emf.cdo.defs.ResourceMode}.
- *
- * - * If the meaning of the 'Resource Mode' attribute isn't clear, there really should be more of a description - * here... - *
- * - * @return the value of the 'Resource Mode' attribute. - * @see org.eclipse.emf.cdo.defs.ResourceMode - * @see #setResourceMode(ResourceMode) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOResourceDef_ResourceMode() - * @model default="null" required="true" - * @generated - */ - ResourceMode getResourceMode(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getResourceMode Resource Mode}' attribute. - * - * @param value the new value of the 'Resource Mode' attribute. - * @see org.eclipse.emf.cdo.defs.ResourceMode - * @see #getResourceMode() - * @generated - */ - void setResourceMode(ResourceMode value); - - /** - * Returns the value of the 'Path' attribute. - * - *- * If the meaning of the 'Path' attribute isn't clear, there really should be more of a description here... - *
- * - * @return the value of the 'Path' attribute. - * @see #setPath(String) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOResourceDef_Path() - * @model required="true" - * @generated - */ - String getPath(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getPath Path}' attribute. - * - * @param value - * the new value of the 'Path' attribute. - * @see #getPath() - * @generated - */ - void setPath(String value); - -} // CDOResourceDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +import org.eclipse.net4j.util.defs.Def; + +/** + * A representation of the model object 'CDO Resource Def'. + *+ * The following features are supported: + *
+ * If the meaning of the 'Cdo Transaction' reference isn't clear, there really should be more of a + * description here... + *
+ * + * @return the value of the 'Cdo Transaction' reference. + * @see #setCdoTransaction(CDOTransactionDef) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOResourceDef_CdoTransaction() + * @model required="true" + * @generated + */ + CDOTransactionDef getCdoTransaction(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getCdoTransaction Cdo Transaction}' reference. + * + * @param value the new value of the 'Cdo Transaction' reference. + * @see #getCdoTransaction() + * @generated + */ + void setCdoTransaction(CDOTransactionDef value); + + /** + * Returns the value of the 'Resource Mode' attribute. + * The default value is"null"
.
+ * The literals are from the enumeration {@link org.eclipse.emf.cdo.defs.ResourceMode}.
+ *
+ * + * If the meaning of the 'Resource Mode' attribute isn't clear, there really should be more of a description + * here... + *
+ * + * @return the value of the 'Resource Mode' attribute. + * @see org.eclipse.emf.cdo.defs.ResourceMode + * @see #setResourceMode(ResourceMode) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOResourceDef_ResourceMode() + * @model default="null" required="true" + * @generated + */ + ResourceMode getResourceMode(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getResourceMode Resource Mode}' attribute. + * + * @param value the new value of the 'Resource Mode' attribute. + * @see org.eclipse.emf.cdo.defs.ResourceMode + * @see #getResourceMode() + * @generated + */ + void setResourceMode(ResourceMode value); + + /** + * Returns the value of the 'Path' attribute. + * + *+ * If the meaning of the 'Path' attribute isn't clear, there really should be more of a description here... + *
+ * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOResourceDef_Path() + * @model required="true" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getPath Path}' attribute. + * + * @param value + * the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + +} // CDOResourceDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOSessionDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOSessionDef.java index 25c96eb17b..40936ff2b2 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOSessionDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOSessionDef.java @@ -1,162 +1,162 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import org.eclipse.net4j.defs.ConnectorDef; -import org.eclipse.net4j.util.defs.Def; - -/** - * A representation of the model object 'CDO Session Def'. - * - *- * The following features are supported: - *
- * If the meaning of the 'Connector Def' reference isn't clear, there really should be more of a description - * here... - *
- * - * @return the value of the 'Connector Def' reference. - * @see #isSetConnectorDef() - * @see #unsetConnectorDef() - * @see #setConnectorDef(ConnectorDef) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef_ConnectorDef() - * @model unsettable="true" required="true" - * @generated - */ - ConnectorDef getConnectorDef(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef Connector Def}' reference. - * - * @param value the new value of the 'Connector Def' reference. - * @see #isSetConnectorDef() - * @see #unsetConnectorDef() - * @see #getConnectorDef() - * @generated - */ - void setConnectorDef(ConnectorDef value); - - /** - * Unsets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef Connector Def}' reference. - * - * @see #isSetConnectorDef() - * @see #getConnectorDef() - * @see #setConnectorDef(ConnectorDef) - * @generated - */ - void unsetConnectorDef(); - - /** - * Returns whether the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef Connector Def}' reference is set. - * - * @return whether the value of the 'Connector Def' reference is set. - * @see #unsetConnectorDef() - * @see #getConnectorDef() - * @see #setConnectorDef(ConnectorDef) - * @generated - */ - boolean isSetConnectorDef(); - - /** - * Returns the value of the 'Repository Name' attribute. - * - *- * If the meaning of the 'CDORepositoryInfo Name' attribute isn't clear, there really should be more of a - * description here... - *
- * - * @return the value of the 'Repository Name' attribute. - * @see #setRepositoryName(String) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef_RepositoryName() - * @model unique="false" required="true" ordered="false" - * @generated - */ - String getRepositoryName(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getRepositoryName Repository Name}' attribute. - * - * @param value the new value of the 'Repository Name' attribute. - * @see #getRepositoryName() - * @generated - */ - void setRepositoryName(String value); - - /** - * Returns the value of the 'Cdo Package Registry Def' reference. - * - *- * If the meaning of the 'Cdo Package Registry Def' reference isn't clear, there really should be more of a - * description here... - *
- * - * @return the value of the 'Cdo Package Registry Def' reference. - * @see #setCdoPackageRegistryDef(CDOPackageRegistryDef) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef_CdoPackageRegistryDef() - * @model required="true" - * @generated - */ - CDOPackageRegistryDef getCdoPackageRegistryDef(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getCdoPackageRegistryDef Cdo Package Registry Def}' reference. - * - * @param value the new value of the 'Cdo Package Registry Def' reference. - * @see #getCdoPackageRegistryDef() - * @generated - */ - void setCdoPackageRegistryDef(CDOPackageRegistryDef value); - - /** - * Returns the value of the 'Legacy Support Enabled' attribute. - * The default value is"false"
.
- *
- * - * If the meaning of the 'Legacy Support Enabled' attribute isn't clear, there really should be more of a - * description here... - *
- * - * @return the value of the 'Legacy Support Enabled' attribute. - * @see #setLegacySupportEnabled(boolean) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef_LegacySupportEnabled() - * @model default="false" required="true" - * @generated - */ - boolean isLegacySupportEnabled(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#isLegacySupportEnabled Legacy Support Enabled}' attribute. - * - * @param value the new value of the 'Legacy Support Enabled' attribute. - * @see #isLegacySupportEnabled() - * @generated - */ - void setLegacySupportEnabled(boolean value); - -} // CDOSessionDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +import org.eclipse.net4j.defs.ConnectorDef; +import org.eclipse.net4j.util.defs.Def; + +/** + * A representation of the model object 'CDO Session Def'. + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Connector Def' reference isn't clear, there really should be more of a description + * here... + *
+ * + * @return the value of the 'Connector Def' reference. + * @see #isSetConnectorDef() + * @see #unsetConnectorDef() + * @see #setConnectorDef(ConnectorDef) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef_ConnectorDef() + * @model unsettable="true" required="true" + * @generated + */ + ConnectorDef getConnectorDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef Connector Def}' reference. + * + * @param value the new value of the 'Connector Def' reference. + * @see #isSetConnectorDef() + * @see #unsetConnectorDef() + * @see #getConnectorDef() + * @generated + */ + void setConnectorDef(ConnectorDef value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef Connector Def}' reference. + * + * @see #isSetConnectorDef() + * @see #getConnectorDef() + * @see #setConnectorDef(ConnectorDef) + * @generated + */ + void unsetConnectorDef(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef Connector Def}' reference is set. + * + * @return whether the value of the 'Connector Def' reference is set. + * @see #unsetConnectorDef() + * @see #getConnectorDef() + * @see #setConnectorDef(ConnectorDef) + * @generated + */ + boolean isSetConnectorDef(); + + /** + * Returns the value of the 'Repository Name' attribute. + * + *+ * If the meaning of the 'CDORepositoryInfo Name' attribute isn't clear, there really should be more of a + * description here... + *
+ * + * @return the value of the 'Repository Name' attribute. + * @see #setRepositoryName(String) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef_RepositoryName() + * @model unique="false" required="true" ordered="false" + * @generated + */ + String getRepositoryName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getRepositoryName Repository Name}' attribute. + * + * @param value the new value of the 'Repository Name' attribute. + * @see #getRepositoryName() + * @generated + */ + void setRepositoryName(String value); + + /** + * Returns the value of the 'Cdo Package Registry Def' reference. + * + *+ * If the meaning of the 'Cdo Package Registry Def' reference isn't clear, there really should be more of a + * description here... + *
+ * + * @return the value of the 'Cdo Package Registry Def' reference. + * @see #setCdoPackageRegistryDef(CDOPackageRegistryDef) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef_CdoPackageRegistryDef() + * @model required="true" + * @generated + */ + CDOPackageRegistryDef getCdoPackageRegistryDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getCdoPackageRegistryDef Cdo Package Registry Def}' reference. + * + * @param value the new value of the 'Cdo Package Registry Def' reference. + * @see #getCdoPackageRegistryDef() + * @generated + */ + void setCdoPackageRegistryDef(CDOPackageRegistryDef value); + + /** + * Returns the value of the 'Legacy Support Enabled' attribute. + * The default value is"false"
.
+ *
+ * + * If the meaning of the 'Legacy Support Enabled' attribute isn't clear, there really should be more of a + * description here... + *
+ * + * @return the value of the 'Legacy Support Enabled' attribute. + * @see #setLegacySupportEnabled(boolean) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef_LegacySupportEnabled() + * @model default="false" required="true" + * @generated + */ + boolean isLegacySupportEnabled(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#isLegacySupportEnabled Legacy Support Enabled}' attribute. + * + * @param value the new value of the 'Legacy Support Enabled' attribute. + * @see #isLegacySupportEnabled() + * @generated + */ + void setLegacySupportEnabled(boolean value); + +} // CDOSessionDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOTransactionDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOTransactionDef.java index 5b83717393..858a12aeaf 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOTransactionDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOTransactionDef.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -/** - * A representation of the model object 'CDO Transaction Def'. - * - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOTransactionDef() - * @model - * @generated - */ -public interface CDOTransactionDef extends CDOViewDef -{ - -} // CDOTransactionDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +/** + * A representation of the model object 'CDO Transaction Def'. + * + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOTransactionDef() + * @model + * @generated + */ +public interface CDOTransactionDef extends CDOViewDef +{ + +} // CDOTransactionDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOViewDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOViewDef.java index 34df0174de..1b49eb3eec 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOViewDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOViewDef.java @@ -1,57 +1,57 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import org.eclipse.net4j.util.defs.Def; - -/** - * A representation of the model object 'CDO View Def'. - * - *- * The following features are supported: - *
- * If the meaning of the 'Cdo Session Def' reference isn't clear, there really should be more of a - * description here... - *
- * - * @return the value of the 'Cdo Session Def' reference. - * @see #setCdoSessionDef(CDOSessionDef) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOViewDef_CdoSessionDef() - * @model required="true" - * @generated - */ - CDOSessionDef getCdoSessionDef(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOViewDef#getCdoSessionDef Cdo Session Def}' reference. - * - * @param value the new value of the 'Cdo Session Def' reference. - * @see #getCdoSessionDef() - * @generated - */ - void setCdoSessionDef(CDOSessionDef value); - -} // CDOViewDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +import org.eclipse.net4j.util.defs.Def; + +/** + * A representation of the model object 'CDO View Def'. + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Cdo Session Def' reference isn't clear, there really should be more of a + * description here... + *
+ * + * @return the value of the 'Cdo Session Def' reference. + * @see #setCdoSessionDef(CDOSessionDef) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOViewDef_CdoSessionDef() + * @model required="true" + * @generated + */ + CDOSessionDef getCdoSessionDef(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.CDOViewDef#getCdoSessionDef Cdo Session Def}' reference. + * + * @param value the new value of the 'Cdo Session Def' reference. + * @see #getCdoSessionDef() + * @generated + */ + void setCdoSessionDef(CDOSessionDef value); + +} // CDOViewDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EDynamicPackageDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EDynamicPackageDef.java index 3d573cfd6a..92572e1812 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EDynamicPackageDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EDynamicPackageDef.java @@ -1,56 +1,56 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -/** - * A representation of the model object 'Dynamic CDO Package Def'. - * - *- * The following features are supported: - *
- * If the meaning of the 'Resource URI' attribute isn't clear, there really should be more of a description - * here... - *
- * - * @return the value of the 'Resource URI' attribute. - * @see #setResourceURI(String) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEDynamicPackageDef_ResourceURI() - * @model required="true" - * @generated - */ - String getResourceURI(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef#getResourceURI Resource URI}' attribute. - * - * @param value the new value of the 'Resource URI' attribute. - * @see #getResourceURI() - * @generated - */ - void setResourceURI(String value); - -} // DynamicEPackageDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +/** + * A representation of the model object 'Dynamic CDO Package Def'. + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Resource URI' attribute isn't clear, there really should be more of a description + * here... + *
+ * + * @return the value of the 'Resource URI' attribute. + * @see #setResourceURI(String) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEDynamicPackageDef_ResourceURI() + * @model required="true" + * @generated + */ + String getResourceURI(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef#getResourceURI Resource URI}' attribute. + * + * @param value the new value of the 'Resource URI' attribute. + * @see #getResourceURI() + * @generated + */ + void setResourceURI(String value); + +} // DynamicEPackageDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EGlobalPackageDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EGlobalPackageDef.java index 9ddc81b816..aa13fe5c63 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EGlobalPackageDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EGlobalPackageDef.java @@ -1,25 +1,25 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -/** - * A representation of the model object 'Native CDO Package Def'. - * - * - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEGlobalPackageDef() - * @model - * @generated - */ -public interface EGlobalPackageDef extends EPackageDef -{ -} // NativeEPackageDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +/** + * A representation of the model object 'Native CDO Package Def'. + * + * + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEGlobalPackageDef() + * @model + * @generated + */ +public interface EGlobalPackageDef extends EPackageDef +{ +} // NativeEPackageDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EPackageDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EPackageDef.java index 07e9fab892..4d3858d797 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EPackageDef.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EPackageDef.java @@ -1,58 +1,58 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import org.eclipse.net4j.util.defs.Def; - -/** - * A representation of the model object 'CDO Package Def'. - * - *- * The following features are supported: - *
- * If the meaning of the 'Ns URI' attribute isn't clear, there really should be more of a description here... - *
- * - * @return the value of the 'Ns URI' attribute. - * @see #setNsURI(String) - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEPackageDef_NsURI() - * @model required="true" - * @generated - */ - String getNsURI(); - - /** - * Sets the value of the '{@link org.eclipse.emf.cdo.defs.EPackageDef#getNsURI Ns URI}' attribute. - * - * @param value - * the new value of the 'Ns URI' attribute. - * @see #getNsURI() - * @generated - */ - void setNsURI(String value); - -} // EPackageDef +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs; + +import org.eclipse.net4j.util.defs.Def; + +/** + * A representation of the model object 'CDO Package Def'. + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Ns URI' attribute isn't clear, there really should be more of a description here... + *
+ * + * @return the value of the 'Ns URI' attribute. + * @see #setNsURI(String) + * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEPackageDef_NsURI() + * @model required="true" + * @generated + */ + String getNsURI(); + + /** + * Sets the value of the '{@link org.eclipse.emf.cdo.defs.EPackageDef#getNsURI Ns URI}' attribute. + * + * @param value + * the new value of the 'Ns URI' attribute. + * @see #getNsURI() + * @generated + */ + void setNsURI(String value); + +} // EPackageDef diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/ResourceMode.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/ResourceMode.java index 374692b6eb..35773b6d63 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/ResourceMode.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/ResourceMode.java @@ -1,269 +1,269 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs; - -import org.eclipse.emf.cdo.eresource.CDOResource; -import org.eclipse.emf.cdo.transaction.CDOTransaction; - -import org.eclipse.emf.common.util.Enumerator; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * A representation of the literals of the enumeration 'Resource Mode', and - * utility methods for working with them. - * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getResourceMode() - * @model - * @generated - */ -public enum ResourceMode implements Enumerator -{ - /** - * The 'GET' literal object. - * - * @see #GET_VALUE - * @generated NOT - * @ordered - */ - GET(0, "GET", "GET") - { - @Override - public CDOResource getResource(String path, CDOTransaction transaction) - { - return transaction.getResource(path); - // return transaction.getResource(path, false); - } - }, - - /** - * The 'CREATE' literal object. - * - * @see #CREATE_VALUE - * @generated NOT - * @ordered - */ - CREATE(0, "CREATE", "CREATE") - { - @Override - public CDOResource getResource(String path, CDOTransaction transaction) - { - return transaction.createResource(path); - } - }, - - /** - * The 'GET OR CREATE' literal object. - * - * @see #GET_OR_CREATE_VALUE - * @generated NOT - * @ordered - */ - GET_OR_CREATE(0, "GET_OR_CREATE", "GET_OR_CREATE") - { - @Override - public CDOResource getResource(String path, CDOTransaction transaction) - { - return transaction.getOrCreateResource(path); - } - }; - - /** - * The 'GET' literal value. - * - *- * If the meaning of 'GET' literal object isn't clear, there really should be more of a description - * here... - *
- * - * @see #GET - * @model - * @generated - * @ordered - */ - public static final int GET_VALUE = 0; - - /** - * The 'CREATE' literal value. - * - *- * If the meaning of 'CREATE' literal object isn't clear, there really should be more of a description - * here... - *
- * - * @see #CREATE - * @model - * @generated - * @ordered - */ - public static final int CREATE_VALUE = 0; - - /** - * The 'GET OR CREATE' literal value. - * - *- * If the meaning of 'GET OR CREATE' literal object isn't clear, there really should be more of a - * description here... - *
- * - * @see #GET_OR_CREATE - * @model - * @generated - * @ordered - */ - public static final int GET_OR_CREATE_VALUE = 0; - - /** - * An array of all the 'Resource Mode' enumerators. - * - * @generated - */ - private static final ResourceMode[] VALUES_ARRAY = new ResourceMode[] { GET, CREATE, GET_OR_CREATE, }; - - /** - * A public read-only list of all the 'Resource Mode' enumerators. - * - * @generated - */ - public static final List+ * If the meaning of 'GET' literal object isn't clear, there really should be more of a description + * here... + *
+ * + * @see #GET + * @model + * @generated + * @ordered + */ + public static final int GET_VALUE = 0; + + /** + * The 'CREATE' literal value. + * + *+ * If the meaning of 'CREATE' literal object isn't clear, there really should be more of a description + * here... + *
+ * + * @see #CREATE + * @model + * @generated + * @ordered + */ + public static final int CREATE_VALUE = 0; + + /** + * The 'GET OR CREATE' literal value. + * + *+ * If the meaning of 'GET OR CREATE' literal object isn't clear, there really should be more of a + * description here... + *
+ * + * @see #GET_OR_CREATE + * @model + * @generated + * @ordered + */ + public static final int GET_OR_CREATE_VALUE = 0; + + /** + * An array of all the 'Resource Mode' enumerators. + * + * @generated + */ + private static final ResourceMode[] VALUES_ARRAY = new ResourceMode[] { GET, CREATE, GET_OR_CREATE, }; + + /** + * A public read-only list of all the 'Resource Mode' enumerators. + * + * @generated + */ + public static final List- * The following features are implemented: - *
+ * The following features are implemented: + *
- *
- * - * @generated - */ -public class CDOClientProtocolFactoryDefImpl extends ClientProtocolFactoryDefImpl implements - CDOClientProtocolFactoryDef -{ - /** - * - * @generated - */ - protected CDOClientProtocolFactoryDefImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return CDODefsPackage.Literals.CDO_CLIENT_PROTOCOL_FACTORY_DEF; - } - - @Override - protected Object createInstance() - { - return new CDOClientProtocolFactory(); - } -} // CDOClientProtocolFactoryDefImpl +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs.impl; + +import org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef; +import org.eclipse.emf.cdo.defs.CDODefsPackage; +import org.eclipse.emf.cdo.internal.net4j.protocol.CDOClientProtocolFactory; + +import org.eclipse.net4j.defs.impl.ClientProtocolFactoryDefImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * An implementation of the model object 'CDO Client Protocol Factory Def'. + *+ *
+ * + * @generated + */ +public class CDOClientProtocolFactoryDefImpl extends ClientProtocolFactoryDefImpl implements + CDOClientProtocolFactoryDef +{ + /** + * + * @generated + */ + protected CDOClientProtocolFactoryDefImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_CLIENT_PROTOCOL_FACTORY_DEF; + } + + @Override + protected Object createInstance() + { + return new CDOClientProtocolFactory(); + } +} // CDOClientProtocolFactoryDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsFactoryImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsFactoryImpl.java index a613795c95..4cbe823c5a 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsFactoryImpl.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsFactoryImpl.java @@ -1,296 +1,296 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs.impl; - -//import org.eclipse.emf.cdo.defs.*; -import org.eclipse.emf.cdo.defs.CDOAuditDef; -import org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef; -import org.eclipse.emf.cdo.defs.CDODefsFactory; -import org.eclipse.emf.cdo.defs.CDODefsPackage; -import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef; -import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef; -import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef; -import org.eclipse.emf.cdo.defs.CDOResourceDef; -import org.eclipse.emf.cdo.defs.CDOSessionDef; -import org.eclipse.emf.cdo.defs.CDOTransactionDef; -import org.eclipse.emf.cdo.defs.CDOViewDef; -import org.eclipse.emf.cdo.defs.EDynamicPackageDef; -import org.eclipse.emf.cdo.defs.EGlobalPackageDef; -import org.eclipse.emf.cdo.defs.ResourceMode; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.impl.EFactoryImpl; -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -/** - * An implementation of the model Factory. - * @generated - */ -public class CDODefsFactoryImpl extends EFactoryImpl implements CDODefsFactory -{ - /** - * Creates the default factory implementation. - * - * @generated - */ - public static CDODefsFactory init() - { - try - { - CDODefsFactory theCDODefsFactory = (CDODefsFactory)EPackage.Registry.INSTANCE - .getEFactory("http://www.eclipse.org/emf/CDO/defs/1.0.0"); - if (theCDODefsFactory != null) - { - return theCDODefsFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new CDODefsFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * @generated - */ - public CDODefsFactoryImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case CDODefsPackage.CDO_VIEW_DEF: - return createCDOViewDef(); - case CDODefsPackage.CDO_TRANSACTION_DEF: - return createCDOTransactionDef(); - case CDODefsPackage.CDO_AUDIT_DEF: - return createCDOAuditDef(); - case CDODefsPackage.CDO_SESSION_DEF: - return createCDOSessionDef(); - case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF: - return createCDOPackageRegistryDef(); - case CDODefsPackage.CDO_EAGER_PACKAGE_REGISTRY_DEF: - return createCDOEagerPackageRegistryDef(); - case CDODefsPackage.CDO_LAZY_PACKAGE_REGISTRY_DEF: - return createCDOLazyPackageRegistryDef(); - case CDODefsPackage.EDYNAMIC_PACKAGE_DEF: - return createEDynamicPackageDef(); - case CDODefsPackage.EGLOBAL_PACKAGE_DEF: - return createEGlobalPackageDef(); - case CDODefsPackage.CDO_CLIENT_PROTOCOL_FACTORY_DEF: - return createCDOClientProtocolFactoryDef(); - case CDODefsPackage.CDO_RESOURCE_DEF: - return createCDOResourceDef(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case CDODefsPackage.RESOURCE_MODE: - return createResourceModeFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case CDODefsPackage.RESOURCE_MODE: - return convertResourceModeToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * @generated - */ - public CDOViewDef createCDOViewDef() - { - CDOViewDefImpl cdoViewDef = new CDOViewDefImpl(); - return cdoViewDef; - } - - /** - * - * @generated - */ - public CDOTransactionDef createCDOTransactionDef() - { - CDOTransactionDefImpl cdoTransactionDef = new CDOTransactionDefImpl(); - return cdoTransactionDef; - } - - /** - * - * @generated - */ - public CDOAuditDef createCDOAuditDef() - { - CDOAuditDefImpl cdoAuditDef = new CDOAuditDefImpl(); - return cdoAuditDef; - } - - /** - * - * @generated - */ - public CDOSessionDef createCDOSessionDef() - { - CDOSessionDefImpl cdoSessionDef = new CDOSessionDefImpl(); - return cdoSessionDef; - } - - /** - * - * @generated - */ - public CDOPackageRegistryDef createCDOPackageRegistryDef() - { - CDOPackageRegistryDefImpl cdoPackageRegistryDef = new CDOPackageRegistryDefImpl(); - return cdoPackageRegistryDef; - } - - /** - * - * @generated - */ - public CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef() - { - CDOEagerPackageRegistryDefImpl cdoEagerPackageRegistryDef = new CDOEagerPackageRegistryDefImpl(); - return cdoEagerPackageRegistryDef; - } - - /** - * - * @generated - */ - public CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef() - { - CDOLazyPackageRegistryDefImpl cdoLazyPackageRegistryDef = new CDOLazyPackageRegistryDefImpl(); - return cdoLazyPackageRegistryDef; - } - - /** - * - * @generated - */ - public EDynamicPackageDef createEDynamicPackageDef() - { - EDynamicPackageDefImpl eDynamicPackageDef = new EDynamicPackageDefImpl(); - return eDynamicPackageDef; - } - - /** - * - * @generated - */ - public EGlobalPackageDef createEGlobalPackageDef() - { - EGlobalPackageDefImpl eGlobalPackageDef = new EGlobalPackageDefImpl(); - return eGlobalPackageDef; - } - - /** - * - * @generated - */ - public CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef() - { - CDOClientProtocolFactoryDefImpl cdoClientProtocolFactoryDef = new CDOClientProtocolFactoryDefImpl(); - return cdoClientProtocolFactoryDef; - } - - /** - * - * @generated - */ - public CDOResourceDef createCDOResourceDef() - { - CDOResourceDefImpl cdoResourceDef = new CDOResourceDefImpl(); - return cdoResourceDef; - } - - /** - * - * @generated - */ - public ResourceMode createResourceModeFromString(EDataType eDataType, String initialValue) - { - ResourceMode result = ResourceMode.get(initialValue); - if (result == null) - throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" - + eDataType.getName() + "'"); - return result; - } - - /** - * - * @generated - */ - public String convertResourceModeToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * @generated - */ - public CDODefsPackage getCDODefsPackage() - { - return (CDODefsPackage)getEPackage(); - } - - /** - * - * @deprecated - * @generated - */ - @Deprecated - public static CDODefsPackage getPackage() - { - return CDODefsPackage.eINSTANCE; - } - -} // CDODefsFactoryImpl +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs.impl; + +//import org.eclipse.emf.cdo.defs.*; +import org.eclipse.emf.cdo.defs.CDOAuditDef; +import org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef; +import org.eclipse.emf.cdo.defs.CDODefsFactory; +import org.eclipse.emf.cdo.defs.CDODefsPackage; +import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef; +import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef; +import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.defs.CDOResourceDef; +import org.eclipse.emf.cdo.defs.CDOSessionDef; +import org.eclipse.emf.cdo.defs.CDOTransactionDef; +import org.eclipse.emf.cdo.defs.CDOViewDef; +import org.eclipse.emf.cdo.defs.EDynamicPackageDef; +import org.eclipse.emf.cdo.defs.EGlobalPackageDef; +import org.eclipse.emf.cdo.defs.ResourceMode; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * An implementation of the model Factory. + * @generated + */ +public class CDODefsFactoryImpl extends EFactoryImpl implements CDODefsFactory +{ + /** + * Creates the default factory implementation. + * + * @generated + */ + public static CDODefsFactory init() + { + try + { + CDODefsFactory theCDODefsFactory = (CDODefsFactory)EPackage.Registry.INSTANCE + .getEFactory("http://www.eclipse.org/emf/CDO/defs/1.0.0"); + if (theCDODefsFactory != null) + { + return theCDODefsFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new CDODefsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public CDODefsFactoryImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case CDODefsPackage.CDO_VIEW_DEF: + return createCDOViewDef(); + case CDODefsPackage.CDO_TRANSACTION_DEF: + return createCDOTransactionDef(); + case CDODefsPackage.CDO_AUDIT_DEF: + return createCDOAuditDef(); + case CDODefsPackage.CDO_SESSION_DEF: + return createCDOSessionDef(); + case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF: + return createCDOPackageRegistryDef(); + case CDODefsPackage.CDO_EAGER_PACKAGE_REGISTRY_DEF: + return createCDOEagerPackageRegistryDef(); + case CDODefsPackage.CDO_LAZY_PACKAGE_REGISTRY_DEF: + return createCDOLazyPackageRegistryDef(); + case CDODefsPackage.EDYNAMIC_PACKAGE_DEF: + return createEDynamicPackageDef(); + case CDODefsPackage.EGLOBAL_PACKAGE_DEF: + return createEGlobalPackageDef(); + case CDODefsPackage.CDO_CLIENT_PROTOCOL_FACTORY_DEF: + return createCDOClientProtocolFactoryDef(); + case CDODefsPackage.CDO_RESOURCE_DEF: + return createCDOResourceDef(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) + { + switch (eDataType.getClassifierID()) + { + case CDODefsPackage.RESOURCE_MODE: + return createResourceModeFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) + { + switch (eDataType.getClassifierID()) + { + case CDODefsPackage.RESOURCE_MODE: + return convertResourceModeToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + public CDOViewDef createCDOViewDef() + { + CDOViewDefImpl cdoViewDef = new CDOViewDefImpl(); + return cdoViewDef; + } + + /** + * + * @generated + */ + public CDOTransactionDef createCDOTransactionDef() + { + CDOTransactionDefImpl cdoTransactionDef = new CDOTransactionDefImpl(); + return cdoTransactionDef; + } + + /** + * + * @generated + */ + public CDOAuditDef createCDOAuditDef() + { + CDOAuditDefImpl cdoAuditDef = new CDOAuditDefImpl(); + return cdoAuditDef; + } + + /** + * + * @generated + */ + public CDOSessionDef createCDOSessionDef() + { + CDOSessionDefImpl cdoSessionDef = new CDOSessionDefImpl(); + return cdoSessionDef; + } + + /** + * + * @generated + */ + public CDOPackageRegistryDef createCDOPackageRegistryDef() + { + CDOPackageRegistryDefImpl cdoPackageRegistryDef = new CDOPackageRegistryDefImpl(); + return cdoPackageRegistryDef; + } + + /** + * + * @generated + */ + public CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef() + { + CDOEagerPackageRegistryDefImpl cdoEagerPackageRegistryDef = new CDOEagerPackageRegistryDefImpl(); + return cdoEagerPackageRegistryDef; + } + + /** + * + * @generated + */ + public CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef() + { + CDOLazyPackageRegistryDefImpl cdoLazyPackageRegistryDef = new CDOLazyPackageRegistryDefImpl(); + return cdoLazyPackageRegistryDef; + } + + /** + * + * @generated + */ + public EDynamicPackageDef createEDynamicPackageDef() + { + EDynamicPackageDefImpl eDynamicPackageDef = new EDynamicPackageDefImpl(); + return eDynamicPackageDef; + } + + /** + * + * @generated + */ + public EGlobalPackageDef createEGlobalPackageDef() + { + EGlobalPackageDefImpl eGlobalPackageDef = new EGlobalPackageDefImpl(); + return eGlobalPackageDef; + } + + /** + * + * @generated + */ + public CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef() + { + CDOClientProtocolFactoryDefImpl cdoClientProtocolFactoryDef = new CDOClientProtocolFactoryDefImpl(); + return cdoClientProtocolFactoryDef; + } + + /** + * + * @generated + */ + public CDOResourceDef createCDOResourceDef() + { + CDOResourceDefImpl cdoResourceDef = new CDOResourceDefImpl(); + return cdoResourceDef; + } + + /** + * + * @generated + */ + public ResourceMode createResourceModeFromString(EDataType eDataType, String initialValue) + { + ResourceMode result = ResourceMode.get(initialValue); + if (result == null) + throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + + eDataType.getName() + "'"); + return result; + } + + /** + * + * @generated + */ + public String convertResourceModeToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * @generated + */ + public CDODefsPackage getCDODefsPackage() + { + return (CDODefsPackage)getEPackage(); + } + + /** + * + * @deprecated + * @generated + */ + @Deprecated + public static CDODefsPackage getPackage() + { + return CDODefsPackage.eINSTANCE; + } + +} // CDODefsFactoryImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsPackageImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsPackageImpl.java index e585baa4b0..96f8866b71 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsPackageImpl.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsPackageImpl.java @@ -1,608 +1,608 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs.impl; - -import org.eclipse.emf.cdo.defs.CDOAuditDef; -import org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef; -import org.eclipse.emf.cdo.defs.CDODefsFactory; -import org.eclipse.emf.cdo.defs.CDODefsPackage; -import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef; -import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef; -import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef; -import org.eclipse.emf.cdo.defs.CDOResourceDef; -import org.eclipse.emf.cdo.defs.CDOSessionDef; -import org.eclipse.emf.cdo.defs.CDOTransactionDef; -import org.eclipse.emf.cdo.defs.CDOViewDef; -import org.eclipse.emf.cdo.defs.EDynamicPackageDef; -import org.eclipse.emf.cdo.defs.EGlobalPackageDef; -import org.eclipse.emf.cdo.defs.EPackageDef; -import org.eclipse.emf.cdo.defs.ResourceMode; - -import org.eclipse.net4j.defs.Net4jDefsPackage; -import org.eclipse.net4j.util.defs.Net4jUtilDefsPackage; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; - -/** - * An implementation of the model Package. - * @generated - */ -public class CDODefsPackageImpl extends EPackageImpl implements CDODefsPackage -{ - /** - * - * @generated - */ - private EClass cdoViewDefEClass = null; - - /** - * - * @generated - */ - private EClass cdoTransactionDefEClass = null; - - /** - * - * @generated - */ - private EClass cdoAuditDefEClass = null; - - /** - * - * @generated - */ - private EClass cdoSessionDefEClass = null; - - /** - * - * @generated - */ - private EClass cdoPackageRegistryDefEClass = null; - - /** - * - * @generated - */ - private EClass cdoEagerPackageRegistryDefEClass = null; - - /** - * - * @generated - */ - private EClass cdoLazyPackageRegistryDefEClass = null; - - /** - * - * @generated - */ - private EClass ePackageDefEClass = null; - - /** - * - * @generated - */ - private EClass eDynamicPackageDefEClass = null; - - /** - * - * @generated - */ - private EClass eGlobalPackageDefEClass = null; - - /** - * - * @generated - */ - private EClass cdoClientProtocolFactoryDefEClass = null; - - /** - * - * @generated - */ - private EClass cdoResourceDefEClass = null; - - /** - * - * @generated - */ - private EEnum resourceModeEEnum = 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.eclipse.emf.cdo.defs.CDODefsPackage#eNS_URI - * @see #init() - * @generated - */ - private CDODefsPackageImpl() - { - super(eNS_URI, CDODefsFactory.eINSTANCE); - } - - /** - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *
This method is used to initialize {@link CDODefsPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static CDODefsPackage init() - { - if (isInited) - return (CDODefsPackage)EPackage.Registry.INSTANCE.getEPackage(CDODefsPackage.eNS_URI); - - // Obtain or create and register package - CDODefsPackageImpl theCDODefsPackage = (CDODefsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CDODefsPackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new CDODefsPackageImpl()); - - isInited = true; - - // Initialize simple dependencies - Net4jDefsPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theCDODefsPackage.createPackageContents(); - - // Initialize created meta-data - theCDODefsPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theCDODefsPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(CDODefsPackage.eNS_URI, theCDODefsPackage); - return theCDODefsPackage; - } - - /** - * - * @generated - */ - public EClass getCDOViewDef() - { - return cdoViewDefEClass; - } - - /** - * - * @generated - */ - public EReference getCDOViewDef_CdoSessionDef() - { - return (EReference)cdoViewDefEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getCDOTransactionDef() - { - return cdoTransactionDefEClass; - } - - /** - * - * @generated - */ - public EClass getCDOAuditDef() - { - return cdoAuditDefEClass; - } - - /** - * - * @generated - */ - public EAttribute getCDOAuditDef_TimeStamp() - { - return (EAttribute)cdoAuditDefEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getCDOSessionDef() - { - return cdoSessionDefEClass; - } - - /** - * - * @generated - */ - public EReference getCDOSessionDef_ConnectorDef() - { - return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EAttribute getCDOSessionDef_RepositoryName() - { - return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EReference getCDOSessionDef_CdoPackageRegistryDef() - { - return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EAttribute getCDOSessionDef_LegacySupportEnabled() - { - return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(3); - } - - /** - * - * @generated - */ - public EClass getCDOPackageRegistryDef() - { - return cdoPackageRegistryDefEClass; - } - - /** - * - * @generated - */ - public EReference getCDOPackageRegistryDef_Packages() - { - return (EReference)cdoPackageRegistryDefEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getCDOEagerPackageRegistryDef() - { - return cdoEagerPackageRegistryDefEClass; - } - - /** - * - * @generated - */ - public EClass getCDOLazyPackageRegistryDef() - { - return cdoLazyPackageRegistryDefEClass; - } - - /** - * - * @generated - */ - public EClass getEPackageDef() - { - return ePackageDefEClass; - } - - /** - * - * @generated - */ - public EAttribute getEPackageDef_NsURI() - { - return (EAttribute)ePackageDefEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getEDynamicPackageDef() - { - return eDynamicPackageDefEClass; - } - - /** - * - * @generated - */ - public EAttribute getEDynamicPackageDef_ResourceURI() - { - return (EAttribute)eDynamicPackageDefEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getEGlobalPackageDef() - { - return eGlobalPackageDefEClass; - } - - /** - * - * @generated - */ - public EClass getCDOClientProtocolFactoryDef() - { - return cdoClientProtocolFactoryDefEClass; - } - - /** - * - * @generated - */ - public EClass getCDOResourceDef() - { - return cdoResourceDefEClass; - } - - /** - * - * @generated - */ - public EReference getCDOResourceDef_CdoTransaction() - { - return (EReference)cdoResourceDefEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EAttribute getCDOResourceDef_ResourceMode() - { - return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EAttribute getCDOResourceDef_Path() - { - return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EEnum getResourceMode() - { - return resourceModeEEnum; - } - - /** - * - * @generated - */ - public CDODefsFactory getCDODefsFactory() - { - return (CDODefsFactory)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 - cdoViewDefEClass = createEClass(CDO_VIEW_DEF); - createEReference(cdoViewDefEClass, CDO_VIEW_DEF__CDO_SESSION_DEF); - - cdoTransactionDefEClass = createEClass(CDO_TRANSACTION_DEF); - - cdoAuditDefEClass = createEClass(CDO_AUDIT_DEF); - createEAttribute(cdoAuditDefEClass, CDO_AUDIT_DEF__TIME_STAMP); - - cdoSessionDefEClass = createEClass(CDO_SESSION_DEF); - createEReference(cdoSessionDefEClass, CDO_SESSION_DEF__CONNECTOR_DEF); - createEAttribute(cdoSessionDefEClass, CDO_SESSION_DEF__REPOSITORY_NAME); - createEReference(cdoSessionDefEClass, CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF); - createEAttribute(cdoSessionDefEClass, CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED); - - cdoPackageRegistryDefEClass = createEClass(CDO_PACKAGE_REGISTRY_DEF); - createEReference(cdoPackageRegistryDefEClass, CDO_PACKAGE_REGISTRY_DEF__PACKAGES); - - cdoEagerPackageRegistryDefEClass = createEClass(CDO_EAGER_PACKAGE_REGISTRY_DEF); - - cdoLazyPackageRegistryDefEClass = createEClass(CDO_LAZY_PACKAGE_REGISTRY_DEF); - - ePackageDefEClass = createEClass(EPACKAGE_DEF); - createEAttribute(ePackageDefEClass, EPACKAGE_DEF__NS_URI); - - eDynamicPackageDefEClass = createEClass(EDYNAMIC_PACKAGE_DEF); - createEAttribute(eDynamicPackageDefEClass, EDYNAMIC_PACKAGE_DEF__RESOURCE_URI); - - eGlobalPackageDefEClass = createEClass(EGLOBAL_PACKAGE_DEF); - - cdoClientProtocolFactoryDefEClass = createEClass(CDO_CLIENT_PROTOCOL_FACTORY_DEF); - - cdoResourceDefEClass = createEClass(CDO_RESOURCE_DEF); - createEReference(cdoResourceDefEClass, CDO_RESOURCE_DEF__CDO_TRANSACTION); - createEAttribute(cdoResourceDefEClass, CDO_RESOURCE_DEF__RESOURCE_MODE); - createEAttribute(cdoResourceDefEClass, CDO_RESOURCE_DEF__PATH); - - // Create enums - resourceModeEEnum = createEEnum(RESOURCE_MODE); - } - - /** - * - * @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); - - // Obtain other dependent packages - Net4jUtilDefsPackage theNet4jUtilDefsPackage = (Net4jUtilDefsPackage)EPackage.Registry.INSTANCE - .getEPackage(Net4jUtilDefsPackage.eNS_URI); - Net4jDefsPackage theNet4jDefsPackage = (Net4jDefsPackage)EPackage.Registry.INSTANCE - .getEPackage(Net4jDefsPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - cdoViewDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); - cdoTransactionDefEClass.getESuperTypes().add(this.getCDOViewDef()); - cdoAuditDefEClass.getESuperTypes().add(this.getCDOViewDef()); - cdoSessionDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); - cdoPackageRegistryDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); - cdoEagerPackageRegistryDefEClass.getESuperTypes().add(this.getCDOPackageRegistryDef()); - cdoLazyPackageRegistryDefEClass.getESuperTypes().add(this.getCDOPackageRegistryDef()); - ePackageDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); - eDynamicPackageDefEClass.getESuperTypes().add(this.getEPackageDef()); - eGlobalPackageDefEClass.getESuperTypes().add(this.getEPackageDef()); - cdoClientProtocolFactoryDefEClass.getESuperTypes().add(theNet4jDefsPackage.getClientProtocolFactoryDef()); - cdoResourceDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); - - // Initialize classes and features; add operations and parameters - initEClass(cdoViewDefEClass, CDOViewDef.class, "CDOViewDef", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getCDOViewDef_CdoSessionDef(), this.getCDOSessionDef(), null, "cdoSessionDef", null, 1, 1, - CDOViewDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cdoTransactionDefEClass, CDOTransactionDef.class, "CDOTransactionDef", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - - initEClass(cdoAuditDefEClass, CDOAuditDef.class, "CDOAuditDef", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getCDOAuditDef_TimeStamp(), ecorePackage.getEDate(), "timeStamp", null, 1, 1, CDOAuditDef.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cdoSessionDefEClass, CDOSessionDef.class, "CDOSessionDef", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getCDOSessionDef_ConnectorDef(), theNet4jDefsPackage.getConnectorDef(), null, "connectorDef", null, - 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCDOSessionDef_RepositoryName(), ecorePackage.getEString(), "repositoryName", null, 1, 1, - CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, - !IS_DERIVED, !IS_ORDERED); - initEReference(getCDOSessionDef_CdoPackageRegistryDef(), this.getCDOPackageRegistryDef(), null, - "cdoPackageRegistryDef", null, 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCDOSessionDef_LegacySupportEnabled(), ecorePackage.getEBoolean(), "legacySupportEnabled", - "false", 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cdoPackageRegistryDefEClass, CDOPackageRegistryDef.class, "CDOPackageRegistryDef", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCDOPackageRegistryDef_Packages(), this.getEPackageDef(), null, "packages", null, 0, -1, - CDOPackageRegistryDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cdoEagerPackageRegistryDefEClass, CDOEagerPackageRegistryDef.class, "CDOEagerPackageRegistryDef", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(cdoLazyPackageRegistryDefEClass, CDOLazyPackageRegistryDef.class, "CDOLazyPackageRegistryDef", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(ePackageDefEClass, EPackageDef.class, "EPackageDef", IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEPackageDef_NsURI(), ecorePackage.getEString(), "nsURI", null, 1, 1, EPackageDef.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(eDynamicPackageDefEClass, EDynamicPackageDef.class, "EDynamicPackageDef", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getEDynamicPackageDef_ResourceURI(), ecorePackage.getEString(), "resourceURI", null, 1, 1, - EDynamicPackageDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(eGlobalPackageDefEClass, EGlobalPackageDef.class, "EGlobalPackageDef", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - - initEClass(cdoClientProtocolFactoryDefEClass, CDOClientProtocolFactoryDef.class, "CDOClientProtocolFactoryDef", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(cdoResourceDefEClass, CDOResourceDef.class, "CDOResourceDef", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getCDOResourceDef_CdoTransaction(), this.getCDOTransactionDef(), null, "cdoTransaction", null, 1, 1, - CDOResourceDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCDOResourceDef_ResourceMode(), this.getResourceMode(), "resourceMode", "null", 1, 1, - CDOResourceDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getCDOResourceDef_Path(), ecorePackage.getEString(), "path", null, 1, 1, CDOResourceDef.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(resourceModeEEnum, ResourceMode.class, "ResourceMode"); - addEEnumLiteral(resourceModeEEnum, ResourceMode.GET); - addEEnumLiteral(resourceModeEEnum, ResourceMode.CREATE); - addEEnumLiteral(resourceModeEEnum, ResourceMode.GET_OR_CREATE); - - // Create resource - createResource(eNS_URI); - } - -} // CDODefsPackageImpl +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs.impl; + +import org.eclipse.emf.cdo.defs.CDOAuditDef; +import org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef; +import org.eclipse.emf.cdo.defs.CDODefsFactory; +import org.eclipse.emf.cdo.defs.CDODefsPackage; +import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef; +import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef; +import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef; +import org.eclipse.emf.cdo.defs.CDOResourceDef; +import org.eclipse.emf.cdo.defs.CDOSessionDef; +import org.eclipse.emf.cdo.defs.CDOTransactionDef; +import org.eclipse.emf.cdo.defs.CDOViewDef; +import org.eclipse.emf.cdo.defs.EDynamicPackageDef; +import org.eclipse.emf.cdo.defs.EGlobalPackageDef; +import org.eclipse.emf.cdo.defs.EPackageDef; +import org.eclipse.emf.cdo.defs.ResourceMode; + +import org.eclipse.net4j.defs.Net4jDefsPackage; +import org.eclipse.net4j.util.defs.Net4jUtilDefsPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * An implementation of the model Package. + * @generated + */ +public class CDODefsPackageImpl extends EPackageImpl implements CDODefsPackage +{ + /** + * + * @generated + */ + private EClass cdoViewDefEClass = null; + + /** + * + * @generated + */ + private EClass cdoTransactionDefEClass = null; + + /** + * + * @generated + */ + private EClass cdoAuditDefEClass = null; + + /** + * + * @generated + */ + private EClass cdoSessionDefEClass = null; + + /** + * + * @generated + */ + private EClass cdoPackageRegistryDefEClass = null; + + /** + * + * @generated + */ + private EClass cdoEagerPackageRegistryDefEClass = null; + + /** + * + * @generated + */ + private EClass cdoLazyPackageRegistryDefEClass = null; + + /** + * + * @generated + */ + private EClass ePackageDefEClass = null; + + /** + * + * @generated + */ + private EClass eDynamicPackageDefEClass = null; + + /** + * + * @generated + */ + private EClass eGlobalPackageDefEClass = null; + + /** + * + * @generated + */ + private EClass cdoClientProtocolFactoryDefEClass = null; + + /** + * + * @generated + */ + private EClass cdoResourceDefEClass = null; + + /** + * + * @generated + */ + private EEnum resourceModeEEnum = 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.eclipse.emf.cdo.defs.CDODefsPackage#eNS_URI + * @see #init() + * @generated + */ + private CDODefsPackageImpl() + { + super(eNS_URI, CDODefsFactory.eINSTANCE); + } + + /** + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link CDODefsPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CDODefsPackage init() + { + if (isInited) + return (CDODefsPackage)EPackage.Registry.INSTANCE.getEPackage(CDODefsPackage.eNS_URI); + + // Obtain or create and register package + CDODefsPackageImpl theCDODefsPackage = (CDODefsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CDODefsPackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new CDODefsPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + Net4jDefsPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCDODefsPackage.createPackageContents(); + + // Initialize created meta-data + theCDODefsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCDODefsPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CDODefsPackage.eNS_URI, theCDODefsPackage); + return theCDODefsPackage; + } + + /** + * + * @generated + */ + public EClass getCDOViewDef() + { + return cdoViewDefEClass; + } + + /** + * + * @generated + */ + public EReference getCDOViewDef_CdoSessionDef() + { + return (EReference)cdoViewDefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getCDOTransactionDef() + { + return cdoTransactionDefEClass; + } + + /** + * + * @generated + */ + public EClass getCDOAuditDef() + { + return cdoAuditDefEClass; + } + + /** + * + * @generated + */ + public EAttribute getCDOAuditDef_TimeStamp() + { + return (EAttribute)cdoAuditDefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getCDOSessionDef() + { + return cdoSessionDefEClass; + } + + /** + * + * @generated + */ + public EReference getCDOSessionDef_ConnectorDef() + { + return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getCDOSessionDef_RepositoryName() + { + return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EReference getCDOSessionDef_CdoPackageRegistryDef() + { + return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EAttribute getCDOSessionDef_LegacySupportEnabled() + { + return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EClass getCDOPackageRegistryDef() + { + return cdoPackageRegistryDefEClass; + } + + /** + * + * @generated + */ + public EReference getCDOPackageRegistryDef_Packages() + { + return (EReference)cdoPackageRegistryDefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getCDOEagerPackageRegistryDef() + { + return cdoEagerPackageRegistryDefEClass; + } + + /** + * + * @generated + */ + public EClass getCDOLazyPackageRegistryDef() + { + return cdoLazyPackageRegistryDefEClass; + } + + /** + * + * @generated + */ + public EClass getEPackageDef() + { + return ePackageDefEClass; + } + + /** + * + * @generated + */ + public EAttribute getEPackageDef_NsURI() + { + return (EAttribute)ePackageDefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getEDynamicPackageDef() + { + return eDynamicPackageDefEClass; + } + + /** + * + * @generated + */ + public EAttribute getEDynamicPackageDef_ResourceURI() + { + return (EAttribute)eDynamicPackageDefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getEGlobalPackageDef() + { + return eGlobalPackageDefEClass; + } + + /** + * + * @generated + */ + public EClass getCDOClientProtocolFactoryDef() + { + return cdoClientProtocolFactoryDefEClass; + } + + /** + * + * @generated + */ + public EClass getCDOResourceDef() + { + return cdoResourceDefEClass; + } + + /** + * + * @generated + */ + public EReference getCDOResourceDef_CdoTransaction() + { + return (EReference)cdoResourceDefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getCDOResourceDef_ResourceMode() + { + return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getCDOResourceDef_Path() + { + return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EEnum getResourceMode() + { + return resourceModeEEnum; + } + + /** + * + * @generated + */ + public CDODefsFactory getCDODefsFactory() + { + return (CDODefsFactory)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 + cdoViewDefEClass = createEClass(CDO_VIEW_DEF); + createEReference(cdoViewDefEClass, CDO_VIEW_DEF__CDO_SESSION_DEF); + + cdoTransactionDefEClass = createEClass(CDO_TRANSACTION_DEF); + + cdoAuditDefEClass = createEClass(CDO_AUDIT_DEF); + createEAttribute(cdoAuditDefEClass, CDO_AUDIT_DEF__TIME_STAMP); + + cdoSessionDefEClass = createEClass(CDO_SESSION_DEF); + createEReference(cdoSessionDefEClass, CDO_SESSION_DEF__CONNECTOR_DEF); + createEAttribute(cdoSessionDefEClass, CDO_SESSION_DEF__REPOSITORY_NAME); + createEReference(cdoSessionDefEClass, CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF); + createEAttribute(cdoSessionDefEClass, CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED); + + cdoPackageRegistryDefEClass = createEClass(CDO_PACKAGE_REGISTRY_DEF); + createEReference(cdoPackageRegistryDefEClass, CDO_PACKAGE_REGISTRY_DEF__PACKAGES); + + cdoEagerPackageRegistryDefEClass = createEClass(CDO_EAGER_PACKAGE_REGISTRY_DEF); + + cdoLazyPackageRegistryDefEClass = createEClass(CDO_LAZY_PACKAGE_REGISTRY_DEF); + + ePackageDefEClass = createEClass(EPACKAGE_DEF); + createEAttribute(ePackageDefEClass, EPACKAGE_DEF__NS_URI); + + eDynamicPackageDefEClass = createEClass(EDYNAMIC_PACKAGE_DEF); + createEAttribute(eDynamicPackageDefEClass, EDYNAMIC_PACKAGE_DEF__RESOURCE_URI); + + eGlobalPackageDefEClass = createEClass(EGLOBAL_PACKAGE_DEF); + + cdoClientProtocolFactoryDefEClass = createEClass(CDO_CLIENT_PROTOCOL_FACTORY_DEF); + + cdoResourceDefEClass = createEClass(CDO_RESOURCE_DEF); + createEReference(cdoResourceDefEClass, CDO_RESOURCE_DEF__CDO_TRANSACTION); + createEAttribute(cdoResourceDefEClass, CDO_RESOURCE_DEF__RESOURCE_MODE); + createEAttribute(cdoResourceDefEClass, CDO_RESOURCE_DEF__PATH); + + // Create enums + resourceModeEEnum = createEEnum(RESOURCE_MODE); + } + + /** + * + * @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); + + // Obtain other dependent packages + Net4jUtilDefsPackage theNet4jUtilDefsPackage = (Net4jUtilDefsPackage)EPackage.Registry.INSTANCE + .getEPackage(Net4jUtilDefsPackage.eNS_URI); + Net4jDefsPackage theNet4jDefsPackage = (Net4jDefsPackage)EPackage.Registry.INSTANCE + .getEPackage(Net4jDefsPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + cdoViewDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + cdoTransactionDefEClass.getESuperTypes().add(this.getCDOViewDef()); + cdoAuditDefEClass.getESuperTypes().add(this.getCDOViewDef()); + cdoSessionDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + cdoPackageRegistryDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + cdoEagerPackageRegistryDefEClass.getESuperTypes().add(this.getCDOPackageRegistryDef()); + cdoLazyPackageRegistryDefEClass.getESuperTypes().add(this.getCDOPackageRegistryDef()); + ePackageDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + eDynamicPackageDefEClass.getESuperTypes().add(this.getEPackageDef()); + eGlobalPackageDefEClass.getESuperTypes().add(this.getEPackageDef()); + cdoClientProtocolFactoryDefEClass.getESuperTypes().add(theNet4jDefsPackage.getClientProtocolFactoryDef()); + cdoResourceDefEClass.getESuperTypes().add(theNet4jUtilDefsPackage.getDef()); + + // Initialize classes and features; add operations and parameters + initEClass(cdoViewDefEClass, CDOViewDef.class, "CDOViewDef", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOViewDef_CdoSessionDef(), this.getCDOSessionDef(), null, "cdoSessionDef", null, 1, 1, + CDOViewDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoTransactionDefEClass, CDOTransactionDef.class, "CDOTransactionDef", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoAuditDefEClass, CDOAuditDef.class, "CDOAuditDef", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCDOAuditDef_TimeStamp(), ecorePackage.getEDate(), "timeStamp", null, 1, 1, CDOAuditDef.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoSessionDefEClass, CDOSessionDef.class, "CDOSessionDef", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOSessionDef_ConnectorDef(), theNet4jDefsPackage.getConnectorDef(), null, "connectorDef", null, + 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOSessionDef_RepositoryName(), ecorePackage.getEString(), "repositoryName", null, 1, 1, + CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, + !IS_DERIVED, !IS_ORDERED); + initEReference(getCDOSessionDef_CdoPackageRegistryDef(), this.getCDOPackageRegistryDef(), null, + "cdoPackageRegistryDef", null, 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, + !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOSessionDef_LegacySupportEnabled(), ecorePackage.getEBoolean(), "legacySupportEnabled", + "false", 1, 1, CDOSessionDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoPackageRegistryDefEClass, CDOPackageRegistryDef.class, "CDOPackageRegistryDef", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOPackageRegistryDef_Packages(), this.getEPackageDef(), null, "packages", null, 0, -1, + CDOPackageRegistryDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cdoEagerPackageRegistryDefEClass, CDOEagerPackageRegistryDef.class, "CDOEagerPackageRegistryDef", + !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoLazyPackageRegistryDefEClass, CDOLazyPackageRegistryDef.class, "CDOLazyPackageRegistryDef", + !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(ePackageDefEClass, EPackageDef.class, "EPackageDef", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEPackageDef_NsURI(), ecorePackage.getEString(), "nsURI", null, 1, 1, EPackageDef.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eDynamicPackageDefEClass, EDynamicPackageDef.class, "EDynamicPackageDef", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEDynamicPackageDef_ResourceURI(), ecorePackage.getEString(), "resourceURI", null, 1, 1, + EDynamicPackageDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(eGlobalPackageDefEClass, EGlobalPackageDef.class, "EGlobalPackageDef", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoClientProtocolFactoryDefEClass, CDOClientProtocolFactoryDef.class, "CDOClientProtocolFactoryDef", + !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(cdoResourceDefEClass, CDOResourceDef.class, "CDOResourceDef", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getCDOResourceDef_CdoTransaction(), this.getCDOTransactionDef(), null, "cdoTransaction", null, 1, 1, + CDOResourceDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOResourceDef_ResourceMode(), this.getResourceMode(), "resourceMode", "null", 1, 1, + CDOResourceDef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getCDOResourceDef_Path(), ecorePackage.getEString(), "path", null, 1, 1, CDOResourceDef.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(resourceModeEEnum, ResourceMode.class, "ResourceMode"); + addEEnumLiteral(resourceModeEEnum, ResourceMode.GET); + addEEnumLiteral(resourceModeEEnum, ResourceMode.CREATE); + addEEnumLiteral(resourceModeEEnum, ResourceMode.GET_OR_CREATE); + + // Create resource + createResource(eNS_URI); + } + +} // CDODefsPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOEagerPackageRegistryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOEagerPackageRegistryDefImpl.java index 6a22c2537a..51de9a26ca 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOEagerPackageRegistryDefImpl.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOEagerPackageRegistryDefImpl.java @@ -1,61 +1,61 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs.impl; - -import org.eclipse.emf.cdo.defs.CDODefsPackage; -import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef; - -import org.eclipse.emf.ecore.EClass; - -/** - * An implementation of the model object 'Eager Package Registry Def'. - *
- *
- * - * @generated - */ -public class CDOEagerPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOEagerPackageRegistryDef -{ - /** - * - * @generated - */ - protected CDOEagerPackageRegistryDefImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return CDODefsPackage.Literals.CDO_EAGER_PACKAGE_REGISTRY_DEF; - } - - /** - * Creates a {@link Eager}. - * - * @return the CDO package registry - */ - @Override - protected Object createInstance() - { - // TODO: implement CDOEagerPackageRegistryDefImpl.createInstance() - throw new UnsupportedOperationException(); - // return addPackages(CDOUtil.createEagerPackageRegistry()); - } - -} // EagerPackageRegistryDefImpl +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs.impl; + +import org.eclipse.emf.cdo.defs.CDODefsPackage; +import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef; + +import org.eclipse.emf.ecore.EClass; + +/** + * An implementation of the model object 'Eager Package Registry Def'. + *+ *
+ * + * @generated + */ +public class CDOEagerPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOEagerPackageRegistryDef +{ + /** + * + * @generated + */ + protected CDOEagerPackageRegistryDefImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_EAGER_PACKAGE_REGISTRY_DEF; + } + + /** + * Creates a {@link Eager}. + * + * @return the CDO package registry + */ + @Override + protected Object createInstance() + { + // TODO: implement CDOEagerPackageRegistryDefImpl.createInstance() + throw new UnsupportedOperationException(); + // return addPackages(CDOUtil.createEagerPackageRegistry()); + } + +} // EagerPackageRegistryDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOLazyPackageRegistryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOLazyPackageRegistryDefImpl.java index b39de7143a..03337e276a 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOLazyPackageRegistryDefImpl.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOLazyPackageRegistryDefImpl.java @@ -1,60 +1,60 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs.impl; - -import org.eclipse.emf.cdo.defs.CDODefsPackage; -import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef; - -import org.eclipse.emf.ecore.EClass; - -/** - * An implementation of the model object 'Lazy Package Registry Def'. - *- *
- * - * @generated - */ -public class CDOLazyPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOLazyPackageRegistryDef -{ - /** - * - * @generated - */ - protected CDOLazyPackageRegistryDefImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return CDODefsPackage.Literals.CDO_LAZY_PACKAGE_REGISTRY_DEF; - } - - /** - * Creates a {@link Lazy}. - * - * @return the CDO package registry - */ - @Override - protected Object createInstance() - { - // TODO: implement CDOLazyPackageRegistryDefImpl.createInstance() - throw new UnsupportedOperationException(); - // return addPackages(CDOUtil.createLazyPackageRegistry()); - } -} // LazyPackageRegistryDefImpl +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs.impl; + +import org.eclipse.emf.cdo.defs.CDODefsPackage; +import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef; + +import org.eclipse.emf.ecore.EClass; + +/** + * An implementation of the model object 'Lazy Package Registry Def'. + *+ *
+ * + * @generated + */ +public class CDOLazyPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOLazyPackageRegistryDef +{ + /** + * + * @generated + */ + protected CDOLazyPackageRegistryDefImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_LAZY_PACKAGE_REGISTRY_DEF; + } + + /** + * Creates a {@link Lazy}. + * + * @return the CDO package registry + */ + @Override + protected Object createInstance() + { + // TODO: implement CDOLazyPackageRegistryDefImpl.createInstance() + throw new UnsupportedOperationException(); + // return addPackages(CDOUtil.createLazyPackageRegistry()); + } +} // LazyPackageRegistryDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOPackageRegistryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOPackageRegistryDefImpl.java index 7e0bbddcf6..57b183e875 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOPackageRegistryDefImpl.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOPackageRegistryDefImpl.java @@ -1,254 +1,254 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs.impl; - -import org.eclipse.emf.cdo.defs.CDODefsPackage; -import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef; -import org.eclipse.emf.cdo.defs.EPackageDef; - -import org.eclipse.net4j.util.defs.impl.DefImpl; - -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -// TODO: Auto-generated Javadoc -/** - * An implementation of the model object ' CDO Package Registry Def'. - *- * The following features are implemented: - *
+ * The following features are implemented: + *
- * The following features are implemented: - *
+ * The following features are implemented: + *
- * The following features are implemented: - *
+ * The following features are implemented: + *
- *
- * - * @generated - */ -public class CDOTransactionDefImpl extends CDOViewDefImpl implements CDOTransactionDef -{ - - /** - * - * @generated - */ - protected CDOTransactionDefImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return CDODefsPackage.Literals.CDO_TRANSACTION_DEF; - } - - @Override - protected Object createInstance() - { - CDOSession cdoSession = (CDOSession)getCdoSessionDef().getInstance(); - return cdoSession.openTransaction(); - } - -} // CDOTransactionDefImpl +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs.impl; + +import org.eclipse.emf.cdo.defs.CDODefsPackage; +import org.eclipse.emf.cdo.defs.CDOTransactionDef; +import org.eclipse.emf.cdo.session.CDOSession; + +import org.eclipse.emf.ecore.EClass; + +/** + * An implementation of the model object ' CDO Transaction Def'. + *+ *
+ * + * @generated + */ +public class CDOTransactionDefImpl extends CDOViewDefImpl implements CDOTransactionDef +{ + + /** + * + * @generated + */ + protected CDOTransactionDefImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.CDO_TRANSACTION_DEF; + } + + @Override + protected Object createInstance() + { + CDOSession cdoSession = (CDOSession)getCdoSessionDef().getInstance(); + return cdoSession.openTransaction(); + } + +} // CDOTransactionDefImpl diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOViewDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOViewDefImpl.java index 7d3cc82080..f6da964fd9 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOViewDefImpl.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOViewDefImpl.java @@ -1,195 +1,195 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs.impl; - -import org.eclipse.emf.cdo.defs.CDODefsPackage; -import org.eclipse.emf.cdo.defs.CDOSessionDef; -import org.eclipse.emf.cdo.defs.CDOViewDef; -import org.eclipse.emf.cdo.session.CDOSession; - -import org.eclipse.net4j.util.CheckUtil; -import org.eclipse.net4j.util.defs.impl.DefImpl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * An implementation of the model object ' CDO View Definition'. - *- * The following features are implemented: - *
+ * The following features are implemented: + *
- * The following features are implemented: - *
+ * The following features are implemented: + *
- *
- * - * @generated - */ -public class EGlobalPackageDefImpl extends EPackageDefImpl implements EGlobalPackageDef -{ - /** - * - * @generated - */ - protected EGlobalPackageDefImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return CDODefsPackage.Literals.EGLOBAL_PACKAGE_DEF; - } - - /** - * @ADDED - */ - @Override - public Object createInstance() - { - return EPackage.Registry.INSTANCE.getEPackage(getNsURI()); - } -} +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andre Dietisheim - initial API and implementation + * Eike Stepper - maintenance + */ +package org.eclipse.emf.cdo.defs.impl; + +import org.eclipse.emf.cdo.defs.CDODefsPackage; +import org.eclipse.emf.cdo.defs.EGlobalPackageDef; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; + +/** + * An implementation of the model object ' Native CDO Package Def'. + *+ *
+ * + * @generated + */ +public class EGlobalPackageDefImpl extends EPackageDefImpl implements EGlobalPackageDef +{ + /** + * + * @generated + */ + protected EGlobalPackageDefImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return CDODefsPackage.Literals.EGLOBAL_PACKAGE_DEF; + } + + /** + * @ADDED + */ + @Override + public Object createInstance() + { + return EPackage.Registry.INSTANCE.getEPackage(getNsURI()); + } +} diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EPackageDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EPackageDefImpl.java index a76bdd694b..2c96435b9d 100644 --- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EPackageDefImpl.java +++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EPackageDefImpl.java @@ -1,189 +1,189 @@ -/* - * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Andre Dietisheim - initial API and implementation - * Eike Stepper - maintenance - */ -package org.eclipse.emf.cdo.defs.impl; - -import org.eclipse.emf.cdo.defs.CDODefsPackage; -import org.eclipse.emf.cdo.defs.EPackageDef; - -import org.eclipse.net4j.util.CheckUtil; -import org.eclipse.net4j.util.defs.impl.DefImpl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import java.net.URI; - -/** - * An implementation of the model object 'CDO Package Def'. - *- * The following features are implemented: - *
+ * The following features are implemented: + *
createXXX
- * method for each class of the model.
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage
- * @generated
- */
-public class CDODefsAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- *
- * @generated
- */
- protected static CDODefsPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- * @generated
- */
- public CDODefsAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = CDODefsPackage.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 that delegates to the createXXX
methods.
- *
- * @generated
- */
- protected CDODefsSwitchtarget
.
- *
- * @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.eclipse.emf.cdo.defs.CDOViewDef CDO View Def}'.
- * 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.eclipse.emf.cdo.defs.CDOViewDef
- * @generated
- */
- public Adapter createCDOViewDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOTransactionDef CDO Transaction Def}'.
- * 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.eclipse.emf.cdo.defs.CDOTransactionDef
- * @generated
- */
- public Adapter createCDOTransactionDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOAuditDef CDO Audit Def}'.
- * 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.eclipse.emf.cdo.defs.CDOAuditDef
- * @generated
- */
- public Adapter createCDOAuditDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOSessionDef CDO Session Def}'.
- * 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.eclipse.emf.cdo.defs.CDOSessionDef
- * @generated
- */
- public Adapter createCDOSessionDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOPackageRegistryDef CDO Package Registry Def}'.
- * 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.eclipse.emf.cdo.defs.CDOPackageRegistryDef
- * @generated
- */
- public Adapter createCDOPackageRegistryDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef CDO Eager Package Registry Def}'.
- * 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.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef
- * @generated
- */
- public Adapter createCDOEagerPackageRegistryDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef CDO Lazy Package Registry Def}'.
- * 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.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef
- * @generated
- */
- public Adapter createCDOLazyPackageRegistryDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.EPackageDef EPackage Def}'.
- * 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.eclipse.emf.cdo.defs.EPackageDef
- * @generated
- */
- public Adapter createEPackageDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef EDynamic Package Def}'.
- * 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.eclipse.emf.cdo.defs.EDynamicPackageDef
- * @generated
- */
- public Adapter createEDynamicPackageDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.EGlobalPackageDef EGlobal Package Def}'.
- * 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.eclipse.emf.cdo.defs.EGlobalPackageDef
- * @generated
- */
- public Adapter createEGlobalPackageDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef CDO Client Protocol Factory Def}'.
- * 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.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef
- * @generated
- */
- public Adapter createCDOClientProtocolFactoryDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOResourceDef CDO Resource Def}'.
- * 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.eclipse.emf.cdo.defs.CDOResourceDef
- * @generated
- */
- public Adapter createCDOResourceDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.defs.Def Def}'. 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.eclipse.net4j.util.defs.Def
- * @generated
- */
- public Adapter createDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.net4j.defs.ProtocolProviderDef Protocol Provider Def}'.
- * 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.eclipse.net4j.defs.ProtocolProviderDef
- * @generated
- */
- public Adapter createProtocolProviderDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.net4j.defs.ClientProtocolFactoryDef Client Protocol Factory Def}'.
- * 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.eclipse.net4j.defs.ClientProtocolFactoryDef
- * @generated
- */
- public Adapter createClientProtocolFactoryDefAdapter()
- {
- 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;
- }
-
-} // CDODefsAdapterFactory
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Andre Dietisheim - initial API and implementation
+ * Eike Stepper - maintenance
+ */
+package org.eclipse.emf.cdo.defs.util;
+
+//import org.eclipse.emf.cdo.defs.*;
+import org.eclipse.emf.cdo.defs.CDOAuditDef;
+import org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef;
+import org.eclipse.emf.cdo.defs.CDODefsPackage;
+import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef;
+import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef;
+import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef;
+import org.eclipse.emf.cdo.defs.CDOResourceDef;
+import org.eclipse.emf.cdo.defs.CDOSessionDef;
+import org.eclipse.emf.cdo.defs.CDOTransactionDef;
+import org.eclipse.emf.cdo.defs.CDOViewDef;
+import org.eclipse.emf.cdo.defs.EDynamicPackageDef;
+import org.eclipse.emf.cdo.defs.EGlobalPackageDef;
+import org.eclipse.emf.cdo.defs.EPackageDef;
+
+import org.eclipse.net4j.defs.ClientProtocolFactoryDef;
+import org.eclipse.net4j.defs.ProtocolProviderDef;
+import org.eclipse.net4j.util.defs.Def;
+
+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.eclipse.emf.cdo.defs.CDODefsPackage
+ * @generated
+ */
+public class CDODefsAdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package.
+ *
+ * @generated
+ */
+ protected static CDODefsPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ * @generated
+ */
+ public CDODefsAdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = CDODefsPackage.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 that delegates to the createXXX
methods.
+ *
+ * @generated
+ */
+ protected CDODefsSwitchtarget
.
+ *
+ * @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.eclipse.emf.cdo.defs.CDOViewDef CDO View Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOViewDef
+ * @generated
+ */
+ public Adapter createCDOViewDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOTransactionDef CDO Transaction Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOTransactionDef
+ * @generated
+ */
+ public Adapter createCDOTransactionDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOAuditDef CDO Audit Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOAuditDef
+ * @generated
+ */
+ public Adapter createCDOAuditDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOSessionDef CDO Session Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOSessionDef
+ * @generated
+ */
+ public Adapter createCDOSessionDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOPackageRegistryDef CDO Package Registry Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOPackageRegistryDef
+ * @generated
+ */
+ public Adapter createCDOPackageRegistryDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef CDO Eager Package Registry Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef
+ * @generated
+ */
+ public Adapter createCDOEagerPackageRegistryDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef CDO Lazy Package Registry Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef
+ * @generated
+ */
+ public Adapter createCDOLazyPackageRegistryDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.EPackageDef EPackage Def}'.
+ * 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.eclipse.emf.cdo.defs.EPackageDef
+ * @generated
+ */
+ public Adapter createEPackageDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef EDynamic Package Def}'.
+ * 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.eclipse.emf.cdo.defs.EDynamicPackageDef
+ * @generated
+ */
+ public Adapter createEDynamicPackageDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.EGlobalPackageDef EGlobal Package Def}'.
+ * 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.eclipse.emf.cdo.defs.EGlobalPackageDef
+ * @generated
+ */
+ public Adapter createEGlobalPackageDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef CDO Client Protocol Factory Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef
+ * @generated
+ */
+ public Adapter createCDOClientProtocolFactoryDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOResourceDef CDO Resource Def}'.
+ * 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.eclipse.emf.cdo.defs.CDOResourceDef
+ * @generated
+ */
+ public Adapter createCDOResourceDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.net4j.util.defs.Def Def}'. 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.eclipse.net4j.util.defs.Def
+ * @generated
+ */
+ public Adapter createDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.net4j.defs.ProtocolProviderDef Protocol Provider Def}'.
+ * 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.eclipse.net4j.defs.ProtocolProviderDef
+ * @generated
+ */
+ public Adapter createProtocolProviderDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.net4j.defs.ClientProtocolFactoryDef Client Protocol Factory Def}'.
+ * 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.eclipse.net4j.defs.ClientProtocolFactoryDef
+ * @generated
+ */
+ public Adapter createClientProtocolFactoryDefAdapter()
+ {
+ 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;
+ }
+
+} // CDODefsAdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsSwitch.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsSwitch.java
index bff59f6701..dc5b04340f 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsSwitch.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsSwitch.java
@@ -1,564 +1,564 @@
-/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Andre Dietisheim - initial API and implementation
- * Eike Stepper - maintenance
- */
-package org.eclipse.emf.cdo.defs.util;
-
-import org.eclipse.emf.cdo.defs.CDOAuditDef;
-import org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef;
-import org.eclipse.emf.cdo.defs.CDODefsPackage;
-import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef;
-import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef;
-import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef;
-import org.eclipse.emf.cdo.defs.CDOResourceDef;
-import org.eclipse.emf.cdo.defs.CDOSessionDef;
-import org.eclipse.emf.cdo.defs.CDOTransactionDef;
-import org.eclipse.emf.cdo.defs.CDOViewDef;
-import org.eclipse.emf.cdo.defs.EDynamicPackageDef;
-import org.eclipse.emf.cdo.defs.EGlobalPackageDef;
-import org.eclipse.emf.cdo.defs.EPackageDef;
-
-import org.eclipse.net4j.defs.ClientProtocolFactoryDef;
-import org.eclipse.net4j.defs.ProtocolProviderDef;
-import org.eclipse.net4j.util.defs.Def;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import java.util.List;
-
-/**
- * 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.eclipse.emf.cdo.defs.CDODefsPackage
- * @generated
- */
-public class CDODefsSwitchcaseXXX
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
- {
- ListcaseXXX
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 CDODefsPackage.CDO_VIEW_DEF:
- {
- CDOViewDef cdoViewDef = (CDOViewDef)theEObject;
- T result = caseCDOViewDef(cdoViewDef);
- if (result == null)
- {
- result = caseDef(cdoViewDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.CDO_TRANSACTION_DEF:
- {
- CDOTransactionDef cdoTransactionDef = (CDOTransactionDef)theEObject;
- T result = caseCDOTransactionDef(cdoTransactionDef);
- if (result == null)
- {
- result = caseCDOViewDef(cdoTransactionDef);
- }
- if (result == null)
- {
- result = caseDef(cdoTransactionDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.CDO_AUDIT_DEF:
- {
- CDOAuditDef cdoAuditDef = (CDOAuditDef)theEObject;
- T result = caseCDOAuditDef(cdoAuditDef);
- if (result == null)
- {
- result = caseCDOViewDef(cdoAuditDef);
- }
- if (result == null)
- {
- result = caseDef(cdoAuditDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.CDO_SESSION_DEF:
- {
- CDOSessionDef cdoSessionDef = (CDOSessionDef)theEObject;
- T result = caseCDOSessionDef(cdoSessionDef);
- if (result == null)
- {
- result = caseDef(cdoSessionDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF:
- {
- CDOPackageRegistryDef cdoPackageRegistryDef = (CDOPackageRegistryDef)theEObject;
- T result = caseCDOPackageRegistryDef(cdoPackageRegistryDef);
- if (result == null)
- {
- result = caseDef(cdoPackageRegistryDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.CDO_EAGER_PACKAGE_REGISTRY_DEF:
- {
- CDOEagerPackageRegistryDef cdoEagerPackageRegistryDef = (CDOEagerPackageRegistryDef)theEObject;
- T result = caseCDOEagerPackageRegistryDef(cdoEagerPackageRegistryDef);
- if (result == null)
- {
- result = caseCDOPackageRegistryDef(cdoEagerPackageRegistryDef);
- }
- if (result == null)
- {
- result = caseDef(cdoEagerPackageRegistryDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.CDO_LAZY_PACKAGE_REGISTRY_DEF:
- {
- CDOLazyPackageRegistryDef cdoLazyPackageRegistryDef = (CDOLazyPackageRegistryDef)theEObject;
- T result = caseCDOLazyPackageRegistryDef(cdoLazyPackageRegistryDef);
- if (result == null)
- {
- result = caseCDOPackageRegistryDef(cdoLazyPackageRegistryDef);
- }
- if (result == null)
- {
- result = caseDef(cdoLazyPackageRegistryDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.EPACKAGE_DEF:
- {
- EPackageDef ePackageDef = (EPackageDef)theEObject;
- T result = caseEPackageDef(ePackageDef);
- if (result == null)
- {
- result = caseDef(ePackageDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.EDYNAMIC_PACKAGE_DEF:
- {
- EDynamicPackageDef eDynamicPackageDef = (EDynamicPackageDef)theEObject;
- T result = caseEDynamicPackageDef(eDynamicPackageDef);
- if (result == null)
- {
- result = caseEPackageDef(eDynamicPackageDef);
- }
- if (result == null)
- {
- result = caseDef(eDynamicPackageDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.EGLOBAL_PACKAGE_DEF:
- {
- EGlobalPackageDef eGlobalPackageDef = (EGlobalPackageDef)theEObject;
- T result = caseEGlobalPackageDef(eGlobalPackageDef);
- if (result == null)
- {
- result = caseEPackageDef(eGlobalPackageDef);
- }
- if (result == null)
- {
- result = caseDef(eGlobalPackageDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.CDO_CLIENT_PROTOCOL_FACTORY_DEF:
- {
- CDOClientProtocolFactoryDef cdoClientProtocolFactoryDef = (CDOClientProtocolFactoryDef)theEObject;
- T result = caseCDOClientProtocolFactoryDef(cdoClientProtocolFactoryDef);
- if (result == null)
- {
- result = caseClientProtocolFactoryDef(cdoClientProtocolFactoryDef);
- }
- if (result == null)
- {
- result = caseProtocolProviderDef(cdoClientProtocolFactoryDef);
- }
- if (result == null)
- {
- result = caseDef(cdoClientProtocolFactoryDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case CDODefsPackage.CDO_RESOURCE_DEF:
- {
- CDOResourceDef cdoResourceDef = (CDOResourceDef)theEObject;
- T result = caseCDOResourceDef(cdoResourceDef);
- if (result == null)
- {
- result = caseDef(cdoResourceDef);
- }
- if (result == null)
- {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO View Def'.
- * 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 'CDO View Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOViewDef(CDOViewDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO Transaction Def'. 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 'CDO Transaction Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOTransactionDef(CDOTransactionDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO Audit Def'.
- * 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 'CDO Audit Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOAuditDef(CDOAuditDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO Session Def'.
- * 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 'CDO Session Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOSessionDef(CDOSessionDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO Package Registry Def'. 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 'CDO Package Registry Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOPackageRegistryDef(CDOPackageRegistryDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO Eager Package Registry Def'. 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 'CDO Eager Package Registry Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOEagerPackageRegistryDef(CDOEagerPackageRegistryDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO Lazy Package Registry Def'. 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 'CDO Lazy Package Registry Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOLazyPackageRegistryDef(CDOLazyPackageRegistryDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EPackage Def'.
- * 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 'EPackage Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEPackageDef(EPackageDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EDynamic Package Def'. 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 'EDynamic Package Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEDynamicPackageDef(EDynamicPackageDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EGlobal Package Def'. 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 'EGlobal Package Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEGlobalPackageDef(EGlobalPackageDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO Client Protocol Factory Def'. 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 'CDO Client Protocol Factory Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOClientProtocolFactoryDef(CDOClientProtocolFactoryDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'CDO Resource Def'. 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 'CDO Resource Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCDOResourceDef(CDOResourceDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Def'. 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 'Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDef(Def object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Protocol Provider Def'. 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 'Protocol Provider Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseProtocolProviderDef(ProtocolProviderDef object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Client Protocol Factory Def'. 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 'Client Protocol Factory Def'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseClientProtocolFactoryDef(ClientProtocolFactoryDef 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;
- }
-
-} // CDODefsSwitch
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Andre Dietisheim - initial API and implementation
+ * Eike Stepper - maintenance
+ */
+package org.eclipse.emf.cdo.defs.util;
+
+import org.eclipse.emf.cdo.defs.CDOAuditDef;
+import org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef;
+import org.eclipse.emf.cdo.defs.CDODefsPackage;
+import org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef;
+import org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef;
+import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef;
+import org.eclipse.emf.cdo.defs.CDOResourceDef;
+import org.eclipse.emf.cdo.defs.CDOSessionDef;
+import org.eclipse.emf.cdo.defs.CDOTransactionDef;
+import org.eclipse.emf.cdo.defs.CDOViewDef;
+import org.eclipse.emf.cdo.defs.EDynamicPackageDef;
+import org.eclipse.emf.cdo.defs.EGlobalPackageDef;
+import org.eclipse.emf.cdo.defs.EPackageDef;
+
+import org.eclipse.net4j.defs.ClientProtocolFactoryDef;
+import org.eclipse.net4j.defs.ProtocolProviderDef;
+import org.eclipse.net4j.util.defs.Def;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import java.util.List;
+
+/**
+ * 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.eclipse.emf.cdo.defs.CDODefsPackage
+ * @generated
+ */
+public class CDODefsSwitchcaseXXX
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
+ {
+ ListcaseXXX
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 CDODefsPackage.CDO_VIEW_DEF:
+ {
+ CDOViewDef cdoViewDef = (CDOViewDef)theEObject;
+ T result = caseCDOViewDef(cdoViewDef);
+ if (result == null)
+ {
+ result = caseDef(cdoViewDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.CDO_TRANSACTION_DEF:
+ {
+ CDOTransactionDef cdoTransactionDef = (CDOTransactionDef)theEObject;
+ T result = caseCDOTransactionDef(cdoTransactionDef);
+ if (result == null)
+ {
+ result = caseCDOViewDef(cdoTransactionDef);
+ }
+ if (result == null)
+ {
+ result = caseDef(cdoTransactionDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.CDO_AUDIT_DEF:
+ {
+ CDOAuditDef cdoAuditDef = (CDOAuditDef)theEObject;
+ T result = caseCDOAuditDef(cdoAuditDef);
+ if (result == null)
+ {
+ result = caseCDOViewDef(cdoAuditDef);
+ }
+ if (result == null)
+ {
+ result = caseDef(cdoAuditDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.CDO_SESSION_DEF:
+ {
+ CDOSessionDef cdoSessionDef = (CDOSessionDef)theEObject;
+ T result = caseCDOSessionDef(cdoSessionDef);
+ if (result == null)
+ {
+ result = caseDef(cdoSessionDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF:
+ {
+ CDOPackageRegistryDef cdoPackageRegistryDef = (CDOPackageRegistryDef)theEObject;
+ T result = caseCDOPackageRegistryDef(cdoPackageRegistryDef);
+ if (result == null)
+ {
+ result = caseDef(cdoPackageRegistryDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.CDO_EAGER_PACKAGE_REGISTRY_DEF:
+ {
+ CDOEagerPackageRegistryDef cdoEagerPackageRegistryDef = (CDOEagerPackageRegistryDef)theEObject;
+ T result = caseCDOEagerPackageRegistryDef(cdoEagerPackageRegistryDef);
+ if (result == null)
+ {
+ result = caseCDOPackageRegistryDef(cdoEagerPackageRegistryDef);
+ }
+ if (result == null)
+ {
+ result = caseDef(cdoEagerPackageRegistryDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.CDO_LAZY_PACKAGE_REGISTRY_DEF:
+ {
+ CDOLazyPackageRegistryDef cdoLazyPackageRegistryDef = (CDOLazyPackageRegistryDef)theEObject;
+ T result = caseCDOLazyPackageRegistryDef(cdoLazyPackageRegistryDef);
+ if (result == null)
+ {
+ result = caseCDOPackageRegistryDef(cdoLazyPackageRegistryDef);
+ }
+ if (result == null)
+ {
+ result = caseDef(cdoLazyPackageRegistryDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.EPACKAGE_DEF:
+ {
+ EPackageDef ePackageDef = (EPackageDef)theEObject;
+ T result = caseEPackageDef(ePackageDef);
+ if (result == null)
+ {
+ result = caseDef(ePackageDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.EDYNAMIC_PACKAGE_DEF:
+ {
+ EDynamicPackageDef eDynamicPackageDef = (EDynamicPackageDef)theEObject;
+ T result = caseEDynamicPackageDef(eDynamicPackageDef);
+ if (result == null)
+ {
+ result = caseEPackageDef(eDynamicPackageDef);
+ }
+ if (result == null)
+ {
+ result = caseDef(eDynamicPackageDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.EGLOBAL_PACKAGE_DEF:
+ {
+ EGlobalPackageDef eGlobalPackageDef = (EGlobalPackageDef)theEObject;
+ T result = caseEGlobalPackageDef(eGlobalPackageDef);
+ if (result == null)
+ {
+ result = caseEPackageDef(eGlobalPackageDef);
+ }
+ if (result == null)
+ {
+ result = caseDef(eGlobalPackageDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.CDO_CLIENT_PROTOCOL_FACTORY_DEF:
+ {
+ CDOClientProtocolFactoryDef cdoClientProtocolFactoryDef = (CDOClientProtocolFactoryDef)theEObject;
+ T result = caseCDOClientProtocolFactoryDef(cdoClientProtocolFactoryDef);
+ if (result == null)
+ {
+ result = caseClientProtocolFactoryDef(cdoClientProtocolFactoryDef);
+ }
+ if (result == null)
+ {
+ result = caseProtocolProviderDef(cdoClientProtocolFactoryDef);
+ }
+ if (result == null)
+ {
+ result = caseDef(cdoClientProtocolFactoryDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case CDODefsPackage.CDO_RESOURCE_DEF:
+ {
+ CDOResourceDef cdoResourceDef = (CDOResourceDef)theEObject;
+ T result = caseCDOResourceDef(cdoResourceDef);
+ if (result == null)
+ {
+ result = caseDef(cdoResourceDef);
+ }
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO View Def'.
+ * 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 'CDO View Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOViewDef(CDOViewDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO Transaction Def'. 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 'CDO Transaction Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOTransactionDef(CDOTransactionDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO Audit Def'.
+ * 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 'CDO Audit Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOAuditDef(CDOAuditDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO Session Def'.
+ * 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 'CDO Session Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOSessionDef(CDOSessionDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO Package Registry Def'. 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 'CDO Package Registry Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOPackageRegistryDef(CDOPackageRegistryDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO Eager Package Registry Def'. 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 'CDO Eager Package Registry Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOEagerPackageRegistryDef(CDOEagerPackageRegistryDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO Lazy Package Registry Def'. 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 'CDO Lazy Package Registry Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOLazyPackageRegistryDef(CDOLazyPackageRegistryDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EPackage Def'.
+ * 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 'EPackage Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEPackageDef(EPackageDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EDynamic Package Def'. 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 'EDynamic Package Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEDynamicPackageDef(EDynamicPackageDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EGlobal Package Def'. 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 'EGlobal Package Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEGlobalPackageDef(EGlobalPackageDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO Client Protocol Factory Def'. 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 'CDO Client Protocol Factory Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOClientProtocolFactoryDef(CDOClientProtocolFactoryDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'CDO Resource Def'. 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 'CDO Resource Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCDOResourceDef(CDOResourceDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Def'. 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 'Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDef(Def object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Protocol Provider Def'. 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 'Protocol Provider Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseProtocolProviderDef(ProtocolProviderDef object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Client Protocol Factory Def'. 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 'Client Protocol Factory Def'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseClientProtocolFactoryDef(ClientProtocolFactoryDef 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;
+ }
+
+} // CDODefsSwitch
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsUtil.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsUtil.java
index 649445e786..52c6cde3d7 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsUtil.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsUtil.java
@@ -1,97 +1,97 @@
-/*
- * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Andre Dietisheim - initial API and implementation
- * Eike Stepper - maintenance
- */
-package org.eclipse.emf.cdo.defs.util;
-
-import org.eclipse.emf.cdo.defs.CDOAuditDef;
-import org.eclipse.emf.cdo.defs.CDODefsFactory;
-import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef;
-import org.eclipse.emf.cdo.defs.CDOResourceDef;
-import org.eclipse.emf.cdo.defs.CDOSessionDef;
-import org.eclipse.emf.cdo.defs.CDOTransactionDef;
-
-import org.eclipse.net4j.defs.TCPConnectorDef;
-
-import java.util.Date;
-
-/**
- * @author Andre Dietisheim
- */
-public class CDODefsUtil
-{
- public static CDOSessionDef createSessionDef(String repositoryName, CDOPackageRegistryDef ePackageRegistryDef,
- TCPConnectorDef tcpConnectorDef)
- {
- CDOSessionDef cdoSessionDef = CDODefsFactory.eINSTANCE.createCDOSessionDef();
- cdoSessionDef.setConnectorDef(tcpConnectorDef);
- cdoSessionDef.setRepositoryName(repositoryName);
- cdoSessionDef.setCdoPackageRegistryDef(ePackageRegistryDef);
- return cdoSessionDef;
- }
-
- /**
- * @since 4.0
- */
- public static CDOSessionDef createSessionDef(String repositoryName, CDOPackageRegistryDef ePackageRegistryDef)
- {
- CDOSessionDef cdoSessionDef = CDODefsFactory.eINSTANCE.createCDOSessionDef();
- cdoSessionDef.setRepositoryName(repositoryName);
- cdoSessionDef.setCdoPackageRegistryDef(ePackageRegistryDef);
- return cdoSessionDef;
- }
-
- public static CDOPackageRegistryDef createEagerPackageRegistryDef()
- {
- CDOPackageRegistryDef ePackageRegistryDef = CDODefsFactory.eINSTANCE.createCDOEagerPackageRegistryDef();
- return ePackageRegistryDef;
- }
-
- public static CDOPackageRegistryDef createLazyPackageRegistryDef()
- {
- CDOPackageRegistryDef ePackageRegistryDef = CDODefsFactory.eINSTANCE.createCDOLazyPackageRegistryDef();
- return ePackageRegistryDef;
- }
-
- public static CDOAuditDef createCDOAuditDef(CDOSessionDef cdoSessionDef)
- {
- CDOAuditDef cdoAuditDef = CDODefsFactory.eINSTANCE.createCDOAuditDef();
- cdoAuditDef.setCdoSessionDef(cdoSessionDef);
- cdoAuditDef.setTimeStamp(new Date());
- return cdoAuditDef;
- }
-
- public static CDOTransactionDef createCDOTransactionDef(String host, String repositoryName,
- TCPConnectorDef tcpConnectorDef)
- {
- CDOSessionDef sessionDef = createSessionDef(repositoryName, //
- createEagerPackageRegistryDef(), //
- tcpConnectorDef);
-
- return createCDOTransactionDef(sessionDef);
- }
-
- public static CDOTransactionDef createCDOTransactionDef(CDOSessionDef cdoSessionDef)
- {
-
- CDOTransactionDef cdoTransactionDef = CDODefsFactory.eINSTANCE.createCDOTransactionDef();
- cdoTransactionDef.setCdoSessionDef(cdoSessionDef);
- return cdoTransactionDef;
- }
-
- public static CDOResourceDef createCDOResourceDef(CDOTransactionDef cdoTransactionDef)
- {
-
- CDOResourceDef cdoResourceDef = CDODefsFactory.eINSTANCE.createCDOResourceDef();
- cdoResourceDef.setCdoTransaction(cdoTransactionDef);
- return cdoResourceDef;
- }
-
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Andre Dietisheim - initial API and implementation
+ * Eike Stepper - maintenance
+ */
+package org.eclipse.emf.cdo.defs.util;
+
+import org.eclipse.emf.cdo.defs.CDOAuditDef;
+import org.eclipse.emf.cdo.defs.CDODefsFactory;
+import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef;
+import org.eclipse.emf.cdo.defs.CDOResourceDef;
+import org.eclipse.emf.cdo.defs.CDOSessionDef;
+import org.eclipse.emf.cdo.defs.CDOTransactionDef;
+
+import org.eclipse.net4j.defs.TCPConnectorDef;
+
+import java.util.Date;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class CDODefsUtil
+{
+ public static CDOSessionDef createSessionDef(String repositoryName, CDOPackageRegistryDef ePackageRegistryDef,
+ TCPConnectorDef tcpConnectorDef)
+ {
+ CDOSessionDef cdoSessionDef = CDODefsFactory.eINSTANCE.createCDOSessionDef();
+ cdoSessionDef.setConnectorDef(tcpConnectorDef);
+ cdoSessionDef.setRepositoryName(repositoryName);
+ cdoSessionDef.setCdoPackageRegistryDef(ePackageRegistryDef);
+ return cdoSessionDef;
+ }
+
+ /**
+ * @since 4.0
+ */
+ public static CDOSessionDef createSessionDef(String repositoryName, CDOPackageRegistryDef ePackageRegistryDef)
+ {
+ CDOSessionDef cdoSessionDef = CDODefsFactory.eINSTANCE.createCDOSessionDef();
+ cdoSessionDef.setRepositoryName(repositoryName);
+ cdoSessionDef.setCdoPackageRegistryDef(ePackageRegistryDef);
+ return cdoSessionDef;
+ }
+
+ public static CDOPackageRegistryDef createEagerPackageRegistryDef()
+ {
+ CDOPackageRegistryDef ePackageRegistryDef = CDODefsFactory.eINSTANCE.createCDOEagerPackageRegistryDef();
+ return ePackageRegistryDef;
+ }
+
+ public static CDOPackageRegistryDef createLazyPackageRegistryDef()
+ {
+ CDOPackageRegistryDef ePackageRegistryDef = CDODefsFactory.eINSTANCE.createCDOLazyPackageRegistryDef();
+ return ePackageRegistryDef;
+ }
+
+ public static CDOAuditDef createCDOAuditDef(CDOSessionDef cdoSessionDef)
+ {
+ CDOAuditDef cdoAuditDef = CDODefsFactory.eINSTANCE.createCDOAuditDef();
+ cdoAuditDef.setCdoSessionDef(cdoSessionDef);
+ cdoAuditDef.setTimeStamp(new Date());
+ return cdoAuditDef;
+ }
+
+ public static CDOTransactionDef createCDOTransactionDef(String host, String repositoryName,
+ TCPConnectorDef tcpConnectorDef)
+ {
+ CDOSessionDef sessionDef = createSessionDef(repositoryName, //
+ createEagerPackageRegistryDef(), //
+ tcpConnectorDef);
+
+ return createCDOTransactionDef(sessionDef);
+ }
+
+ public static CDOTransactionDef createCDOTransactionDef(CDOSessionDef cdoSessionDef)
+ {
+
+ CDOTransactionDef cdoTransactionDef = CDODefsFactory.eINSTANCE.createCDOTransactionDef();
+ cdoTransactionDef.setCdoSessionDef(cdoSessionDef);
+ return cdoTransactionDef;
+ }
+
+ public static CDOResourceDef createCDOResourceDef(CDOTransactionDef cdoTransactionDef)
+ {
+
+ CDOResourceDef cdoResourceDef = CDODefsFactory.eINSTANCE.createCDOResourceDef();
+ cdoResourceDef.setCdoTransaction(cdoTransactionDef);
+ return cdoResourceDef;
+ }
+
+}
--
cgit v1.2.3