Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.defs')
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.core.resources.prefs2
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.ui.prefs240
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/about.properties62
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/build.properties54
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/copyright.txt14
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel2
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/plugin.properties22
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/plugin.xml46
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOAuditDef.java114
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolFactoryDef.java54
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOClientProtocolProviderDef.java52
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsFactory.java260
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDODefsPackage.java1846
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOEagerPackageRegistryDef.java50
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOLazyPackageRegistryDef.java50
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOPackageRegistryDef.java102
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOResourceDef.java228
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOSessionDef.java324
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOTransactionDef.java50
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOViewDef.java114
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EDynamicPackageDef.java112
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EGlobalPackageDef.java50
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/EPackageDef.java116
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/ResourceMode.java538
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOAuditDefImpl.java386
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOClientProtocolFactoryDefImpl.java114
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsFactoryImpl.java592
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDODefsPackageImpl.java1216
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOEagerPackageRegistryDefImpl.java122
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOLazyPackageRegistryDefImpl.java120
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOPackageRegistryDefImpl.java508
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java658
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java910
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOTransactionDefImpl.java114
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOViewDefImpl.java390
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EDynamicPackageDefImpl.java390
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EGlobalPackageDefImpl.java114
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EPackageDefImpl.java378
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsAdapterFactory.java844
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsSwitch.java1128
-rw-r--r--plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsUtil.java194
41 files changed, 6340 insertions, 6340 deletions
diff --git a/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.core.resources.prefs
index 2e9d484e4d..57b3a994b7 100644
--- a/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.core.resources.prefs
+++ b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.core.resources.prefs
@@ -1,3 +1,3 @@
-#Tue Dec 13 11:34:08 GMT 2011
eclipse.preferences.version=1
encoding//model/org.eclipse.emf.cdo.defs.ecorediag=UTF-8
+encoding//model/org.eclipse.emf.cdo.defs.genmodel=UTF-8
diff --git a/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.ui.prefs
index aaef0ccba1..6726e7034a 100644
--- a/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.ui.prefs
+++ b/plugins/org.eclipse.emf.cdo.defs/.settings/org.eclipse.jdt.ui.prefs
@@ -1,120 +1,120 @@
-#Thu Feb 04 09:44:24 CET 2010
-cleanup.add_default_serial_version_id=true
-cleanup.add_generated_serial_version_id=false
-cleanup.add_missing_annotations=true
-cleanup.add_missing_deprecated_annotations=true
-cleanup.add_missing_methods=false
-cleanup.add_missing_nls_tags=false
-cleanup.add_missing_override_annotations=true
-cleanup.add_missing_override_annotations_interface_methods=true
-cleanup.add_serial_version_id=true
-cleanup.always_use_blocks=true
-cleanup.always_use_parentheses_in_expressions=false
-cleanup.always_use_this_for_non_static_field_access=false
-cleanup.always_use_this_for_non_static_method_access=false
-cleanup.convert_to_enhanced_for_loop=false
-cleanup.correct_indentation=true
-cleanup.format_source_code=true
-cleanup.format_source_code_changes_only=false
-cleanup.make_local_variable_final=true
-cleanup.make_parameters_final=false
-cleanup.make_private_fields_final=true
-cleanup.make_type_abstract_if_missing_method=false
-cleanup.make_variable_declarations_final=false
-cleanup.never_use_blocks=false
-cleanup.never_use_parentheses_in_expressions=true
-cleanup.organize_imports=true
-cleanup.qualify_static_field_accesses_with_declaring_class=false
-cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
-cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
-cleanup.qualify_static_member_accesses_with_declaring_class=false
-cleanup.qualify_static_method_accesses_with_declaring_class=false
-cleanup.remove_private_constructors=true
-cleanup.remove_trailing_whitespaces=true
-cleanup.remove_trailing_whitespaces_all=true
-cleanup.remove_trailing_whitespaces_ignore_empty=false
-cleanup.remove_unnecessary_casts=true
-cleanup.remove_unnecessary_nls_tags=true
-cleanup.remove_unused_imports=true
-cleanup.remove_unused_local_variables=false
-cleanup.remove_unused_private_fields=true
-cleanup.remove_unused_private_members=false
-cleanup.remove_unused_private_methods=true
-cleanup.remove_unused_private_types=true
-cleanup.sort_members=false
-cleanup.sort_members_all=false
-cleanup.use_blocks=true
-cleanup.use_blocks_only_for_return_and_throw=false
-cleanup.use_parentheses_in_expressions=true
-cleanup.use_this_for_non_static_field_access=true
-cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-cleanup.use_this_for_non_static_method_access=true
-cleanup.use_this_for_non_static_method_access_only_if_necessary=true
-cleanup_profile=_EMFT
-cleanup_settings_version=2
-eclipse.preferences.version=1
-editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
-formatter_profile=_EMFT
-formatter_settings_version=11
-org.eclipse.jdt.ui.exception.name=ex
-org.eclipse.jdt.ui.gettersetter.use.is=true
-org.eclipse.jdt.ui.ignorelowercasenames=true
-org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java;
-org.eclipse.jdt.ui.javadoc=true
-org.eclipse.jdt.ui.keywordthis=false
-org.eclipse.jdt.ui.ondemandthreshold=99
-org.eclipse.jdt.ui.overrideannotation=true
-org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\r\n * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
-sp_cleanup.add_default_serial_version_id=true
-sp_cleanup.add_generated_serial_version_id=false
-sp_cleanup.add_missing_annotations=true
-sp_cleanup.add_missing_deprecated_annotations=true
-sp_cleanup.add_missing_methods=false
-sp_cleanup.add_missing_nls_tags=false
-sp_cleanup.add_missing_override_annotations=true
-sp_cleanup.add_missing_override_annotations_interface_methods=false
-sp_cleanup.add_serial_version_id=false
-sp_cleanup.always_use_blocks=true
-sp_cleanup.always_use_parentheses_in_expressions=false
-sp_cleanup.always_use_this_for_non_static_field_access=false
-sp_cleanup.always_use_this_for_non_static_method_access=false
-sp_cleanup.convert_to_enhanced_for_loop=false
-sp_cleanup.correct_indentation=true
-sp_cleanup.format_source_code=true
-sp_cleanup.format_source_code_changes_only=false
-sp_cleanup.make_local_variable_final=false
-sp_cleanup.make_parameters_final=false
-sp_cleanup.make_private_fields_final=true
-sp_cleanup.make_type_abstract_if_missing_method=false
-sp_cleanup.make_variable_declarations_final=false
-sp_cleanup.never_use_blocks=false
-sp_cleanup.never_use_parentheses_in_expressions=true
-sp_cleanup.on_save_use_additional_actions=true
-sp_cleanup.organize_imports=true
-sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
-sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
-sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
-sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
-sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
-sp_cleanup.remove_private_constructors=true
-sp_cleanup.remove_trailing_whitespaces=true
-sp_cleanup.remove_trailing_whitespaces_all=true
-sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
-sp_cleanup.remove_unnecessary_casts=true
-sp_cleanup.remove_unnecessary_nls_tags=true
-sp_cleanup.remove_unused_imports=true
-sp_cleanup.remove_unused_local_variables=false
-sp_cleanup.remove_unused_private_fields=true
-sp_cleanup.remove_unused_private_members=false
-sp_cleanup.remove_unused_private_methods=true
-sp_cleanup.remove_unused_private_types=true
-sp_cleanup.sort_members=false
-sp_cleanup.sort_members_all=false
-sp_cleanup.use_blocks=true
-sp_cleanup.use_blocks_only_for_return_and_throw=false
-sp_cleanup.use_parentheses_in_expressions=true
-sp_cleanup.use_this_for_non_static_field_access=true
-sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-sp_cleanup.use_this_for_non_static_method_access=true
-sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+#Thu Feb 04 09:44:24 CET 2010
+cleanup.add_default_serial_version_id=true
+cleanup.add_generated_serial_version_id=false
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=false
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=true
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=false
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_to_enhanced_for_loop=false
+cleanup.correct_indentation=true
+cleanup.format_source_code=true
+cleanup.format_source_code_changes_only=false
+cleanup.make_local_variable_final=true
+cleanup.make_parameters_final=false
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=false
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=true
+cleanup.organize_imports=true
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=false
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_trailing_whitespaces=true
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=false
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=false
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=false
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=false
+cleanup.sort_members_all=false
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_parentheses_in_expressions=true
+cleanup.use_this_for_non_static_field_access=true
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=true
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup_profile=_EMFT
+cleanup_settings_version=2
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_EMFT
+formatter_settings_version=11
+org.eclipse.jdt.ui.exception.name=ex
+org.eclipse.jdt.ui.gettersetter.use.is=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=org.eclipse.emf.cdo;org.eclipse.emf.internal.cdo;org.eclipse.net4j;org.eclipse.internal.net4j;org.eclipse.emf;org.eclipse;com;org;javax;java;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.keywordthis=false
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.overrideannotation=true
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="false" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment"/><template autoinsert\="false" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment"/><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment"/><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\r\n * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * Eike Stepper - initial API and implementation\r\n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author Eike Stepper\r\n */</template><template autoinsert\="false" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment"/><template autoinsert\="false" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment"/><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment"/><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment"/><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">${exception_var}.printStackTrace();</template><template autoinsert\="false" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">${body_statement}</template><template autoinsert\="false" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=false
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=true
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=false
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=true
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=true
+sp_cleanup.use_this_for_non_static_field_access=true
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=true
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/plugins/org.eclipse.emf.cdo.defs/about.properties b/plugins/org.eclipse.emf.cdo.defs/about.properties
index 5a4d6e7f59..c9db25df14 100644
--- a/plugins/org.eclipse.emf.cdo.defs/about.properties
+++ b/plugins/org.eclipse.emf.cdo.defs/about.properties
@@ -1,31 +1,31 @@
-# 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:
-# Eike Stepper - initial API and implementation
-
-# NLS_MESSAGEFORMAT_VAR
-
-# ==============================================================================
-# Do not change the properties between this line and the last line containing:
-# %%% END OF TRANSLATED PROPERTIES %%%
-# Instead, either redefine an existing property, or create a new property,
-# append it to the end of the file, and change the code to use the new name.
-# ==============================================================================
-
-featureName = CDO Model Repository Definitions
-featureText = CDO Model Repository Definitions\n\
-Version: {featureVersion}\n\
-Build id: {0}\n\
-\n\
-Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others. All rights reserved.\n\
-\n\
-Visit http://www.eclipse.org/cdo
-
-# ==============================================================================
-# %%% END OF TRANSLATED PROPERTIES %%%
-# The above properties have been shipped for translation.
-# ==============================================================================
+# 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:
+# Eike Stepper - initial API and implementation
+
+# NLS_MESSAGEFORMAT_VAR
+
+# ==============================================================================
+# Do not change the properties between this line and the last line containing:
+# %%% END OF TRANSLATED PROPERTIES %%%
+# Instead, either redefine an existing property, or create a new property,
+# append it to the end of the file, and change the code to use the new name.
+# ==============================================================================
+
+featureName = CDO Model Repository Definitions
+featureText = CDO Model Repository Definitions\n\
+Version: {featureVersion}\n\
+Build id: {0}\n\
+\n\
+Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. All rights reserved.\n\
+\n\
+Visit http://www.eclipse.org/cdo
+
+# ==============================================================================
+# %%% END OF TRANSLATED PROPERTIES %%%
+# The above properties have been shipped for translation.
+# ==============================================================================
diff --git a/plugins/org.eclipse.emf.cdo.defs/build.properties b/plugins/org.eclipse.emf.cdo.defs/build.properties
index 4397b5140c..da9c9023ad 100644
--- a/plugins/org.eclipse.emf.cdo.defs/build.properties
+++ b/plugins/org.eclipse.emf.cdo.defs/build.properties
@@ -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:
-# Eike Stepper - initial API and implementation
-
-# NLS_MESSAGEFORMAT_VAR
-
-bin.includes = .,\
- META-INF/,\
- plugin.properties,\
- about.html,\
- copyright.txt,\
- plugin.xml,\
- model/,\
- about.ini,\
- about.mappings,\
- about.properties,\
- modeling32.png
-jars.compile.order = .
-source.. = src/
-output.. = bin/
-src.includes = about.html,\
- copyright.txt
+# 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:
+# Eike Stepper - initial API and implementation
+
+# NLS_MESSAGEFORMAT_VAR
+
+bin.includes = .,\
+ META-INF/,\
+ plugin.properties,\
+ about.html,\
+ copyright.txt,\
+ plugin.xml,\
+ model/,\
+ about.ini,\
+ about.mappings,\
+ about.properties,\
+ modeling32.png
+jars.compile.order = .
+source.. = src/
+output.. = bin/
+src.includes = about.html,\
+ copyright.txt
diff --git a/plugins/org.eclipse.emf.cdo.defs/copyright.txt b/plugins/org.eclipse.emf.cdo.defs/copyright.txt
index e921242cf0..8f6328980e 100644
--- a/plugins/org.eclipse.emf.cdo.defs/copyright.txt
+++ b/plugins/org.eclipse.emf.cdo.defs/copyright.txt
@@ -1,8 +1,8 @@
-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:
+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:
Eike Stepper - initial API and implementation \ No newline at end of file
diff --git a/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel b/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel
index 395edbf5c3..9b30c39963 100644
--- a/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel
+++ b/plugins/org.eclipse.emf.cdo.defs/model/org.eclipse.emf.cdo.defs.genmodel
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText=" * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.&#xA; * All rights reserved. This program and the accompanying materials&#xA; * are made available under the terms of the Eclipse Public License v1.0&#xA; * which accompanies this distribution, and is available at&#xA; * http://www.eclipse.org/legal/epl-v10.html&#xA; * &#xA; * Contributors:&#xA; * Andre Dietisheim - initial API and implementation"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel"
modelDirectory="/org.eclipse.emf.cdo.defs/src" editDirectory="" editorDirectory=""
modelPluginID="org.eclipse.emf.cdo.defs" modelName="Org.eclipse.emf.cdo" codeFormatting="true"
testsDirectory="" importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0"
diff --git a/plugins/org.eclipse.emf.cdo.defs/plugin.properties b/plugins/org.eclipse.emf.cdo.defs/plugin.properties
index 687b7d78c6..a8eaa8390f 100644
--- a/plugins/org.eclipse.emf.cdo.defs/plugin.properties
+++ b/plugins/org.eclipse.emf.cdo.defs/plugin.properties
@@ -1,11 +1,11 @@
-# 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
-
-pluginName = CDO Model Repository Definitions
-providerName = Eclipse Modeling Project
+# 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
+
+pluginName = CDO Model Repository Definitions
+providerName = Eclipse Modeling Project
diff --git a/plugins/org.eclipse.emf.cdo.defs/plugin.xml b/plugins/org.eclipse.emf.cdo.defs/plugin.xml
index 89146c0589..f888f403ec 100644
--- a/plugins/org.eclipse.emf.cdo.defs/plugin.xml
+++ b/plugins/org.eclipse.emf.cdo.defs/plugin.xml
@@ -1,23 +1,23 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<!--
- 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:
- Eike Stepper - initial API and implementation
--->
-
-<plugin>
-
- <extension point="org.eclipse.emf.ecore.generated_package">
- <package
- uri="http://www.eclipse.org/emf/CDO/defs/1.0.0"
- class="org.eclipse.emf.cdo.defs.CDODefsPackage"
- genModel="model/org.eclipse.net4j.defs.genmodel"/>
- </extension>
-
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<!--
+ 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:
+ Eike Stepper - initial API and implementation
+-->
+
+<plugin>
+
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <package
+ uri="http://www.eclipse.org/emf/CDO/defs/1.0.0"
+ class="org.eclipse.emf.cdo.defs.CDODefsPackage"
+ genModel="model/org.eclipse.net4j.defs.genmodel"/>
+ </extension>
+
+</plugin>
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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Audit Def</b></em>'. <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOAuditDef#getTimeStamp <em>Time Stamp</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOAuditDef()
- * @model
- * @generated
- */
-public interface CDOAuditDef extends CDOViewDef
-{
- /**
- * Returns the value of the '<em><b>Time Stamp</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Time Stamp</em>' attribute isn't clear, there really should be more of a description
- * here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Time Stamp</em>' 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 <em>Time Stamp</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Time Stamp</em>' 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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Audit Def</b></em>'. <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOAuditDef#getTimeStamp <em>Time Stamp</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOAuditDef()
+ * @model
+ * @generated
+ */
+public interface CDOAuditDef extends CDOViewDef
+{
+ /**
+ * Returns the value of the '<em><b>Time Stamp</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Time Stamp</em>' attribute isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Time Stamp</em>' 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 <em>Time Stamp</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Time Stamp</em>' 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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Client Protocol Factory Def</b></em>'. <!--
- * end-user-doc -->
- *
- *
- * @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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Client Protocol Factory Def</b></em>'. <!--
+ * end-user-doc -->
+ *
+ *
+ * @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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Client Protocol Provider Def</b></em>'. <!--
- * end-user-doc -->
- *
- * @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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Client Protocol Provider Def</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * @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;
-
-/**
- * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
- * the model. <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage
- * @generated
- */
-public interface CDODefsFactory extends EFactory
-{
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- CDODefsFactory eINSTANCE = org.eclipse.emf.cdo.defs.impl.CDODefsFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>CDO View Def</em>'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return a new object of class '<em>CDO View Def</em>'.
- * @generated
- */
- CDOViewDef createCDOViewDef();
-
- /**
- * Returns a new object of class '<em>CDO Transaction Def</em>'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return a new object of class '<em>CDO Transaction Def</em>'.
- * @generated
- */
- CDOTransactionDef createCDOTransactionDef();
-
- /**
- * Returns a new object of class '<em>CDO Audit Def</em>'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return a new object of class '<em>CDO Audit Def</em>'.
- * @generated
- */
- CDOAuditDef createCDOAuditDef();
-
- /**
- * Returns a new object of class '<em>CDO Session Def</em>'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return a new object of class '<em>CDO Session Def</em>'.
- * @generated
- */
- CDOSessionDef createCDOSessionDef();
-
- /**
- * Returns a new object of class '<em>CDO Package Registry Def</em>'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return a new object of class '<em>CDO Package Registry Def</em>'.
- * @generated
- */
- CDOPackageRegistryDef createCDOPackageRegistryDef();
-
- /**
- * Returns a new object of class '<em>CDO Eager Package Registry Def</em>'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return a new object of class '<em>CDO Eager Package Registry Def</em>'.
- * @generated
- */
- CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef();
-
- /**
- * Returns a new object of class '<em>CDO Lazy Package Registry Def</em>'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return a new object of class '<em>CDO Lazy Package Registry Def</em>'.
- * @generated
- */
- CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef();
-
- /**
- * Returns a new object of class '<em>EDynamic Package Def</em>'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return a new object of class '<em>EDynamic Package Def</em>'.
- * @generated
- */
- EDynamicPackageDef createEDynamicPackageDef();
-
- /**
- * Returns a new object of class '<em>EGlobal Package Def</em>'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return a new object of class '<em>EGlobal Package Def</em>'.
- * @generated
- */
- EGlobalPackageDef createEGlobalPackageDef();
-
- /**
- * Returns a new object of class '<em>CDO Client Protocol Factory Def</em>'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return a new object of class '<em>CDO Client Protocol Factory Def</em>'.
- * @generated
- */
- CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef();
-
- /**
- * Returns a new object of class '<em>CDO Resource Def</em>'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return a new object of class '<em>CDO Resource Def</em>'.
- * @generated
- */
- CDOResourceDef createCDOResourceDef();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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;
+
+/**
+ * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
+ * the model. <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage
+ * @generated
+ */
+public interface CDODefsFactory extends EFactory
+{
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ CDODefsFactory eINSTANCE = org.eclipse.emf.cdo.defs.impl.CDODefsFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>CDO View Def</em>'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return a new object of class '<em>CDO View Def</em>'.
+ * @generated
+ */
+ CDOViewDef createCDOViewDef();
+
+ /**
+ * Returns a new object of class '<em>CDO Transaction Def</em>'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return a new object of class '<em>CDO Transaction Def</em>'.
+ * @generated
+ */
+ CDOTransactionDef createCDOTransactionDef();
+
+ /**
+ * Returns a new object of class '<em>CDO Audit Def</em>'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return a new object of class '<em>CDO Audit Def</em>'.
+ * @generated
+ */
+ CDOAuditDef createCDOAuditDef();
+
+ /**
+ * Returns a new object of class '<em>CDO Session Def</em>'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return a new object of class '<em>CDO Session Def</em>'.
+ * @generated
+ */
+ CDOSessionDef createCDOSessionDef();
+
+ /**
+ * Returns a new object of class '<em>CDO Package Registry Def</em>'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return a new object of class '<em>CDO Package Registry Def</em>'.
+ * @generated
+ */
+ CDOPackageRegistryDef createCDOPackageRegistryDef();
+
+ /**
+ * Returns a new object of class '<em>CDO Eager Package Registry Def</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>CDO Eager Package Registry Def</em>'.
+ * @generated
+ */
+ CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef();
+
+ /**
+ * Returns a new object of class '<em>CDO Lazy Package Registry Def</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>CDO Lazy Package Registry Def</em>'.
+ * @generated
+ */
+ CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef();
+
+ /**
+ * Returns a new object of class '<em>EDynamic Package Def</em>'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return a new object of class '<em>EDynamic Package Def</em>'.
+ * @generated
+ */
+ EDynamicPackageDef createEDynamicPackageDef();
+
+ /**
+ * Returns a new object of class '<em>EGlobal Package Def</em>'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return a new object of class '<em>EGlobal Package Def</em>'.
+ * @generated
+ */
+ EGlobalPackageDef createEGlobalPackageDef();
+
+ /**
+ * Returns a new object of class '<em>CDO Client Protocol Factory Def</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>CDO Client Protocol Factory Def</em>'.
+ * @generated
+ */
+ CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef();
+
+ /**
+ * Returns a new object of class '<em>CDO Resource Def</em>'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return a new object of class '<em>CDO Resource Def</em>'.
+ * @generated
+ */
+ CDOResourceDef createCDOResourceDef();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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;
-
-/**
- * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.CDODefsFactory
- * @model kind="package"
- * @generated
- */
-public interface CDODefsPackage extends EPackage
-{
- /**
- * The package name.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "defs";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/CDO/defs/1.0.0";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "cdo.defs";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- CDODefsPackage eINSTANCE = org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl <em>CDO View Def</em>}' class. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOViewDef()
- * @generated
- */
- int CDO_VIEW_DEF = 0;
-
- /**
- * The feature id for the '<em><b>Cdo Session Def</b></em>' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_VIEW_DEF__CDO_SESSION_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>CDO View Def</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- * @ordered
- */
- int CDO_VIEW_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOTransactionDefImpl <em>CDO Transaction Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOTransactionDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOTransactionDef()
- * @generated
- */
- int CDO_TRANSACTION_DEF = 1;
-
- /**
- * The feature id for the '<em><b>Cdo Session Def</b></em>' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_TRANSACTION_DEF__CDO_SESSION_DEF = CDO_VIEW_DEF__CDO_SESSION_DEF;
-
- /**
- * The number of structural features of the '<em>CDO Transaction Def</em>' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_TRANSACTION_DEF_FEATURE_COUNT = CDO_VIEW_DEF_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl <em>CDO Audit Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOAuditDef()
- * @generated
- */
- int CDO_AUDIT_DEF = 2;
-
- /**
- * The feature id for the '<em><b>Cdo Session Def</b></em>' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_AUDIT_DEF__CDO_SESSION_DEF = CDO_VIEW_DEF__CDO_SESSION_DEF;
-
- /**
- * The feature id for the '<em><b>Time Stamp</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_AUDIT_DEF__TIME_STAMP = CDO_VIEW_DEF_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>CDO Audit Def</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- * @ordered
- */
- int CDO_AUDIT_DEF_FEATURE_COUNT = CDO_VIEW_DEF_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl <em>CDO Session Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOSessionDef()
- * @generated
- */
- int CDO_SESSION_DEF = 3;
-
- /**
- * The feature id for the '<em><b>Connector Def</b></em>' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_SESSION_DEF__CONNECTOR_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Repository Name</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_SESSION_DEF__REPOSITORY_NAME = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Cdo Package Registry Def</b></em>' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Legacy Support Enabled</b></em>' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 3;
-
- /**
- * The number of structural features of the '<em>CDO Session Def</em>' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_SESSION_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl <em>CDO Package Registry Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOPackageRegistryDef()
- * @generated
- */
- int CDO_PACKAGE_REGISTRY_DEF = 4;
-
- /**
- * The feature id for the '<em><b>Packages</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_PACKAGE_REGISTRY_DEF__PACKAGES = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>CDO Package Registry Def</em>' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOEagerPackageRegistryDefImpl <em>CDO Eager Package Registry Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOEagerPackageRegistryDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOEagerPackageRegistryDef()
- * @generated
- */
- int CDO_EAGER_PACKAGE_REGISTRY_DEF = 5;
-
- /**
- * The feature id for the '<em><b>Packages</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_EAGER_PACKAGE_REGISTRY_DEF__PACKAGES = CDO_PACKAGE_REGISTRY_DEF__PACKAGES;
-
- /**
- * The number of structural features of the '<em>CDO Eager Package Registry Def</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_EAGER_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOLazyPackageRegistryDefImpl <em>CDO Lazy Package Registry Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOLazyPackageRegistryDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOLazyPackageRegistryDef()
- * @generated
- */
- int CDO_LAZY_PACKAGE_REGISTRY_DEF = 6;
-
- /**
- * The feature id for the '<em><b>Packages</b></em>' containment reference list.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_LAZY_PACKAGE_REGISTRY_DEF__PACKAGES = CDO_PACKAGE_REGISTRY_DEF__PACKAGES;
-
- /**
- * The number of structural features of the '<em>CDO Lazy Package Registry Def</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_LAZY_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.EPackageDefImpl <em>EPackage Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.EPackageDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEPackageDef()
- * @generated
- */
- int EPACKAGE_DEF = 7;
-
- /**
- * The feature id for the '<em><b>Ns URI</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EPACKAGE_DEF__NS_URI = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>EPackage Def</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @generated
- * @ordered
- */
- int EPACKAGE_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl <em>EDynamic Package Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEDynamicPackageDef()
- * @generated
- */
- int EDYNAMIC_PACKAGE_DEF = 8;
-
- /**
- * The feature id for the '<em><b>Ns URI</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDYNAMIC_PACKAGE_DEF__NS_URI = EPACKAGE_DEF__NS_URI;
-
- /**
- * The feature id for the '<em><b>Resource URI</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDYNAMIC_PACKAGE_DEF__RESOURCE_URI = EPACKAGE_DEF_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>EDynamic Package Def</em>' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int EDYNAMIC_PACKAGE_DEF_FEATURE_COUNT = EPACKAGE_DEF_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.EGlobalPackageDefImpl <em>EGlobal Package Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.EGlobalPackageDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEGlobalPackageDef()
- * @generated
- */
- int EGLOBAL_PACKAGE_DEF = 9;
-
- /**
- * The feature id for the '<em><b>Ns URI</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EGLOBAL_PACKAGE_DEF__NS_URI = EPACKAGE_DEF__NS_URI;
-
- /**
- * The number of structural features of the '<em>EGlobal Package Def</em>' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int EGLOBAL_PACKAGE_DEF_FEATURE_COUNT = EPACKAGE_DEF_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOClientProtocolFactoryDefImpl <em>CDO Client Protocol Factory Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOClientProtocolFactoryDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOClientProtocolFactoryDef()
- * @generated
- */
- int CDO_CLIENT_PROTOCOL_FACTORY_DEF = 10;
-
- /**
- * The number of structural features of the '<em>CDO Client Protocol Factory Def</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_CLIENT_PROTOCOL_FACTORY_DEF_FEATURE_COUNT = Net4jDefsPackage.CLIENT_PROTOCOL_FACTORY_DEF_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl <em>CDO Resource Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOResourceDef()
- * @generated
- */
- int CDO_RESOURCE_DEF = 11;
-
- /**
- * The feature id for the '<em><b>Cdo Transaction</b></em>' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_RESOURCE_DEF__CDO_TRANSACTION = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Resource Mode</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_RESOURCE_DEF__RESOURCE_MODE = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Path</b></em>' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_RESOURCE_DEF__PATH = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>CDO Resource Def</em>' class.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- * @ordered
- */
- int CDO_RESOURCE_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.defs.ResourceMode <em>Resource Mode</em>}' enum. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.cdo.defs.ResourceMode
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getResourceMode()
- * @generated
- */
- int RESOURCE_MODE = 12;
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOViewDef <em>CDO View Def</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>CDO View Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOViewDef
- * @generated
- */
- EClass getCDOViewDef();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.defs.CDOViewDef#getCdoSessionDef <em>Cdo Session Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Cdo Session Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOViewDef#getCdoSessionDef()
- * @see #getCDOViewDef()
- * @generated
- */
- EReference getCDOViewDef_CdoSessionDef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOTransactionDef <em>CDO Transaction Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>CDO Transaction Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOTransactionDef
- * @generated
- */
- EClass getCDOTransactionDef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOAuditDef <em>CDO Audit Def</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>CDO Audit Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOAuditDef
- * @generated
- */
- EClass getCDOAuditDef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOAuditDef#getTimeStamp <em>Time Stamp</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Time Stamp</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOAuditDef#getTimeStamp()
- * @see #getCDOAuditDef()
- * @generated
- */
- EAttribute getCDOAuditDef_TimeStamp();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOSessionDef <em>CDO Session Def</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>CDO Session Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOSessionDef
- * @generated
- */
- EClass getCDOSessionDef();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Connector Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef()
- * @see #getCDOSessionDef()
- * @generated
- */
- EReference getCDOSessionDef_ConnectorDef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getRepositoryName <em>Repository Name</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Repository Name</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOSessionDef#getRepositoryName()
- * @see #getCDOSessionDef()
- * @generated
- */
- EAttribute getCDOSessionDef_RepositoryName();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getCdoPackageRegistryDef <em>Cdo Package Registry Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Cdo Package Registry Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOSessionDef#getCdoPackageRegistryDef()
- * @see #getCDOSessionDef()
- * @generated
- */
- EReference getCDOSessionDef_CdoPackageRegistryDef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#isLegacySupportEnabled <em>Legacy Support Enabled</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Legacy Support Enabled</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOSessionDef#isLegacySupportEnabled()
- * @see #getCDOSessionDef()
- * @generated
- */
- EAttribute getCDOSessionDef_LegacySupportEnabled();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOPackageRegistryDef <em>CDO Package Registry Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>CDO Package Registry Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOPackageRegistryDef
- * @generated
- */
- EClass getCDOPackageRegistryDef();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.defs.CDOPackageRegistryDef#getPackages <em>Packages</em>}'.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @return the meta object for the containment reference list '<em>Packages</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOPackageRegistryDef#getPackages()
- * @see #getCDOPackageRegistryDef()
- * @generated
- */
- EReference getCDOPackageRegistryDef_Packages();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef <em>CDO Eager Package Registry Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>CDO Eager Package Registry Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef
- * @generated
- */
- EClass getCDOEagerPackageRegistryDef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef <em>CDO Lazy Package Registry Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>CDO Lazy Package Registry Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef
- * @generated
- */
- EClass getCDOLazyPackageRegistryDef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.EPackageDef <em>EPackage Def</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>EPackage Def</em>'.
- * @see org.eclipse.emf.cdo.defs.EPackageDef
- * @generated
- */
- EClass getEPackageDef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.EPackageDef#getNsURI <em>Ns URI</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Ns URI</em>'.
- * @see org.eclipse.emf.cdo.defs.EPackageDef#getNsURI()
- * @see #getEPackageDef()
- * @generated
- */
- EAttribute getEPackageDef_NsURI();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef <em>EDynamic Package Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>EDynamic Package Def</em>'.
- * @see org.eclipse.emf.cdo.defs.EDynamicPackageDef
- * @generated
- */
- EClass getEDynamicPackageDef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef#getResourceURI <em>Resource URI</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Resource URI</em>'.
- * @see org.eclipse.emf.cdo.defs.EDynamicPackageDef#getResourceURI()
- * @see #getEDynamicPackageDef()
- * @generated
- */
- EAttribute getEDynamicPackageDef_ResourceURI();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.EGlobalPackageDef <em>EGlobal Package Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>EGlobal Package Def</em>'.
- * @see org.eclipse.emf.cdo.defs.EGlobalPackageDef
- * @generated
- */
- EClass getEGlobalPackageDef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef <em>CDO Client Protocol Factory Def</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for class '<em>CDO Client Protocol Factory Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef
- * @generated
- */
- EClass getCDOClientProtocolFactoryDef();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOResourceDef <em>CDO Resource Def</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>CDO Resource Def</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOResourceDef
- * @generated
- */
- EClass getCDOResourceDef();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getCdoTransaction <em>Cdo Transaction</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Cdo Transaction</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOResourceDef#getCdoTransaction()
- * @see #getCDOResourceDef()
- * @generated
- */
- EReference getCDOResourceDef_CdoTransaction();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getResourceMode <em>Resource Mode</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Resource Mode</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOResourceDef#getResourceMode()
- * @see #getCDOResourceDef()
- * @generated
- */
- EAttribute getCDOResourceDef_ResourceMode();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getPath <em>Path</em>}'.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Path</em>'.
- * @see org.eclipse.emf.cdo.defs.CDOResourceDef#getPath()
- * @see #getCDOResourceDef()
- * @generated
- */
- EAttribute getCDOResourceDef_Path();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.emf.cdo.defs.ResourceMode <em>Resource Mode</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Resource Mode</em>'.
- * @see org.eclipse.emf.cdo.defs.ResourceMode
- * @generated
- */
- EEnum getResourceMode();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- CDODefsFactory getCDODefsFactory();
-
- /**
- * <!-- begin-user-doc --> Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals
- {
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl <em>CDO View Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOViewDef()
- * @generated
- */
- EClass CDO_VIEW_DEF = eINSTANCE.getCDOViewDef();
-
- /**
- * The meta object literal for the '<em><b>Cdo Session Def</b></em>' reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference CDO_VIEW_DEF__CDO_SESSION_DEF = eINSTANCE.getCDOViewDef_CdoSessionDef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOTransactionDefImpl <em>CDO Transaction Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOTransactionDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOTransactionDef()
- * @generated
- */
- EClass CDO_TRANSACTION_DEF = eINSTANCE.getCDOTransactionDef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl <em>CDO Audit Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOAuditDef()
- * @generated
- */
- EClass CDO_AUDIT_DEF = eINSTANCE.getCDOAuditDef();
-
- /**
- * The meta object literal for the '<em><b>Time Stamp</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EAttribute CDO_AUDIT_DEF__TIME_STAMP = eINSTANCE.getCDOAuditDef_TimeStamp();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl <em>CDO Session Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOSessionDef()
- * @generated
- */
- EClass CDO_SESSION_DEF = eINSTANCE.getCDOSessionDef();
-
- /**
- * The meta object literal for the '<em><b>Connector Def</b></em>' reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference CDO_SESSION_DEF__CONNECTOR_DEF = eINSTANCE.getCDOSessionDef_ConnectorDef();
-
- /**
- * The meta object literal for the '<em><b>Repository Name</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EAttribute CDO_SESSION_DEF__REPOSITORY_NAME = eINSTANCE.getCDOSessionDef_RepositoryName();
-
- /**
- * The meta object literal for the '<em><b>Cdo Package Registry Def</b></em>' reference feature.
- * <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- * @generated
- */
- EReference CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOSessionDef_CdoPackageRegistryDef();
-
- /**
- * The meta object literal for the '<em><b>Legacy Support Enabled</b></em>' attribute feature.
- * <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- * @generated
- */
- EAttribute CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED = eINSTANCE.getCDOSessionDef_LegacySupportEnabled();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl <em>CDO Package Registry Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOPackageRegistryDef()
- * @generated
- */
- EClass CDO_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOPackageRegistryDef();
-
- /**
- * The meta object literal for the '<em><b>Packages</b></em>' containment reference list feature. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- EReference CDO_PACKAGE_REGISTRY_DEF__PACKAGES = eINSTANCE.getCDOPackageRegistryDef_Packages();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOEagerPackageRegistryDefImpl <em>CDO Eager Package Registry Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOEagerPackageRegistryDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOEagerPackageRegistryDef()
- * @generated
- */
- EClass CDO_EAGER_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOEagerPackageRegistryDef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOLazyPackageRegistryDefImpl <em>CDO Lazy Package Registry Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOLazyPackageRegistryDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOLazyPackageRegistryDef()
- * @generated
- */
- EClass CDO_LAZY_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOLazyPackageRegistryDef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.EPackageDefImpl <em>EPackage Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.EPackageDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEPackageDef()
- * @generated
- */
- EClass EPACKAGE_DEF = eINSTANCE.getEPackageDef();
-
- /**
- * The meta object literal for the '<em><b>Ns URI</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EAttribute EPACKAGE_DEF__NS_URI = eINSTANCE.getEPackageDef_NsURI();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl <em>EDynamic Package Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEDynamicPackageDef()
- * @generated
- */
- EClass EDYNAMIC_PACKAGE_DEF = eINSTANCE.getEDynamicPackageDef();
-
- /**
- * The meta object literal for the '<em><b>Resource URI</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EAttribute EDYNAMIC_PACKAGE_DEF__RESOURCE_URI = eINSTANCE.getEDynamicPackageDef_ResourceURI();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.EGlobalPackageDefImpl <em>EGlobal Package Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.EGlobalPackageDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEGlobalPackageDef()
- * @generated
- */
- EClass EGLOBAL_PACKAGE_DEF = eINSTANCE.getEGlobalPackageDef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOClientProtocolFactoryDefImpl <em>CDO Client Protocol Factory Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOClientProtocolFactoryDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOClientProtocolFactoryDef()
- * @generated
- */
- EClass CDO_CLIENT_PROTOCOL_FACTORY_DEF = eINSTANCE.getCDOClientProtocolFactoryDef();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl <em>CDO Resource Def</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOResourceDef()
- * @generated
- */
- EClass CDO_RESOURCE_DEF = eINSTANCE.getCDOResourceDef();
-
- /**
- * The meta object literal for the '<em><b>Cdo Transaction</b></em>' reference feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EReference CDO_RESOURCE_DEF__CDO_TRANSACTION = eINSTANCE.getCDOResourceDef_CdoTransaction();
-
- /**
- * The meta object literal for the '<em><b>Resource Mode</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EAttribute CDO_RESOURCE_DEF__RESOURCE_MODE = eINSTANCE.getCDOResourceDef_ResourceMode();
-
- /**
- * The meta object literal for the '<em><b>Path</b></em>' attribute feature.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- EAttribute CDO_RESOURCE_DEF__PATH = eINSTANCE.getCDOResourceDef_Path();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.ResourceMode <em>Resource Mode</em>}' enum. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.cdo.defs.ResourceMode
- * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getResourceMode()
- * @generated
- */
- EEnum RESOURCE_MODE = eINSTANCE.getResourceMode();
-
- }
-
-} // CDODefsPackage
+/*
+ * 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.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;
+
+/**
+ * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.CDODefsFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface CDODefsPackage extends EPackage
+{
+ /**
+ * The package name.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "defs";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/emf/CDO/defs/1.0.0";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "cdo.defs";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ CDODefsPackage eINSTANCE = org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl <em>CDO View Def</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOViewDef()
+ * @generated
+ */
+ int CDO_VIEW_DEF = 0;
+
+ /**
+ * The feature id for the '<em><b>Cdo Session Def</b></em>' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_VIEW_DEF__CDO_SESSION_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>CDO View Def</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CDO_VIEW_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOTransactionDefImpl <em>CDO Transaction Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOTransactionDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOTransactionDef()
+ * @generated
+ */
+ int CDO_TRANSACTION_DEF = 1;
+
+ /**
+ * The feature id for the '<em><b>Cdo Session Def</b></em>' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_TRANSACTION_DEF__CDO_SESSION_DEF = CDO_VIEW_DEF__CDO_SESSION_DEF;
+
+ /**
+ * The number of structural features of the '<em>CDO Transaction Def</em>' class.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_TRANSACTION_DEF_FEATURE_COUNT = CDO_VIEW_DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl <em>CDO Audit Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOAuditDef()
+ * @generated
+ */
+ int CDO_AUDIT_DEF = 2;
+
+ /**
+ * The feature id for the '<em><b>Cdo Session Def</b></em>' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_AUDIT_DEF__CDO_SESSION_DEF = CDO_VIEW_DEF__CDO_SESSION_DEF;
+
+ /**
+ * The feature id for the '<em><b>Time Stamp</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_AUDIT_DEF__TIME_STAMP = CDO_VIEW_DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>CDO Audit Def</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CDO_AUDIT_DEF_FEATURE_COUNT = CDO_VIEW_DEF_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl <em>CDO Session Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOSessionDef()
+ * @generated
+ */
+ int CDO_SESSION_DEF = 3;
+
+ /**
+ * The feature id for the '<em><b>Connector Def</b></em>' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_SESSION_DEF__CONNECTOR_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Repository Name</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_SESSION_DEF__REPOSITORY_NAME = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Cdo Package Registry Def</b></em>' reference.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Legacy Support Enabled</b></em>' attribute.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 3;
+
+ /**
+ * The number of structural features of the '<em>CDO Session Def</em>' class.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_SESSION_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 4;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl <em>CDO Package Registry Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOPackageRegistryDef()
+ * @generated
+ */
+ int CDO_PACKAGE_REGISTRY_DEF = 4;
+
+ /**
+ * The feature id for the '<em><b>Packages</b></em>' containment reference list.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_PACKAGE_REGISTRY_DEF__PACKAGES = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>CDO Package Registry Def</em>' class.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOEagerPackageRegistryDefImpl <em>CDO Eager Package Registry Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOEagerPackageRegistryDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOEagerPackageRegistryDef()
+ * @generated
+ */
+ int CDO_EAGER_PACKAGE_REGISTRY_DEF = 5;
+
+ /**
+ * The feature id for the '<em><b>Packages</b></em>' containment reference list.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_EAGER_PACKAGE_REGISTRY_DEF__PACKAGES = CDO_PACKAGE_REGISTRY_DEF__PACKAGES;
+
+ /**
+ * The number of structural features of the '<em>CDO Eager Package Registry Def</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_EAGER_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOLazyPackageRegistryDefImpl <em>CDO Lazy Package Registry Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOLazyPackageRegistryDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOLazyPackageRegistryDef()
+ * @generated
+ */
+ int CDO_LAZY_PACKAGE_REGISTRY_DEF = 6;
+
+ /**
+ * The feature id for the '<em><b>Packages</b></em>' containment reference list.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_LAZY_PACKAGE_REGISTRY_DEF__PACKAGES = CDO_PACKAGE_REGISTRY_DEF__PACKAGES;
+
+ /**
+ * The number of structural features of the '<em>CDO Lazy Package Registry Def</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_LAZY_PACKAGE_REGISTRY_DEF_FEATURE_COUNT = CDO_PACKAGE_REGISTRY_DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.EPackageDefImpl <em>EPackage Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.EPackageDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEPackageDef()
+ * @generated
+ */
+ int EPACKAGE_DEF = 7;
+
+ /**
+ * The feature id for the '<em><b>Ns URI</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EPACKAGE_DEF__NS_URI = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EPackage Def</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EPACKAGE_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl <em>EDynamic Package Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEDynamicPackageDef()
+ * @generated
+ */
+ int EDYNAMIC_PACKAGE_DEF = 8;
+
+ /**
+ * The feature id for the '<em><b>Ns URI</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDYNAMIC_PACKAGE_DEF__NS_URI = EPACKAGE_DEF__NS_URI;
+
+ /**
+ * The feature id for the '<em><b>Resource URI</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDYNAMIC_PACKAGE_DEF__RESOURCE_URI = EPACKAGE_DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EDynamic Package Def</em>' class.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDYNAMIC_PACKAGE_DEF_FEATURE_COUNT = EPACKAGE_DEF_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.EGlobalPackageDefImpl <em>EGlobal Package Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.EGlobalPackageDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEGlobalPackageDef()
+ * @generated
+ */
+ int EGLOBAL_PACKAGE_DEF = 9;
+
+ /**
+ * The feature id for the '<em><b>Ns URI</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EGLOBAL_PACKAGE_DEF__NS_URI = EPACKAGE_DEF__NS_URI;
+
+ /**
+ * The number of structural features of the '<em>EGlobal Package Def</em>' class.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EGLOBAL_PACKAGE_DEF_FEATURE_COUNT = EPACKAGE_DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOClientProtocolFactoryDefImpl <em>CDO Client Protocol Factory Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOClientProtocolFactoryDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOClientProtocolFactoryDef()
+ * @generated
+ */
+ int CDO_CLIENT_PROTOCOL_FACTORY_DEF = 10;
+
+ /**
+ * The number of structural features of the '<em>CDO Client Protocol Factory Def</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_CLIENT_PROTOCOL_FACTORY_DEF_FEATURE_COUNT = Net4jDefsPackage.CLIENT_PROTOCOL_FACTORY_DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl <em>CDO Resource Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOResourceDef()
+ * @generated
+ */
+ int CDO_RESOURCE_DEF = 11;
+
+ /**
+ * The feature id for the '<em><b>Cdo Transaction</b></em>' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_RESOURCE_DEF__CDO_TRANSACTION = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Resource Mode</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_RESOURCE_DEF__RESOURCE_MODE = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Path</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_RESOURCE_DEF__PATH = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 2;
+
+ /**
+ * The number of structural features of the '<em>CDO Resource Def</em>' class.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CDO_RESOURCE_DEF_FEATURE_COUNT = Net4jUtilDefsPackage.DEF_FEATURE_COUNT + 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.defs.ResourceMode <em>Resource Mode</em>}' enum. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.defs.ResourceMode
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getResourceMode()
+ * @generated
+ */
+ int RESOURCE_MODE = 12;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOViewDef <em>CDO View Def</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>CDO View Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOViewDef
+ * @generated
+ */
+ EClass getCDOViewDef();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.defs.CDOViewDef#getCdoSessionDef <em>Cdo Session Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Cdo Session Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOViewDef#getCdoSessionDef()
+ * @see #getCDOViewDef()
+ * @generated
+ */
+ EReference getCDOViewDef_CdoSessionDef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOTransactionDef <em>CDO Transaction Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for class '<em>CDO Transaction Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOTransactionDef
+ * @generated
+ */
+ EClass getCDOTransactionDef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOAuditDef <em>CDO Audit Def</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>CDO Audit Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOAuditDef
+ * @generated
+ */
+ EClass getCDOAuditDef();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOAuditDef#getTimeStamp <em>Time Stamp</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Time Stamp</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOAuditDef#getTimeStamp()
+ * @see #getCDOAuditDef()
+ * @generated
+ */
+ EAttribute getCDOAuditDef_TimeStamp();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOSessionDef <em>CDO Session Def</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>CDO Session Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOSessionDef
+ * @generated
+ */
+ EClass getCDOSessionDef();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Connector Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef()
+ * @see #getCDOSessionDef()
+ * @generated
+ */
+ EReference getCDOSessionDef_ConnectorDef();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getRepositoryName <em>Repository Name</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Repository Name</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOSessionDef#getRepositoryName()
+ * @see #getCDOSessionDef()
+ * @generated
+ */
+ EAttribute getCDOSessionDef_RepositoryName();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getCdoPackageRegistryDef <em>Cdo Package Registry Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Cdo Package Registry Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOSessionDef#getCdoPackageRegistryDef()
+ * @see #getCDOSessionDef()
+ * @generated
+ */
+ EReference getCDOSessionDef_CdoPackageRegistryDef();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#isLegacySupportEnabled <em>Legacy Support Enabled</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Legacy Support Enabled</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOSessionDef#isLegacySupportEnabled()
+ * @see #getCDOSessionDef()
+ * @generated
+ */
+ EAttribute getCDOSessionDef_LegacySupportEnabled();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOPackageRegistryDef <em>CDO Package Registry Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for class '<em>CDO Package Registry Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOPackageRegistryDef
+ * @generated
+ */
+ EClass getCDOPackageRegistryDef();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.defs.CDOPackageRegistryDef#getPackages <em>Packages</em>}'.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Packages</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOPackageRegistryDef#getPackages()
+ * @see #getCDOPackageRegistryDef()
+ * @generated
+ */
+ EReference getCDOPackageRegistryDef_Packages();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef <em>CDO Eager Package Registry Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for class '<em>CDO Eager Package Registry Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOEagerPackageRegistryDef
+ * @generated
+ */
+ EClass getCDOEagerPackageRegistryDef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef <em>CDO Lazy Package Registry Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for class '<em>CDO Lazy Package Registry Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOLazyPackageRegistryDef
+ * @generated
+ */
+ EClass getCDOLazyPackageRegistryDef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.EPackageDef <em>EPackage Def</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EPackage Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.EPackageDef
+ * @generated
+ */
+ EClass getEPackageDef();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.EPackageDef#getNsURI <em>Ns URI</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Ns URI</em>'.
+ * @see org.eclipse.emf.cdo.defs.EPackageDef#getNsURI()
+ * @see #getEPackageDef()
+ * @generated
+ */
+ EAttribute getEPackageDef_NsURI();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef <em>EDynamic Package Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for class '<em>EDynamic Package Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.EDynamicPackageDef
+ * @generated
+ */
+ EClass getEDynamicPackageDef();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef#getResourceURI <em>Resource URI</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Resource URI</em>'.
+ * @see org.eclipse.emf.cdo.defs.EDynamicPackageDef#getResourceURI()
+ * @see #getEDynamicPackageDef()
+ * @generated
+ */
+ EAttribute getEDynamicPackageDef_ResourceURI();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.EGlobalPackageDef <em>EGlobal Package Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for class '<em>EGlobal Package Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.EGlobalPackageDef
+ * @generated
+ */
+ EClass getEGlobalPackageDef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef <em>CDO Client Protocol Factory Def</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for class '<em>CDO Client Protocol Factory Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOClientProtocolFactoryDef
+ * @generated
+ */
+ EClass getCDOClientProtocolFactoryDef();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.defs.CDOResourceDef <em>CDO Resource Def</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>CDO Resource Def</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOResourceDef
+ * @generated
+ */
+ EClass getCDOResourceDef();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getCdoTransaction <em>Cdo Transaction</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Cdo Transaction</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOResourceDef#getCdoTransaction()
+ * @see #getCDOResourceDef()
+ * @generated
+ */
+ EReference getCDOResourceDef_CdoTransaction();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getResourceMode <em>Resource Mode</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Resource Mode</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOResourceDef#getResourceMode()
+ * @see #getCDOResourceDef()
+ * @generated
+ */
+ EAttribute getCDOResourceDef_ResourceMode();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getPath <em>Path</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Path</em>'.
+ * @see org.eclipse.emf.cdo.defs.CDOResourceDef#getPath()
+ * @see #getCDOResourceDef()
+ * @generated
+ */
+ EAttribute getCDOResourceDef_Path();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.emf.cdo.defs.ResourceMode <em>Resource Mode</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for enum '<em>Resource Mode</em>'.
+ * @see org.eclipse.emf.cdo.defs.ResourceMode
+ * @generated
+ */
+ EEnum getResourceMode();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ CDODefsFactory getCDODefsFactory();
+
+ /**
+ * <!-- begin-user-doc --> Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals
+ {
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl <em>CDO View Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOViewDef()
+ * @generated
+ */
+ EClass CDO_VIEW_DEF = eINSTANCE.getCDOViewDef();
+
+ /**
+ * The meta object literal for the '<em><b>Cdo Session Def</b></em>' reference feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EReference CDO_VIEW_DEF__CDO_SESSION_DEF = eINSTANCE.getCDOViewDef_CdoSessionDef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOTransactionDefImpl <em>CDO Transaction Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOTransactionDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOTransactionDef()
+ * @generated
+ */
+ EClass CDO_TRANSACTION_DEF = eINSTANCE.getCDOTransactionDef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl <em>CDO Audit Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOAuditDef()
+ * @generated
+ */
+ EClass CDO_AUDIT_DEF = eINSTANCE.getCDOAuditDef();
+
+ /**
+ * The meta object literal for the '<em><b>Time Stamp</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EAttribute CDO_AUDIT_DEF__TIME_STAMP = eINSTANCE.getCDOAuditDef_TimeStamp();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl <em>CDO Session Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOSessionDef()
+ * @generated
+ */
+ EClass CDO_SESSION_DEF = eINSTANCE.getCDOSessionDef();
+
+ /**
+ * The meta object literal for the '<em><b>Connector Def</b></em>' reference feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EReference CDO_SESSION_DEF__CONNECTOR_DEF = eINSTANCE.getCDOSessionDef_ConnectorDef();
+
+ /**
+ * The meta object literal for the '<em><b>Repository Name</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EAttribute CDO_SESSION_DEF__REPOSITORY_NAME = eINSTANCE.getCDOSessionDef_RepositoryName();
+
+ /**
+ * The meta object literal for the '<em><b>Cdo Package Registry Def</b></em>' reference feature.
+ * <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ * @generated
+ */
+ EReference CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOSessionDef_CdoPackageRegistryDef();
+
+ /**
+ * The meta object literal for the '<em><b>Legacy Support Enabled</b></em>' attribute feature.
+ * <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED = eINSTANCE.getCDOSessionDef_LegacySupportEnabled();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl <em>CDO Package Registry Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOPackageRegistryDef()
+ * @generated
+ */
+ EClass CDO_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOPackageRegistryDef();
+
+ /**
+ * The meta object literal for the '<em><b>Packages</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference CDO_PACKAGE_REGISTRY_DEF__PACKAGES = eINSTANCE.getCDOPackageRegistryDef_Packages();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOEagerPackageRegistryDefImpl <em>CDO Eager Package Registry Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOEagerPackageRegistryDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOEagerPackageRegistryDef()
+ * @generated
+ */
+ EClass CDO_EAGER_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOEagerPackageRegistryDef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOLazyPackageRegistryDefImpl <em>CDO Lazy Package Registry Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOLazyPackageRegistryDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOLazyPackageRegistryDef()
+ * @generated
+ */
+ EClass CDO_LAZY_PACKAGE_REGISTRY_DEF = eINSTANCE.getCDOLazyPackageRegistryDef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.EPackageDefImpl <em>EPackage Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.EPackageDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEPackageDef()
+ * @generated
+ */
+ EClass EPACKAGE_DEF = eINSTANCE.getEPackageDef();
+
+ /**
+ * The meta object literal for the '<em><b>Ns URI</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EAttribute EPACKAGE_DEF__NS_URI = eINSTANCE.getEPackageDef_NsURI();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl <em>EDynamic Package Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEDynamicPackageDef()
+ * @generated
+ */
+ EClass EDYNAMIC_PACKAGE_DEF = eINSTANCE.getEDynamicPackageDef();
+
+ /**
+ * The meta object literal for the '<em><b>Resource URI</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EAttribute EDYNAMIC_PACKAGE_DEF__RESOURCE_URI = eINSTANCE.getEDynamicPackageDef_ResourceURI();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.EGlobalPackageDefImpl <em>EGlobal Package Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.EGlobalPackageDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getEGlobalPackageDef()
+ * @generated
+ */
+ EClass EGLOBAL_PACKAGE_DEF = eINSTANCE.getEGlobalPackageDef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOClientProtocolFactoryDefImpl <em>CDO Client Protocol Factory Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOClientProtocolFactoryDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOClientProtocolFactoryDef()
+ * @generated
+ */
+ EClass CDO_CLIENT_PROTOCOL_FACTORY_DEF = eINSTANCE.getCDOClientProtocolFactoryDef();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl <em>CDO Resource Def</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getCDOResourceDef()
+ * @generated
+ */
+ EClass CDO_RESOURCE_DEF = eINSTANCE.getCDOResourceDef();
+
+ /**
+ * The meta object literal for the '<em><b>Cdo Transaction</b></em>' reference feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EReference CDO_RESOURCE_DEF__CDO_TRANSACTION = eINSTANCE.getCDOResourceDef_CdoTransaction();
+
+ /**
+ * The meta object literal for the '<em><b>Resource Mode</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EAttribute CDO_RESOURCE_DEF__RESOURCE_MODE = eINSTANCE.getCDOResourceDef_ResourceMode();
+
+ /**
+ * The meta object literal for the '<em><b>Path</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ EAttribute CDO_RESOURCE_DEF__PATH = eINSTANCE.getCDOResourceDef_Path();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.defs.ResourceMode <em>Resource Mode</em>}' enum. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.defs.ResourceMode
+ * @see org.eclipse.emf.cdo.defs.impl.CDODefsPackageImpl#getResourceMode()
+ * @generated
+ */
+ EEnum RESOURCE_MODE = eINSTANCE.getResourceMode();
+
+ }
+
+} // CDODefsPackage
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOEagerPackageRegistryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOEagerPackageRegistryDef.java
index fabd6780cc..1a238584c4 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOEagerPackageRegistryDef.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOEagerPackageRegistryDef.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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>Eager Package Registry Def</b></em>'. <!--
- * end-user-doc -->
- *
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOEagerPackageRegistryDef()
- * @model
- * @generated
- */
-public interface CDOEagerPackageRegistryDef extends CDOPackageRegistryDef
-{
-} // EagerPackageRegistryDef
+/*
+ * 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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Eager Package Registry Def</b></em>'. <!--
+ * end-user-doc -->
+ *
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOEagerPackageRegistryDef()
+ * @model
+ * @generated
+ */
+public interface CDOEagerPackageRegistryDef extends CDOPackageRegistryDef
+{
+} // EagerPackageRegistryDef
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOLazyPackageRegistryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOLazyPackageRegistryDef.java
index 9f10328b5d..320805cd9c 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOLazyPackageRegistryDef.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOLazyPackageRegistryDef.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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>Lazy Package Registry Def</b></em>'. <!--
- * end-user-doc -->
- *
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOLazyPackageRegistryDef()
- * @model
- * @generated
- */
-public interface CDOLazyPackageRegistryDef extends CDOPackageRegistryDef
-{
-} // LazyPackageRegistryDef
+/*
+ * 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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Lazy Package Registry Def</b></em>'. <!--
+ * end-user-doc -->
+ *
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOLazyPackageRegistryDef()
+ * @model
+ * @generated
+ */
+public interface CDOLazyPackageRegistryDef extends CDOPackageRegistryDef
+{
+} // LazyPackageRegistryDef
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOPackageRegistryDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOPackageRegistryDef.java
index ed9ef8db22..331fe7491f 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOPackageRegistryDef.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOPackageRegistryDef.java
@@ -1,51 +1,51 @@
-/*
- * 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;
-
-import org.eclipse.emf.common.util.EList;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Package Registry Def</b></em>'. <!--
- * end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOPackageRegistryDef#getPackages <em>Packages</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOPackageRegistryDef()
- * @model
- * @generated
- */
-public interface CDOPackageRegistryDef extends Def
-{
- /**
- * Returns the value of the '<em><b>Packages</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.cdo.defs.EPackageDef}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Packages</em>' containment reference list isn't clear, there really should be more of a
- * description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Packages</em>' containment reference list.
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOPackageRegistryDef_Packages()
- * @model containment="true"
- * @generated
- */
- EList<EPackageDef> getPackages();
-
-} // CDOPackageRegistryDef
+/*
+ * 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;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Package Registry Def</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOPackageRegistryDef#getPackages <em>Packages</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOPackageRegistryDef()
+ * @model
+ * @generated
+ */
+public interface CDOPackageRegistryDef extends Def
+{
+ /**
+ * Returns the value of the '<em><b>Packages</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.defs.EPackageDef}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Packages</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Packages</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOPackageRegistryDef_Packages()
+ * @model containment="true"
+ * @generated
+ */
+ EList<EPackageDef> getPackages();
+
+} // CDOPackageRegistryDef
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOResourceDef.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOResourceDef.java
index a38dfb9288..7de50e74a1 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOResourceDef.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/CDOResourceDef.java
@@ -1,114 +1,114 @@
-/*
- * 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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Resource Def</b></em>'. <!-- end-user-doc
- * -->
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getCdoTransaction <em>Cdo Transaction</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getResourceMode <em>Resource Mode</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getPath <em>Path</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOResourceDef()
- * @model
- * @generated
- */
-public interface CDOResourceDef extends Def
-{
- /**
- * Returns the value of the '<em><b>Cdo Transaction</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Cdo Transaction</em>' reference isn't clear, there really should be more of a
- * description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Cdo Transaction</em>' 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 <em>Cdo Transaction</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Cdo Transaction</em>' reference.
- * @see #getCdoTransaction()
- * @generated
- */
- void setCdoTransaction(CDOTransactionDef value);
-
- /**
- * Returns the value of the '<em><b>Resource Mode</b></em>' attribute.
- * The default value is <code>"null"</code>.
- * The literals are from the enumeration {@link org.eclipse.emf.cdo.defs.ResourceMode}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Resource Mode</em>' attribute isn't clear, there really should be more of a description
- * here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Resource Mode</em>' 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 <em>Resource Mode</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Resource Mode</em>' attribute.
- * @see org.eclipse.emf.cdo.defs.ResourceMode
- * @see #getResourceMode()
- * @generated
- */
- void setResourceMode(ResourceMode value);
-
- /**
- * Returns the value of the '<em><b>Path</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Path</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Path</em>' 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 <em>Path</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Path</em>' 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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Resource Def</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getCdoTransaction <em>Cdo Transaction</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getResourceMode <em>Resource Mode</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOResourceDef#getPath <em>Path</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOResourceDef()
+ * @model
+ * @generated
+ */
+public interface CDOResourceDef extends Def
+{
+ /**
+ * Returns the value of the '<em><b>Cdo Transaction</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Cdo Transaction</em>' reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Cdo Transaction</em>' 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 <em>Cdo Transaction</em>}' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Cdo Transaction</em>' reference.
+ * @see #getCdoTransaction()
+ * @generated
+ */
+ void setCdoTransaction(CDOTransactionDef value);
+
+ /**
+ * Returns the value of the '<em><b>Resource Mode</b></em>' attribute.
+ * The default value is <code>"null"</code>.
+ * The literals are from the enumeration {@link org.eclipse.emf.cdo.defs.ResourceMode}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Resource Mode</em>' attribute isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Resource Mode</em>' 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 <em>Resource Mode</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Resource Mode</em>' attribute.
+ * @see org.eclipse.emf.cdo.defs.ResourceMode
+ * @see #getResourceMode()
+ * @generated
+ */
+ void setResourceMode(ResourceMode value);
+
+ /**
+ * Returns the value of the '<em><b>Path</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Path</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Path</em>' 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 <em>Path</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Path</em>' 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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Session Def</b></em>'. <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getRepositoryName <em>Repository Name</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getCdoPackageRegistryDef <em>Cdo Package Registry Def</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOSessionDef#isLegacySupportEnabled <em>Legacy Support Enabled</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef()
- * @model
- * @generated
- */
-public interface CDOSessionDef extends Def
-{
- /**
- * Returns the value of the '<em><b>Connector Def</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Connector Def</em>' reference isn't clear, there really should be more of a description
- * here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Connector Def</em>' 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 <em>Connector Def</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Connector Def</em>' 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 <em>Connector Def</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isSetConnectorDef()
- * @see #getConnectorDef()
- * @see #setConnectorDef(ConnectorDef)
- * @generated
- */
- void unsetConnectorDef();
-
- /**
- * Returns whether the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}' reference is set.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return whether the value of the '<em>Connector Def</em>' reference is set.
- * @see #unsetConnectorDef()
- * @see #getConnectorDef()
- * @see #setConnectorDef(ConnectorDef)
- * @generated
- */
- boolean isSetConnectorDef();
-
- /**
- * Returns the value of the '<em><b>Repository Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>CDORepositoryInfo Name</em>' attribute isn't clear, there really should be more of a
- * description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Repository Name</em>' 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 <em>Repository Name</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Repository Name</em>' attribute.
- * @see #getRepositoryName()
- * @generated
- */
- void setRepositoryName(String value);
-
- /**
- * Returns the value of the '<em><b>Cdo Package Registry Def</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Cdo Package Registry Def</em>' reference isn't clear, there really should be more of a
- * description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Cdo Package Registry Def</em>' 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 <em>Cdo Package Registry Def</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Cdo Package Registry Def</em>' reference.
- * @see #getCdoPackageRegistryDef()
- * @generated
- */
- void setCdoPackageRegistryDef(CDOPackageRegistryDef value);
-
- /**
- * Returns the value of the '<em><b>Legacy Support Enabled</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Legacy Support Enabled</em>' attribute isn't clear, there really should be more of a
- * description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Legacy Support Enabled</em>' 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 <em>Legacy Support Enabled</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Legacy Support Enabled</em>' 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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Session Def</b></em>'. <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getRepositoryName <em>Repository Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getCdoPackageRegistryDef <em>Cdo Package Registry Def</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOSessionDef#isLegacySupportEnabled <em>Legacy Support Enabled</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOSessionDef()
+ * @model
+ * @generated
+ */
+public interface CDOSessionDef extends Def
+{
+ /**
+ * Returns the value of the '<em><b>Connector Def</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Connector Def</em>' reference isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Connector Def</em>' 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 <em>Connector Def</em>}' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Connector Def</em>' 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 <em>Connector Def</em>}' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isSetConnectorDef()
+ * @see #getConnectorDef()
+ * @see #setConnectorDef(ConnectorDef)
+ * @generated
+ */
+ void unsetConnectorDef();
+
+ /**
+ * Returns whether the value of the '{@link org.eclipse.emf.cdo.defs.CDOSessionDef#getConnectorDef <em>Connector Def</em>}' reference is set.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @return whether the value of the '<em>Connector Def</em>' reference is set.
+ * @see #unsetConnectorDef()
+ * @see #getConnectorDef()
+ * @see #setConnectorDef(ConnectorDef)
+ * @generated
+ */
+ boolean isSetConnectorDef();
+
+ /**
+ * Returns the value of the '<em><b>Repository Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>CDORepositoryInfo Name</em>' attribute isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Repository Name</em>' 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 <em>Repository Name</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Repository Name</em>' attribute.
+ * @see #getRepositoryName()
+ * @generated
+ */
+ void setRepositoryName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Cdo Package Registry Def</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Cdo Package Registry Def</em>' reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Cdo Package Registry Def</em>' 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 <em>Cdo Package Registry Def</em>}' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Cdo Package Registry Def</em>' reference.
+ * @see #getCdoPackageRegistryDef()
+ * @generated
+ */
+ void setCdoPackageRegistryDef(CDOPackageRegistryDef value);
+
+ /**
+ * Returns the value of the '<em><b>Legacy Support Enabled</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Legacy Support Enabled</em>' attribute isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Legacy Support Enabled</em>' 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 <em>Legacy Support Enabled</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Legacy Support Enabled</em>' 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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Transaction Def</b></em>'. <!-- end-user-doc
- * -->
- *
- * @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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Transaction Def</b></em>'. <!-- end-user-doc
+ * -->
+ *
+ * @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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO View Def</b></em>'. <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.CDOViewDef#getCdoSessionDef <em>Cdo Session Def</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOViewDef()
- * @model
- * @generated
- */
-public interface CDOViewDef extends Def
-{
- /**
- * Returns the value of the '<em><b>Cdo Session Def</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Cdo Session Def</em>' reference isn't clear, there really should be more of a
- * description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Cdo Session Def</em>' 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 <em>Cdo Session Def</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Cdo Session Def</em>' 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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO View Def</b></em>'. <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.CDOViewDef#getCdoSessionDef <em>Cdo Session Def</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getCDOViewDef()
+ * @model
+ * @generated
+ */
+public interface CDOViewDef extends Def
+{
+ /**
+ * Returns the value of the '<em><b>Cdo Session Def</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Cdo Session Def</em>' reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Cdo Session Def</em>' 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 <em>Cdo Session Def</em>}' reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Cdo Session Def</em>' 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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>Dynamic CDO Package Def</b></em>'. <!--
- * end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef#getResourceURI <em>Resource URI</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEDynamicPackageDef()
- * @model
- * @generated
- */
-public interface EDynamicPackageDef extends EPackageDef
-{
- /**
- * Returns the value of the '<em><b>Resource URI</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Resource URI</em>' attribute isn't clear, there really should be more of a description
- * here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Resource URI</em>' 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 <em>Resource URI</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Resource URI</em>' 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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Dynamic CDO Package Def</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.EDynamicPackageDef#getResourceURI <em>Resource URI</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEDynamicPackageDef()
+ * @model
+ * @generated
+ */
+public interface EDynamicPackageDef extends EPackageDef
+{
+ /**
+ * Returns the value of the '<em><b>Resource URI</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Resource URI</em>' attribute isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Resource URI</em>' 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 <em>Resource URI</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Resource URI</em>' 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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>Native CDO Package Def</b></em>'. <!--
- * end-user-doc -->
- *
- *
- * @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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Native CDO Package Def</b></em>'. <!--
+ * end-user-doc -->
+ *
+ *
+ * @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;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Package Def</b></em>'. <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.EPackageDef#getNsURI <em>Ns URI</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEPackageDef()
- * @model abstract="true"
- * @generated
- */
-public interface EPackageDef extends Def
-{
- /**
- * Returns the value of the '<em><b>Ns URI</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Ns URI</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Ns URI</em>' 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 <em>Ns URI</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Ns URI</em>' 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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>CDO Package Def</b></em>'. <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.EPackageDef#getNsURI <em>Ns URI</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getEPackageDef()
+ * @model abstract="true"
+ * @generated
+ */
+public interface EPackageDef extends Def
+{
+ /**
+ * Returns the value of the '<em><b>Ns URI</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Ns URI</em>' attribute isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Ns URI</em>' 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 <em>Ns URI</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Ns URI</em>' 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;
-
-/**
- * <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>Resource Mode</b></em>', and
- * utility methods for working with them. <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getResourceMode()
- * @model
- * @generated
- */
-public enum ResourceMode implements Enumerator
-{
- /**
- * The '<em><b>GET</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @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 '<em><b>CREATE</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #CREATE_VALUE
- * @generated NOT
- * @ordered
- */
- CREATE(0, "CREATE", "CREATE")
- {
- @Override
- public CDOResource getResource(String path, CDOTransaction transaction)
- {
- return transaction.createResource(path);
- }
- },
-
- /**
- * The '<em><b>GET OR CREATE</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @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 '<em><b>GET</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>GET</b></em>' literal object isn't clear, there really should be more of a description
- * here...
- * </p>
- * <!-- end-user-doc -->
- * @see #GET
- * @model
- * @generated
- * @ordered
- */
- public static final int GET_VALUE = 0;
-
- /**
- * The '<em><b>CREATE</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>CREATE</b></em>' literal object isn't clear, there really should be more of a description
- * here...
- * </p>
- * <!-- end-user-doc -->
- * @see #CREATE
- * @model
- * @generated
- * @ordered
- */
- public static final int CREATE_VALUE = 0;
-
- /**
- * The '<em><b>GET OR CREATE</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>GET OR CREATE</b></em>' literal object isn't clear, there really should be more of a
- * description here...
- * </p>
- * <!-- end-user-doc -->
- * @see #GET_OR_CREATE
- * @model
- * @generated
- * @ordered
- */
- public static final int GET_OR_CREATE_VALUE = 0;
-
- /**
- * An array of all the '<em><b>Resource Mode</b></em>' enumerators.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private static final ResourceMode[] VALUES_ARRAY = new ResourceMode[] { GET, CREATE, GET_OR_CREATE, };
-
- /**
- * A public read-only list of all the '<em><b>Resource Mode</b></em>' enumerators.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- public static final List<ResourceMode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Resource Mode</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- public static ResourceMode get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- ResourceMode result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Resource Mode</b></em>' literal with the specified name.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- public static ResourceMode getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- ResourceMode result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Resource Mode</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- public static ResourceMode get(int value)
- {
- switch (value)
- {
- case GET_VALUE:
- return GET;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private ResourceMode(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
- public CDOResource getResource(String path, CDOTransaction cdoTransaction)
- {
- throw new UnsupportedOperationException("use a subclass!");
- }
-
-} // ResourceMode
+/*
+ * 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.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;
+
+/**
+ * <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>Resource Mode</b></em>', and
+ * utility methods for working with them. <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#getResourceMode()
+ * @model
+ * @generated
+ */
+public enum ResourceMode implements Enumerator
+{
+ /**
+ * The '<em><b>GET</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @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 '<em><b>CREATE</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #CREATE_VALUE
+ * @generated NOT
+ * @ordered
+ */
+ CREATE(0, "CREATE", "CREATE")
+ {
+ @Override
+ public CDOResource getResource(String path, CDOTransaction transaction)
+ {
+ return transaction.createResource(path);
+ }
+ },
+
+ /**
+ * The '<em><b>GET OR CREATE</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @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 '<em><b>GET</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>GET</b></em>' literal object isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #GET
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int GET_VALUE = 0;
+
+ /**
+ * The '<em><b>CREATE</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>CREATE</b></em>' literal object isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #CREATE
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int CREATE_VALUE = 0;
+
+ /**
+ * The '<em><b>GET OR CREATE</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>GET OR CREATE</b></em>' literal object isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #GET_OR_CREATE
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int GET_OR_CREATE_VALUE = 0;
+
+ /**
+ * An array of all the '<em><b>Resource Mode</b></em>' enumerators.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private static final ResourceMode[] VALUES_ARRAY = new ResourceMode[] { GET, CREATE, GET_OR_CREATE, };
+
+ /**
+ * A public read-only list of all the '<em><b>Resource Mode</b></em>' enumerators.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ public static final List<ResourceMode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Resource Mode</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ public static ResourceMode get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ ResourceMode result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Resource Mode</b></em>' literal with the specified name.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ public static ResourceMode getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ ResourceMode result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Resource Mode</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ public static ResourceMode get(int value)
+ {
+ switch (value)
+ {
+ case GET_VALUE:
+ return GET;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private ResourceMode(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+ public CDOResource getResource(String path, CDOTransaction cdoTransaction)
+ {
+ throw new UnsupportedOperationException("use a subclass!");
+ }
+
+} // ResourceMode
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOAuditDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOAuditDefImpl.java
index 3087684db0..efb7da4441 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOAuditDefImpl.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOAuditDefImpl.java
@@ -1,193 +1,193 @@
-/*
- * 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.CDODefsPackage;
-import org.eclipse.emf.cdo.session.CDOSession;
-
-import org.eclipse.net4j.util.CheckUtil;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import java.util.Date;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Audit Def</b></em>'. <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl#getTimeStamp <em>Time Stamp</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CDOAuditDefImpl extends CDOViewDefImpl implements CDOAuditDef
-{
- /**
- * The default value of the '{@link #getTimeStamp() <em>Time Stamp</em>}' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see #getTimeStamp()
- * @generated
- * @ordered
- */
- protected static final Date TIME_STAMP_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTimeStamp() <em>Time Stamp</em>}' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see #getTimeStamp()
- * @generated
- * @ordered
- */
- protected Date timeStamp = TIME_STAMP_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDOAuditDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return CDODefsPackage.Literals.CDO_AUDIT_DEF;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public Date getTimeStamp()
- {
- return timeStamp;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setTimeStamp(Date newTimeStamp)
- {
- Date oldTimeStamp = timeStamp;
- timeStamp = newTimeStamp;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP, oldTimeStamp,
- timeStamp));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP:
- return getTimeStamp();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP:
- setTimeStamp((Date)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP:
- setTimeStamp(TIME_STAMP_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP:
- return TIME_STAMP_EDEFAULT == null ? timeStamp != null : !TIME_STAMP_EDEFAULT.equals(timeStamp);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (timeStamp: ");
- result.append(timeStamp);
- result.append(')');
- return result.toString();
- }
-
- @Override
- protected Object createInstance()
- {
- CDOSession cdoSession = (CDOSession)getCdoSessionDef().getInstance();
- return cdoSession.openView(getTimeStamp().getTime());
- }
-
- @Override
- protected void validateDefinition()
- {
- super.validateDefinition();
- CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP), "time stamp is not set!");
- }
-
-} // CDOAuditDefImpl
+/*
+ * 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.CDODefsPackage;
+import org.eclipse.emf.cdo.session.CDOSession;
+
+import org.eclipse.net4j.util.CheckUtil;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import java.util.Date;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Audit Def</b></em>'. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOAuditDefImpl#getTimeStamp <em>Time Stamp</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOAuditDefImpl extends CDOViewDefImpl implements CDOAuditDef
+{
+ /**
+ * The default value of the '{@link #getTimeStamp() <em>Time Stamp</em>}' attribute.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @see #getTimeStamp()
+ * @generated
+ * @ordered
+ */
+ protected static final Date TIME_STAMP_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTimeStamp() <em>Time Stamp</em>}' attribute.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @see #getTimeStamp()
+ * @generated
+ * @ordered
+ */
+ protected Date timeStamp = TIME_STAMP_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDOAuditDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return CDODefsPackage.Literals.CDO_AUDIT_DEF;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public Date getTimeStamp()
+ {
+ return timeStamp;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTimeStamp(Date newTimeStamp)
+ {
+ Date oldTimeStamp = timeStamp;
+ timeStamp = newTimeStamp;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP, oldTimeStamp,
+ timeStamp));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP:
+ return getTimeStamp();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP:
+ setTimeStamp((Date)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP:
+ setTimeStamp(TIME_STAMP_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP:
+ return TIME_STAMP_EDEFAULT == null ? timeStamp != null : !TIME_STAMP_EDEFAULT.equals(timeStamp);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (timeStamp: ");
+ result.append(timeStamp);
+ result.append(')');
+ return result.toString();
+ }
+
+ @Override
+ protected Object createInstance()
+ {
+ CDOSession cdoSession = (CDOSession)getCdoSessionDef().getInstance();
+ return cdoSession.openView(getTimeStamp().getTime());
+ }
+
+ @Override
+ protected void validateDefinition()
+ {
+ super.validateDefinition();
+ CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_AUDIT_DEF__TIME_STAMP), "time stamp is not set!");
+ }
+
+} // CDOAuditDefImpl
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOClientProtocolFactoryDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOClientProtocolFactoryDefImpl.java
index d1c0674435..7849dadb80 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOClientProtocolFactoryDefImpl.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOClientProtocolFactoryDefImpl.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.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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '<em><b>CDO Client Protocol Factory Def</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class CDOClientProtocolFactoryDefImpl extends ClientProtocolFactoryDefImpl implements
- CDOClientProtocolFactoryDef
-{
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDOClientProtocolFactoryDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>CDO Client Protocol Factory Def</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOClientProtocolFactoryDefImpl extends ClientProtocolFactoryDefImpl implements
+ CDOClientProtocolFactoryDef
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDOClientProtocolFactoryDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
- * @generated
- */
-public class CDODefsFactoryImpl extends EFactoryImpl implements CDODefsFactory
-{
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDODefsFactoryImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOViewDef createCDOViewDef()
- {
- CDOViewDefImpl cdoViewDef = new CDOViewDefImpl();
- return cdoViewDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOTransactionDef createCDOTransactionDef()
- {
- CDOTransactionDefImpl cdoTransactionDef = new CDOTransactionDefImpl();
- return cdoTransactionDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOAuditDef createCDOAuditDef()
- {
- CDOAuditDefImpl cdoAuditDef = new CDOAuditDefImpl();
- return cdoAuditDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOSessionDef createCDOSessionDef()
- {
- CDOSessionDefImpl cdoSessionDef = new CDOSessionDefImpl();
- return cdoSessionDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOPackageRegistryDef createCDOPackageRegistryDef()
- {
- CDOPackageRegistryDefImpl cdoPackageRegistryDef = new CDOPackageRegistryDefImpl();
- return cdoPackageRegistryDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef()
- {
- CDOEagerPackageRegistryDefImpl cdoEagerPackageRegistryDef = new CDOEagerPackageRegistryDefImpl();
- return cdoEagerPackageRegistryDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef()
- {
- CDOLazyPackageRegistryDefImpl cdoLazyPackageRegistryDef = new CDOLazyPackageRegistryDefImpl();
- return cdoLazyPackageRegistryDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EDynamicPackageDef createEDynamicPackageDef()
- {
- EDynamicPackageDefImpl eDynamicPackageDef = new EDynamicPackageDefImpl();
- return eDynamicPackageDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EGlobalPackageDef createEGlobalPackageDef()
- {
- EGlobalPackageDefImpl eGlobalPackageDef = new EGlobalPackageDefImpl();
- return eGlobalPackageDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef()
- {
- CDOClientProtocolFactoryDefImpl cdoClientProtocolFactoryDef = new CDOClientProtocolFactoryDefImpl();
- return cdoClientProtocolFactoryDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOResourceDef createCDOResourceDef()
- {
- CDOResourceDefImpl cdoResourceDef = new CDOResourceDefImpl();
- return cdoResourceDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public String convertResourceModeToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDODefsPackage getCDODefsPackage()
- {
- return (CDODefsPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
+ * @generated
+ */
+public class CDODefsFactoryImpl extends EFactoryImpl implements CDODefsFactory
+{
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDODefsFactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOViewDef createCDOViewDef()
+ {
+ CDOViewDefImpl cdoViewDef = new CDOViewDefImpl();
+ return cdoViewDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOTransactionDef createCDOTransactionDef()
+ {
+ CDOTransactionDefImpl cdoTransactionDef = new CDOTransactionDefImpl();
+ return cdoTransactionDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOAuditDef createCDOAuditDef()
+ {
+ CDOAuditDefImpl cdoAuditDef = new CDOAuditDefImpl();
+ return cdoAuditDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOSessionDef createCDOSessionDef()
+ {
+ CDOSessionDefImpl cdoSessionDef = new CDOSessionDefImpl();
+ return cdoSessionDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOPackageRegistryDef createCDOPackageRegistryDef()
+ {
+ CDOPackageRegistryDefImpl cdoPackageRegistryDef = new CDOPackageRegistryDefImpl();
+ return cdoPackageRegistryDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOEagerPackageRegistryDef createCDOEagerPackageRegistryDef()
+ {
+ CDOEagerPackageRegistryDefImpl cdoEagerPackageRegistryDef = new CDOEagerPackageRegistryDefImpl();
+ return cdoEagerPackageRegistryDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOLazyPackageRegistryDef createCDOLazyPackageRegistryDef()
+ {
+ CDOLazyPackageRegistryDefImpl cdoLazyPackageRegistryDef = new CDOLazyPackageRegistryDefImpl();
+ return cdoLazyPackageRegistryDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EDynamicPackageDef createEDynamicPackageDef()
+ {
+ EDynamicPackageDefImpl eDynamicPackageDef = new EDynamicPackageDefImpl();
+ return eDynamicPackageDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EGlobalPackageDef createEGlobalPackageDef()
+ {
+ EGlobalPackageDefImpl eGlobalPackageDef = new EGlobalPackageDefImpl();
+ return eGlobalPackageDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOClientProtocolFactoryDef createCDOClientProtocolFactoryDef()
+ {
+ CDOClientProtocolFactoryDefImpl cdoClientProtocolFactoryDef = new CDOClientProtocolFactoryDefImpl();
+ return cdoClientProtocolFactoryDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOResourceDef createCDOResourceDef()
+ {
+ CDOResourceDefImpl cdoResourceDef = new CDOResourceDefImpl();
+ return cdoResourceDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertResourceModeToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDODefsPackage getCDODefsPackage()
+ {
+ return (CDODefsPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
- * @generated
- */
-public class CDODefsPackageImpl extends EPackageImpl implements CDODefsPackage
-{
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoViewDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoTransactionDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoAuditDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoSessionDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoPackageRegistryDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoEagerPackageRegistryDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoLazyPackageRegistryDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass ePackageDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass eDynamicPackageDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass eGlobalPackageDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoClientProtocolFactoryDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EClass cdoResourceDefEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private EEnum resourceModeEEnum = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
- * EPackage.Registry} by the package package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
- * performs initialization of the package, or returns the registered package, if one already exists. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private CDODefsPackageImpl()
- {
- super(eNS_URI, CDODefsFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>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.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOViewDef()
- {
- return cdoViewDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getCDOViewDef_CdoSessionDef()
- {
- return (EReference)cdoViewDefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOTransactionDef()
- {
- return cdoTransactionDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOAuditDef()
- {
- return cdoAuditDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCDOAuditDef_TimeStamp()
- {
- return (EAttribute)cdoAuditDefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOSessionDef()
- {
- return cdoSessionDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getCDOSessionDef_ConnectorDef()
- {
- return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCDOSessionDef_RepositoryName()
- {
- return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getCDOSessionDef_CdoPackageRegistryDef()
- {
- return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCDOSessionDef_LegacySupportEnabled()
- {
- return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOPackageRegistryDef()
- {
- return cdoPackageRegistryDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getCDOPackageRegistryDef_Packages()
- {
- return (EReference)cdoPackageRegistryDefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOEagerPackageRegistryDef()
- {
- return cdoEagerPackageRegistryDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOLazyPackageRegistryDef()
- {
- return cdoLazyPackageRegistryDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getEPackageDef()
- {
- return ePackageDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getEPackageDef_NsURI()
- {
- return (EAttribute)ePackageDefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getEDynamicPackageDef()
- {
- return eDynamicPackageDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getEDynamicPackageDef_ResourceURI()
- {
- return (EAttribute)eDynamicPackageDefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getEGlobalPackageDef()
- {
- return eGlobalPackageDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOClientProtocolFactoryDef()
- {
- return cdoClientProtocolFactoryDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EClass getCDOResourceDef()
- {
- return cdoResourceDefEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EReference getCDOResourceDef_CdoTransaction()
- {
- return (EReference)cdoResourceDefEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCDOResourceDef_ResourceMode()
- {
- return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getCDOResourceDef_Path()
- {
- return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public EEnum getResourceMode()
- {
- return resourceModeEEnum;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDODefsFactory getCDODefsFactory()
- {
- return (CDODefsFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents()
- {
- if (isCreated)
- return;
- isCreated = true;
-
- // Create classes and their features
- 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);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents()
- {
- if (isInitialized)
- return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // 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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
+ * @generated
+ */
+public class CDODefsPackageImpl extends EPackageImpl implements CDODefsPackage
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoViewDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoTransactionDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoAuditDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoSessionDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoPackageRegistryDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoEagerPackageRegistryDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoLazyPackageRegistryDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass ePackageDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass eDynamicPackageDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass eGlobalPackageDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoClientProtocolFactoryDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass cdoResourceDefEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum resourceModeEEnum = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private CDODefsPackageImpl()
+ {
+ super(eNS_URI, CDODefsFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>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.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @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;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOViewDef()
+ {
+ return cdoViewDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCDOViewDef_CdoSessionDef()
+ {
+ return (EReference)cdoViewDefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOTransactionDef()
+ {
+ return cdoTransactionDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOAuditDef()
+ {
+ return cdoAuditDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCDOAuditDef_TimeStamp()
+ {
+ return (EAttribute)cdoAuditDefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOSessionDef()
+ {
+ return cdoSessionDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCDOSessionDef_ConnectorDef()
+ {
+ return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCDOSessionDef_RepositoryName()
+ {
+ return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCDOSessionDef_CdoPackageRegistryDef()
+ {
+ return (EReference)cdoSessionDefEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCDOSessionDef_LegacySupportEnabled()
+ {
+ return (EAttribute)cdoSessionDefEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOPackageRegistryDef()
+ {
+ return cdoPackageRegistryDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCDOPackageRegistryDef_Packages()
+ {
+ return (EReference)cdoPackageRegistryDefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOEagerPackageRegistryDef()
+ {
+ return cdoEagerPackageRegistryDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOLazyPackageRegistryDef()
+ {
+ return cdoLazyPackageRegistryDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getEPackageDef()
+ {
+ return ePackageDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getEPackageDef_NsURI()
+ {
+ return (EAttribute)ePackageDefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getEDynamicPackageDef()
+ {
+ return eDynamicPackageDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getEDynamicPackageDef_ResourceURI()
+ {
+ return (EAttribute)eDynamicPackageDefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getEGlobalPackageDef()
+ {
+ return eGlobalPackageDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOClientProtocolFactoryDef()
+ {
+ return cdoClientProtocolFactoryDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCDOResourceDef()
+ {
+ return cdoResourceDefEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCDOResourceDef_CdoTransaction()
+ {
+ return (EReference)cdoResourceDefEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCDOResourceDef_ResourceMode()
+ {
+ return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCDOResourceDef_Path()
+ {
+ return (EAttribute)cdoResourceDefEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getResourceMode()
+ {
+ return resourceModeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDODefsFactory getCDODefsFactory()
+ {
+ return (CDODefsFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated)
+ return;
+ isCreated = true;
+
+ // Create classes and their features
+ 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);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // 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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '<em><b>Eager Package Registry Def</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class CDOEagerPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOEagerPackageRegistryDef
-{
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDOEagerPackageRegistryDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Eager Package Registry Def</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOEagerPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOEagerPackageRegistryDef
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDOEagerPackageRegistryDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '<em><b>Lazy Package Registry Def</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class CDOLazyPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOLazyPackageRegistryDef
-{
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDOLazyPackageRegistryDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Lazy Package Registry Def</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOLazyPackageRegistryDefImpl extends CDOPackageRegistryDefImpl implements CDOLazyPackageRegistryDef
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDOLazyPackageRegistryDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Package Registry Def</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl#getPackages <em>Packages</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CDOPackageRegistryDefImpl extends DefImpl implements CDOPackageRegistryDef
-{
-
- /**
- * The cached value of the '{@link #getPackages() <em>Packages</em>}' containment reference list. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- */
- protected EList<EPackageDef> packages;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->.
- *
- * @generated
- */
- protected CDOPackageRegistryDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->.
- *
- * @return the e class
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return CDODefsPackage.Literals.CDO_PACKAGE_REGISTRY_DEF;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->.
- *
- * @return the packages
- * @generated
- */
- public EList<EPackageDef> getPackages()
- {
- if (packages == null)
- {
- packages = new EObjectContainmentEList<EPackageDef>(EPackageDef.class, this,
- CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES);
- }
- return packages;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->.
- *
- * @param otherEnd
- * the other end
- * @param featureID
- * the feature id
- * @param msgs
- * the msgs
- * @return the notification chain
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
- return ((InternalEList<?>)getPackages()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->.
- *
- * @param featureID
- * the feature id
- * @param resolve
- * the resolve
- * @param coreType
- * the core type
- * @return the object
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
- return getPackages();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->.
- *
- * @param featureID
- * the feature id
- * @param newValue
- * the new value
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
- getPackages().clear();
- getPackages().addAll((Collection<? extends EPackageDef>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->.
- *
- * @param featureID
- * the feature id
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
- getPackages().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->.
- *
- * @param featureID
- * the feature id
- * @return true, if e is set
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
- return packages != null && !packages.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * Creates the instance.
- *
- * @return the CDO package registry
- */
- @Override
- protected Object createInstance()
- {
- // TODO: implement CDOPackageRegistryDefImpl.createInstance()
- throw new UnsupportedOperationException();
- // return addPackages(new CDOPackageRegistryImpl());
- }
-
- /**
- * Adds the packages.
- *
- * @param packageRegistry
- * the package registry
- * @return the e package. registry
- */
- protected EPackage.Registry addPackages(EPackage.Registry packageRegistry)
- {
- for (EPackageDef ePackageDef : getPackages())
- {
- addPackage(ePackageDef, packageRegistry);
- }
- return packageRegistry;
- }
-
- /**
- * Adds the given {@link EPackage} within the supplied <tt>definition<tt> to the given <tt>CDOPackageRegistry<tt> .
- *
- * @param ePackageDef
- * the ePackage definition
- * @param packageRegistry
- * the package registry
- */
- protected void addPackage(EPackageDef ePackageDef, EPackage.Registry packageRegistry)
- {
- EPackage ePackage = (EPackage)ePackageDef.getInstance();
- packageRegistry.put(ePackage.getNsURI(), ePackage);
- }
-
- /**
- * Adds the given {@link EPackage} within the supplied <tt>definition<tt> to the given <tt>CDOPackageRegistry<tt> .
- *
- * @param ePackageDef
- * the ePackage definition
- * @param packageRegistry
- * the package registry
- */
- protected void removePackage(EPackageDef ePackageDef, EPackage.Registry packageRegistry)
- {
- EPackage ePackage = (EPackage)ePackageDef.getInstance();
- packageRegistry.remove(ePackage.getNsURI());
- }
-
-} // CDOPackageRegistryDefImpl
+/*
+ * 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.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
+/**
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Package Registry Def</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOPackageRegistryDefImpl#getPackages <em>Packages</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOPackageRegistryDefImpl extends DefImpl implements CDOPackageRegistryDef
+{
+
+ /**
+ * The cached value of the '{@link #getPackages() <em>Packages</em>}' containment reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ */
+ protected EList<EPackageDef> packages;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->.
+ *
+ * @generated
+ */
+ protected CDOPackageRegistryDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->.
+ *
+ * @return the e class
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return CDODefsPackage.Literals.CDO_PACKAGE_REGISTRY_DEF;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->.
+ *
+ * @return the packages
+ * @generated
+ */
+ public EList<EPackageDef> getPackages()
+ {
+ if (packages == null)
+ {
+ packages = new EObjectContainmentEList<EPackageDef>(EPackageDef.class, this,
+ CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES);
+ }
+ return packages;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->.
+ *
+ * @param otherEnd
+ * the other end
+ * @param featureID
+ * the feature id
+ * @param msgs
+ * the msgs
+ * @return the notification chain
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
+ return ((InternalEList<?>)getPackages()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->.
+ *
+ * @param featureID
+ * the feature id
+ * @param resolve
+ * the resolve
+ * @param coreType
+ * the core type
+ * @return the object
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
+ return getPackages();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->.
+ *
+ * @param featureID
+ * the feature id
+ * @param newValue
+ * the new value
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
+ getPackages().clear();
+ getPackages().addAll((Collection<? extends EPackageDef>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->.
+ *
+ * @param featureID
+ * the feature id
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
+ getPackages().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->.
+ *
+ * @param featureID
+ * the feature id
+ * @return true, if e is set
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_PACKAGE_REGISTRY_DEF__PACKAGES:
+ return packages != null && !packages.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * Creates the instance.
+ *
+ * @return the CDO package registry
+ */
+ @Override
+ protected Object createInstance()
+ {
+ // TODO: implement CDOPackageRegistryDefImpl.createInstance()
+ throw new UnsupportedOperationException();
+ // return addPackages(new CDOPackageRegistryImpl());
+ }
+
+ /**
+ * Adds the packages.
+ *
+ * @param packageRegistry
+ * the package registry
+ * @return the e package. registry
+ */
+ protected EPackage.Registry addPackages(EPackage.Registry packageRegistry)
+ {
+ for (EPackageDef ePackageDef : getPackages())
+ {
+ addPackage(ePackageDef, packageRegistry);
+ }
+ return packageRegistry;
+ }
+
+ /**
+ * Adds the given {@link EPackage} within the supplied <tt>definition<tt> to the given <tt>CDOPackageRegistry<tt> .
+ *
+ * @param ePackageDef
+ * the ePackage definition
+ * @param packageRegistry
+ * the package registry
+ */
+ protected void addPackage(EPackageDef ePackageDef, EPackage.Registry packageRegistry)
+ {
+ EPackage ePackage = (EPackage)ePackageDef.getInstance();
+ packageRegistry.put(ePackage.getNsURI(), ePackage);
+ }
+
+ /**
+ * Adds the given {@link EPackage} within the supplied <tt>definition<tt> to the given <tt>CDOPackageRegistry<tt> .
+ *
+ * @param ePackageDef
+ * the ePackage definition
+ * @param packageRegistry
+ * the package registry
+ */
+ protected void removePackage(EPackageDef ePackageDef, EPackage.Registry packageRegistry)
+ {
+ EPackage ePackage = (EPackage)ePackageDef.getInstance();
+ packageRegistry.remove(ePackage.getNsURI());
+ }
+
+} // CDOPackageRegistryDefImpl
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java
index 1ad798cf1a..4857956a3d 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOResourceDefImpl.java
@@ -1,329 +1,329 @@
-/*
- * 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.CDOResourceDef;
-import org.eclipse.emf.cdo.defs.CDOTransactionDef;
-import org.eclipse.emf.cdo.defs.ResourceMode;
-import org.eclipse.emf.cdo.eresource.CDOResource;
-import org.eclipse.emf.cdo.transaction.CDOTransaction;
-import org.eclipse.emf.cdo.util.CommitException;
-
-import org.eclipse.net4j.util.CheckUtil;
-import org.eclipse.net4j.util.WrappedException;
-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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '<em><b>CDO Resource Def</b></em>'. <!-- end-user-doc
- * -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl#getCdoTransaction <em>Cdo Transaction</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
-{
-
- /**
- * The cached value of the '{@link #getCdoTransaction() <em>Cdo Transaction</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCdoTransaction()
- * @generated
- * @ordered
- */
- protected CDOTransactionDef cdoTransaction;
-
- /**
- * The default value of the '{@link #getResourceMode() <em>Resource Mode</em>}' attribute. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getResourceMode()
- * @generated NOT
- * @ordered
- */
- protected static final ResourceMode RESOURCE_MODE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getResourceMode() <em>Resource Mode</em>}' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see #getResourceMode()
- * @generated
- * @ordered
- */
- protected ResourceMode resourceMode = RESOURCE_MODE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getPath() <em>Path</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getPath()
- * @generated
- * @ordered
- */
- protected static final String PATH_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getPath() <em>Path</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getPath()
- * @generated
- * @ordered
- */
- protected String path = PATH_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDOResourceDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return CDODefsPackage.Literals.CDO_RESOURCE_DEF;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOTransactionDef getCdoTransaction()
- {
- if (cdoTransaction != null && cdoTransaction.eIsProxy())
- {
- InternalEObject oldCdoTransaction = (InternalEObject)cdoTransaction;
- cdoTransaction = (CDOTransactionDef)eResolveProxy(oldCdoTransaction);
- if (cdoTransaction != oldCdoTransaction)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION,
- oldCdoTransaction, cdoTransaction));
- }
- }
- return cdoTransaction;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOTransactionDef basicGetCdoTransaction()
- {
- return cdoTransaction;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setCdoTransaction(CDOTransactionDef newCdoTransaction)
- {
- CDOTransactionDef oldCdoTransaction = cdoTransaction;
- cdoTransaction = newCdoTransaction;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION,
- oldCdoTransaction, cdoTransaction));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public ResourceMode getResourceMode()
- {
- return resourceMode;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setResourceMode(ResourceMode newResourceMode)
- {
- ResourceMode oldResourceMode = resourceMode;
- resourceMode = newResourceMode == null ? RESOURCE_MODE_EDEFAULT : newResourceMode;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE,
- oldResourceMode, resourceMode));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public String getPath()
- {
- return path;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setPath(String newPath)
- {
- String oldPath = path;
- path = newPath;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__PATH, oldPath, path));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
- if (resolve)
- return getCdoTransaction();
- return basicGetCdoTransaction();
- case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
- return getResourceMode();
- case CDODefsPackage.CDO_RESOURCE_DEF__PATH:
- return getPath();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
- setCdoTransaction((CDOTransactionDef)newValue);
- return;
- case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
- setResourceMode((ResourceMode)newValue);
- return;
- case CDODefsPackage.CDO_RESOURCE_DEF__PATH:
- setPath((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
- setCdoTransaction((CDOTransactionDef)null);
- return;
- case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
- setResourceMode(RESOURCE_MODE_EDEFAULT);
- return;
- case CDODefsPackage.CDO_RESOURCE_DEF__PATH:
- setPath(PATH_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
- return cdoTransaction != null;
- case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
- return resourceMode != RESOURCE_MODE_EDEFAULT;
- case CDODefsPackage.CDO_RESOURCE_DEF__PATH:
- return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (resourceMode: ");
- result.append(resourceMode);
- result.append(", path: ");
- result.append(path);
- result.append(')');
- return result.toString();
- }
-
- @Override
- protected Object createInstance()
- {
- CDOTransaction cdoTransaction = (CDOTransaction)getCdoTransaction().getInstance();
- CDOResource cdoResource = getResourceMode().getResource(getPath(), cdoTransaction);
-
- try
- {
- cdoTransaction.commit();
- }
- catch (CommitException ex)
- {
- throw WrappedException.wrap(ex);
- }
-
- return cdoResource;
-
- }
-
- @Override
- protected void validateDefinition()
- {
- CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__PATH), "path is not set!");
- CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION), "cdo transaction is not set!");
- CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE), "resourceMode is not set!");
- }
-
-} // CDOResourceDefImpl
+/*
+ * 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.CDOResourceDef;
+import org.eclipse.emf.cdo.defs.CDOTransactionDef;
+import org.eclipse.emf.cdo.defs.ResourceMode;
+import org.eclipse.emf.cdo.eresource.CDOResource;
+import org.eclipse.emf.cdo.transaction.CDOTransaction;
+import org.eclipse.emf.cdo.util.CommitException;
+
+import org.eclipse.net4j.util.CheckUtil;
+import org.eclipse.net4j.util.WrappedException;
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>CDO Resource Def</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOResourceDefImpl#getCdoTransaction <em>Cdo Transaction</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOResourceDefImpl extends DefImpl implements CDOResourceDef
+{
+
+ /**
+ * The cached value of the '{@link #getCdoTransaction() <em>Cdo Transaction</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCdoTransaction()
+ * @generated
+ * @ordered
+ */
+ protected CDOTransactionDef cdoTransaction;
+
+ /**
+ * The default value of the '{@link #getResourceMode() <em>Resource Mode</em>}' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getResourceMode()
+ * @generated NOT
+ * @ordered
+ */
+ protected static final ResourceMode RESOURCE_MODE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getResourceMode() <em>Resource Mode</em>}' attribute.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @see #getResourceMode()
+ * @generated
+ * @ordered
+ */
+ protected ResourceMode resourceMode = RESOURCE_MODE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPath() <em>Path</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getPath()
+ * @generated
+ * @ordered
+ */
+ protected static final String PATH_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPath() <em>Path</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #getPath()
+ * @generated
+ * @ordered
+ */
+ protected String path = PATH_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDOResourceDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return CDODefsPackage.Literals.CDO_RESOURCE_DEF;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOTransactionDef getCdoTransaction()
+ {
+ if (cdoTransaction != null && cdoTransaction.eIsProxy())
+ {
+ InternalEObject oldCdoTransaction = (InternalEObject)cdoTransaction;
+ cdoTransaction = (CDOTransactionDef)eResolveProxy(oldCdoTransaction);
+ if (cdoTransaction != oldCdoTransaction)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION,
+ oldCdoTransaction, cdoTransaction));
+ }
+ }
+ return cdoTransaction;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOTransactionDef basicGetCdoTransaction()
+ {
+ return cdoTransaction;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCdoTransaction(CDOTransactionDef newCdoTransaction)
+ {
+ CDOTransactionDef oldCdoTransaction = cdoTransaction;
+ cdoTransaction = newCdoTransaction;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION,
+ oldCdoTransaction, cdoTransaction));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public ResourceMode getResourceMode()
+ {
+ return resourceMode;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setResourceMode(ResourceMode newResourceMode)
+ {
+ ResourceMode oldResourceMode = resourceMode;
+ resourceMode = newResourceMode == null ? RESOURCE_MODE_EDEFAULT : newResourceMode;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE,
+ oldResourceMode, resourceMode));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public String getPath()
+ {
+ return path;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPath(String newPath)
+ {
+ String oldPath = path;
+ path = newPath;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_RESOURCE_DEF__PATH, oldPath, path));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
+ if (resolve)
+ return getCdoTransaction();
+ return basicGetCdoTransaction();
+ case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
+ return getResourceMode();
+ case CDODefsPackage.CDO_RESOURCE_DEF__PATH:
+ return getPath();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
+ setCdoTransaction((CDOTransactionDef)newValue);
+ return;
+ case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
+ setResourceMode((ResourceMode)newValue);
+ return;
+ case CDODefsPackage.CDO_RESOURCE_DEF__PATH:
+ setPath((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
+ setCdoTransaction((CDOTransactionDef)null);
+ return;
+ case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
+ setResourceMode(RESOURCE_MODE_EDEFAULT);
+ return;
+ case CDODefsPackage.CDO_RESOURCE_DEF__PATH:
+ setPath(PATH_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION:
+ return cdoTransaction != null;
+ case CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE:
+ return resourceMode != RESOURCE_MODE_EDEFAULT;
+ case CDODefsPackage.CDO_RESOURCE_DEF__PATH:
+ return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (resourceMode: ");
+ result.append(resourceMode);
+ result.append(", path: ");
+ result.append(path);
+ result.append(')');
+ return result.toString();
+ }
+
+ @Override
+ protected Object createInstance()
+ {
+ CDOTransaction cdoTransaction = (CDOTransaction)getCdoTransaction().getInstance();
+ CDOResource cdoResource = getResourceMode().getResource(getPath(), cdoTransaction);
+
+ try
+ {
+ cdoTransaction.commit();
+ }
+ catch (CommitException ex)
+ {
+ throw WrappedException.wrap(ex);
+ }
+
+ return cdoResource;
+
+ }
+
+ @Override
+ protected void validateDefinition()
+ {
+ CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__PATH), "path is not set!");
+ CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__CDO_TRANSACTION), "cdo transaction is not set!");
+ CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_RESOURCE_DEF__RESOURCE_MODE), "resourceMode is not set!");
+ }
+
+} // CDOResourceDefImpl
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java
index f24fdbd31d..02704f1983 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOSessionDefImpl.java
@@ -1,455 +1,455 @@
-/*
- * 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.common.model.CDOPackageRegistry;
-import org.eclipse.emf.cdo.defs.CDODefsPackage;
-import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef;
-import org.eclipse.emf.cdo.defs.CDOSessionDef;
-import org.eclipse.emf.cdo.net4j.CDONet4jSessionConfiguration;
-import org.eclipse.emf.cdo.net4j.CDONet4jUtil;
-import org.eclipse.emf.cdo.session.CDOSession;
-
-import org.eclipse.net4j.connector.IConnector;
-import org.eclipse.net4j.defs.ConnectorDef;
-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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Session Def</b></em>'. <!-- end-user-doc
- * -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#getConnectorDef <em>Connector Def</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#getRepositoryName <em>CDORepositoryInfo Name</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#getCdoPackageRegistryDef <em>Cdo Package Registry Def
- * </em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#isLegacySupportEnabled <em>Legacy Support Enabled</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#getFailOverStrategyDef <em>Fail Over Strategy Def</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef
-{
- /**
- * The cached value of the '{@link #getConnectorDef() <em>Connector Def</em>}' reference.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see #getConnectorDef()
- * @generated
- * @ordered
- */
- protected ConnectorDef connectorDef;
-
- /**
- * This is true if the Connector Def reference has been set.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- protected boolean connectorDefESet;
-
- /**
- * The default value of the '{@link #getRepositoryName() <em>Repository Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRepositoryName()
- * @generated
- * @ordered
- */
- protected static final String REPOSITORY_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getRepositoryName() <em>Repository Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getRepositoryName()
- * @generated
- * @ordered
- */
- protected String repositoryName = REPOSITORY_NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getCdoPackageRegistryDef() <em>Cdo Package Registry Def</em>}' reference. <!--
- * begin-user-doc -->
- *
- * @since 3.0 <!-- end-user-doc -->
- * @see #getCdoPackageRegistryDef()
- * @generated
- * @ordered
- */
- protected CDOPackageRegistryDef cdoPackageRegistryDef;
-
- /**
- * The default value of the '{@link #isLegacySupportEnabled() <em>Legacy Support Enabled</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isLegacySupportEnabled()
- * @generated
- * @ordered
- */
- protected static final boolean LEGACY_SUPPORT_ENABLED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isLegacySupportEnabled() <em>Legacy Support Enabled</em>}' attribute. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isLegacySupportEnabled()
- * @generated
- * @ordered
- */
- protected boolean legacySupportEnabled = LEGACY_SUPPORT_ENABLED_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDOSessionDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return CDODefsPackage.Literals.CDO_SESSION_DEF;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public ConnectorDef getConnectorDef()
- {
- if (connectorDef != null && connectorDef.eIsProxy())
- {
- InternalEObject oldConnectorDef = (InternalEObject)connectorDef;
- connectorDef = (ConnectorDef)eResolveProxy(oldConnectorDef);
- if (connectorDef != oldConnectorDef)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF,
- oldConnectorDef, connectorDef));
- }
- }
- return connectorDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public ConnectorDef basicGetConnectorDef()
- {
- return connectorDef;
- }
-
- /**
- * <!-- begin-user-doc --> Sets the {@link ConnectorDef} for this {@link CDOSessionDef}. If a
- * {@link FailOverStrategyDef} was already set, an IllegalStateException is thrown. ConnectorDef and
- * FailOverStrategyDef are mutually exclusive.
- *
- * @throws IllegalStateException
- * if a {@link FailOverStrategyDef} was set before
- * @see CDOSessionConfigurationImpl#openSession() <!-- end-user-doc -->
- * @generated NOT
- */
- public void setConnectorDef(ConnectorDef newConnectorDef)
- {
- setConnectorDefGen(newConnectorDef);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setConnectorDefGen(ConnectorDef newConnectorDef)
- {
- ConnectorDef oldConnectorDef = connectorDef;
- connectorDef = newConnectorDef;
- boolean oldConnectorDefESet = connectorDefESet;
- connectorDefESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF,
- oldConnectorDef, connectorDef, !oldConnectorDefESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void unsetConnectorDef()
- {
- ConnectorDef oldConnectorDef = connectorDef;
- boolean oldConnectorDefESet = connectorDefESet;
- connectorDef = null;
- connectorDefESet = false;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF,
- oldConnectorDef, null, oldConnectorDefESet));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public boolean isSetConnectorDef()
- {
- return connectorDefESet;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public String getRepositoryName()
- {
- return repositoryName;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setRepositoryName(String newRepositoryName)
- {
- String oldRepositoryName = repositoryName;
- repositoryName = newRepositoryName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME,
- oldRepositoryName, repositoryName));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOPackageRegistryDef getCdoPackageRegistryDef()
- {
- if (cdoPackageRegistryDef != null && cdoPackageRegistryDef.eIsProxy())
- {
- InternalEObject oldCdoPackageRegistryDef = (InternalEObject)cdoPackageRegistryDef;
- cdoPackageRegistryDef = (CDOPackageRegistryDef)eResolveProxy(oldCdoPackageRegistryDef);
- if (cdoPackageRegistryDef != oldCdoPackageRegistryDef)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF, oldCdoPackageRegistryDef, cdoPackageRegistryDef));
- }
- }
- return cdoPackageRegistryDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOPackageRegistryDef basicGetCdoPackageRegistryDef()
- {
- return cdoPackageRegistryDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setCdoPackageRegistryDef(CDOPackageRegistryDef newCdoPackageRegistryDef)
- {
- CDOPackageRegistryDef oldCdoPackageRegistryDef = cdoPackageRegistryDef;
- cdoPackageRegistryDef = newCdoPackageRegistryDef;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF,
- oldCdoPackageRegistryDef, cdoPackageRegistryDef));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public boolean isLegacySupportEnabled()
- {
- return legacySupportEnabled;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setLegacySupportEnabled(boolean newLegacySupportEnabled)
- {
- boolean oldLegacySupportEnabled = legacySupportEnabled;
- legacySupportEnabled = newLegacySupportEnabled;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED,
- oldLegacySupportEnabled, legacySupportEnabled));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF:
- if (resolve)
- return getConnectorDef();
- return basicGetConnectorDef();
- case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME:
- return getRepositoryName();
- case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF:
- if (resolve)
- return getCdoPackageRegistryDef();
- return basicGetCdoPackageRegistryDef();
- case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED:
- return isLegacySupportEnabled();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF:
- setConnectorDef((ConnectorDef)newValue);
- return;
- case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME:
- setRepositoryName((String)newValue);
- return;
- case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF:
- setCdoPackageRegistryDef((CDOPackageRegistryDef)newValue);
- return;
- case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED:
- setLegacySupportEnabled((Boolean)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF:
- unsetConnectorDef();
- return;
- case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME:
- setRepositoryName(REPOSITORY_NAME_EDEFAULT);
- return;
- case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF:
- setCdoPackageRegistryDef((CDOPackageRegistryDef)null);
- return;
- case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED:
- setLegacySupportEnabled(LEGACY_SUPPORT_ENABLED_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF:
- return isSetConnectorDef();
- case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME:
- return REPOSITORY_NAME_EDEFAULT == null ? repositoryName != null : !REPOSITORY_NAME_EDEFAULT
- .equals(repositoryName);
- case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF:
- return cdoPackageRegistryDef != null;
- case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED:
- return legacySupportEnabled != LEGACY_SUPPORT_ENABLED_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (repositoryName: ");
- result.append(repositoryName);
- result.append(", legacySupportEnabled: ");
- result.append(legacySupportEnabled);
- result.append(')');
- return result.toString();
- }
-
- @Override
- @SuppressWarnings("deprecation")
- protected CDOSession createInstance()
- {
- CDONet4jSessionConfiguration configuration = CDONet4jUtil.createNet4jSessionConfiguration();
-
- if (isSetConnectorDef())
- {
- configuration.setConnector((IConnector)getConnectorDef().getInstance());
- }
- configuration.setPackageRegistry((CDOPackageRegistry)getCdoPackageRegistryDef().getInstance());
- configuration.setRepositoryName(getRepositoryName());
- return configuration.openSession();
- }
-
- @Override
- protected void validateDefinition()
- {
- CheckUtil.checkState //
- (eIsSet(CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME), "repository name not set yet!");
- /*
- * failoverStrategy and connector are mutually exclusive
- * @see CDOSessionConfiguration#openSession
- */
- CheckUtil.checkState(isSetConnectorDef(), "connector not set");
- // CheckUtil.checkState(getCdoPackageRegistryDef() != null,
- // "package registry definition is not set!");
- CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF),
- "package registry definition is not set!");
- }
-
-} // CDOSessionDefImpl
+/*
+ * 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.common.model.CDOPackageRegistry;
+import org.eclipse.emf.cdo.defs.CDODefsPackage;
+import org.eclipse.emf.cdo.defs.CDOPackageRegistryDef;
+import org.eclipse.emf.cdo.defs.CDOSessionDef;
+import org.eclipse.emf.cdo.net4j.CDONet4jSessionConfiguration;
+import org.eclipse.emf.cdo.net4j.CDONet4jUtil;
+import org.eclipse.emf.cdo.session.CDOSession;
+
+import org.eclipse.net4j.connector.IConnector;
+import org.eclipse.net4j.defs.ConnectorDef;
+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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Session Def</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#getConnectorDef <em>Connector Def</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#getRepositoryName <em>CDORepositoryInfo Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#getCdoPackageRegistryDef <em>Cdo Package Registry Def
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#isLegacySupportEnabled <em>Legacy Support Enabled</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOSessionDefImpl#getFailOverStrategyDef <em>Fail Over Strategy Def</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOSessionDefImpl extends DefImpl implements CDOSessionDef
+{
+ /**
+ * The cached value of the '{@link #getConnectorDef() <em>Connector Def</em>}' reference.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @see #getConnectorDef()
+ * @generated
+ * @ordered
+ */
+ protected ConnectorDef connectorDef;
+
+ /**
+ * This is true if the Connector Def reference has been set.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean connectorDefESet;
+
+ /**
+ * The default value of the '{@link #getRepositoryName() <em>Repository Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRepositoryName()
+ * @generated
+ * @ordered
+ */
+ protected static final String REPOSITORY_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRepositoryName() <em>Repository Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRepositoryName()
+ * @generated
+ * @ordered
+ */
+ protected String repositoryName = REPOSITORY_NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getCdoPackageRegistryDef() <em>Cdo Package Registry Def</em>}' reference. <!--
+ * begin-user-doc -->
+ *
+ * @since 3.0 <!-- end-user-doc -->
+ * @see #getCdoPackageRegistryDef()
+ * @generated
+ * @ordered
+ */
+ protected CDOPackageRegistryDef cdoPackageRegistryDef;
+
+ /**
+ * The default value of the '{@link #isLegacySupportEnabled() <em>Legacy Support Enabled</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isLegacySupportEnabled()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean LEGACY_SUPPORT_ENABLED_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isLegacySupportEnabled() <em>Legacy Support Enabled</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isLegacySupportEnabled()
+ * @generated
+ * @ordered
+ */
+ protected boolean legacySupportEnabled = LEGACY_SUPPORT_ENABLED_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDOSessionDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return CDODefsPackage.Literals.CDO_SESSION_DEF;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public ConnectorDef getConnectorDef()
+ {
+ if (connectorDef != null && connectorDef.eIsProxy())
+ {
+ InternalEObject oldConnectorDef = (InternalEObject)connectorDef;
+ connectorDef = (ConnectorDef)eResolveProxy(oldConnectorDef);
+ if (connectorDef != oldConnectorDef)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF,
+ oldConnectorDef, connectorDef));
+ }
+ }
+ return connectorDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public ConnectorDef basicGetConnectorDef()
+ {
+ return connectorDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> Sets the {@link ConnectorDef} for this {@link CDOSessionDef}. If a
+ * {@link FailOverStrategyDef} was already set, an IllegalStateException is thrown. ConnectorDef and
+ * FailOverStrategyDef are mutually exclusive.
+ *
+ * @throws IllegalStateException
+ * if a {@link FailOverStrategyDef} was set before
+ * @see CDOSessionConfigurationImpl#openSession() <!-- end-user-doc -->
+ * @generated NOT
+ */
+ public void setConnectorDef(ConnectorDef newConnectorDef)
+ {
+ setConnectorDefGen(newConnectorDef);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setConnectorDefGen(ConnectorDef newConnectorDef)
+ {
+ ConnectorDef oldConnectorDef = connectorDef;
+ connectorDef = newConnectorDef;
+ boolean oldConnectorDefESet = connectorDefESet;
+ connectorDefESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF,
+ oldConnectorDef, connectorDef, !oldConnectorDefESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetConnectorDef()
+ {
+ ConnectorDef oldConnectorDef = connectorDef;
+ boolean oldConnectorDefESet = connectorDefESet;
+ connectorDef = null;
+ connectorDefESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF,
+ oldConnectorDef, null, oldConnectorDefESet));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetConnectorDef()
+ {
+ return connectorDefESet;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRepositoryName()
+ {
+ return repositoryName;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRepositoryName(String newRepositoryName)
+ {
+ String oldRepositoryName = repositoryName;
+ repositoryName = newRepositoryName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME,
+ oldRepositoryName, repositoryName));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOPackageRegistryDef getCdoPackageRegistryDef()
+ {
+ if (cdoPackageRegistryDef != null && cdoPackageRegistryDef.eIsProxy())
+ {
+ InternalEObject oldCdoPackageRegistryDef = (InternalEObject)cdoPackageRegistryDef;
+ cdoPackageRegistryDef = (CDOPackageRegistryDef)eResolveProxy(oldCdoPackageRegistryDef);
+ if (cdoPackageRegistryDef != oldCdoPackageRegistryDef)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF, oldCdoPackageRegistryDef, cdoPackageRegistryDef));
+ }
+ }
+ return cdoPackageRegistryDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOPackageRegistryDef basicGetCdoPackageRegistryDef()
+ {
+ return cdoPackageRegistryDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCdoPackageRegistryDef(CDOPackageRegistryDef newCdoPackageRegistryDef)
+ {
+ CDOPackageRegistryDef oldCdoPackageRegistryDef = cdoPackageRegistryDef;
+ cdoPackageRegistryDef = newCdoPackageRegistryDef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF,
+ oldCdoPackageRegistryDef, cdoPackageRegistryDef));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isLegacySupportEnabled()
+ {
+ return legacySupportEnabled;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLegacySupportEnabled(boolean newLegacySupportEnabled)
+ {
+ boolean oldLegacySupportEnabled = legacySupportEnabled;
+ legacySupportEnabled = newLegacySupportEnabled;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED,
+ oldLegacySupportEnabled, legacySupportEnabled));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF:
+ if (resolve)
+ return getConnectorDef();
+ return basicGetConnectorDef();
+ case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME:
+ return getRepositoryName();
+ case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF:
+ if (resolve)
+ return getCdoPackageRegistryDef();
+ return basicGetCdoPackageRegistryDef();
+ case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED:
+ return isLegacySupportEnabled();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF:
+ setConnectorDef((ConnectorDef)newValue);
+ return;
+ case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME:
+ setRepositoryName((String)newValue);
+ return;
+ case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF:
+ setCdoPackageRegistryDef((CDOPackageRegistryDef)newValue);
+ return;
+ case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED:
+ setLegacySupportEnabled((Boolean)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF:
+ unsetConnectorDef();
+ return;
+ case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME:
+ setRepositoryName(REPOSITORY_NAME_EDEFAULT);
+ return;
+ case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF:
+ setCdoPackageRegistryDef((CDOPackageRegistryDef)null);
+ return;
+ case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED:
+ setLegacySupportEnabled(LEGACY_SUPPORT_ENABLED_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_SESSION_DEF__CONNECTOR_DEF:
+ return isSetConnectorDef();
+ case CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME:
+ return REPOSITORY_NAME_EDEFAULT == null ? repositoryName != null : !REPOSITORY_NAME_EDEFAULT
+ .equals(repositoryName);
+ case CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF:
+ return cdoPackageRegistryDef != null;
+ case CDODefsPackage.CDO_SESSION_DEF__LEGACY_SUPPORT_ENABLED:
+ return legacySupportEnabled != LEGACY_SUPPORT_ENABLED_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (repositoryName: ");
+ result.append(repositoryName);
+ result.append(", legacySupportEnabled: ");
+ result.append(legacySupportEnabled);
+ result.append(')');
+ return result.toString();
+ }
+
+ @Override
+ @SuppressWarnings("deprecation")
+ protected CDOSession createInstance()
+ {
+ CDONet4jSessionConfiguration configuration = CDONet4jUtil.createNet4jSessionConfiguration();
+
+ if (isSetConnectorDef())
+ {
+ configuration.setConnector((IConnector)getConnectorDef().getInstance());
+ }
+ configuration.setPackageRegistry((CDOPackageRegistry)getCdoPackageRegistryDef().getInstance());
+ configuration.setRepositoryName(getRepositoryName());
+ return configuration.openSession();
+ }
+
+ @Override
+ protected void validateDefinition()
+ {
+ CheckUtil.checkState //
+ (eIsSet(CDODefsPackage.CDO_SESSION_DEF__REPOSITORY_NAME), "repository name not set yet!");
+ /*
+ * failoverStrategy and connector are mutually exclusive
+ * @see CDOSessionConfiguration#openSession
+ */
+ CheckUtil.checkState(isSetConnectorDef(), "connector not set");
+ // CheckUtil.checkState(getCdoPackageRegistryDef() != null,
+ // "package registry definition is not set!");
+ CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_SESSION_DEF__CDO_PACKAGE_REGISTRY_DEF),
+ "package registry definition is not set!");
+ }
+
+} // CDOSessionDefImpl
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOTransactionDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOTransactionDefImpl.java
index d1c6d81b28..265679c583 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOTransactionDefImpl.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/CDOTransactionDefImpl.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.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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Transaction Def</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class CDOTransactionDefImpl extends CDOViewDefImpl implements CDOTransactionDef
-{
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDOTransactionDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO Transaction Def</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOTransactionDefImpl extends CDOViewDefImpl implements CDOTransactionDef
+{
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDOTransactionDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO View Definition</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl#getCdoSessionDef <em>Cdo Session Def</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CDOViewDefImpl extends DefImpl implements CDOViewDef
-{
-
- /**
- * The cached value of the '{@link #getCdoSessionDef() <em>Cdo Session Def</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCdoSessionDef()
- * @generated
- * @ordered
- */
- protected CDOSessionDef cdoSessionDef;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDOViewDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return CDODefsPackage.Literals.CDO_VIEW_DEF;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOSessionDef getCdoSessionDef()
- {
- if (cdoSessionDef != null && cdoSessionDef.eIsProxy())
- {
- InternalEObject oldCdoSessionDef = (InternalEObject)cdoSessionDef;
- cdoSessionDef = (CDOSessionDef)eResolveProxy(oldCdoSessionDef);
- if (cdoSessionDef != oldCdoSessionDef)
- {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF,
- oldCdoSessionDef, cdoSessionDef));
- }
- }
- return cdoSessionDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDOSessionDef basicGetCdoSessionDef()
- {
- return cdoSessionDef;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setCdoSessionDef(CDOSessionDef newCdoSessionDef)
- {
- CDOSessionDef oldCdoSessionDef = cdoSessionDef;
- cdoSessionDef = newCdoSessionDef;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF,
- oldCdoSessionDef, cdoSessionDef));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF:
- if (resolve)
- return getCdoSessionDef();
- return basicGetCdoSessionDef();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF:
- setCdoSessionDef((CDOSessionDef)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF:
- setCdoSessionDef((CDOSessionDef)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF:
- return cdoSessionDef != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * @ADDED
- */
- @Override
- protected Object createInstance()
- {
- CDOSession cdoSession = (CDOSession)getCdoSessionDef().getInstance();
- return cdoSession.openView();
- }
-
- /**
- * @ADDED
- */
- @Override
- protected void validateDefinition()
- {
- CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF), "no session definition set yet!");
- }
-} // CDOViewDefImpl
+/*
+ * 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.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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>CDO View Definition</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.CDOViewDefImpl#getCdoSessionDef <em>Cdo Session Def</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CDOViewDefImpl extends DefImpl implements CDOViewDef
+{
+
+ /**
+ * The cached value of the '{@link #getCdoSessionDef() <em>Cdo Session Def</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCdoSessionDef()
+ * @generated
+ * @ordered
+ */
+ protected CDOSessionDef cdoSessionDef;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDOViewDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return CDODefsPackage.Literals.CDO_VIEW_DEF;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOSessionDef getCdoSessionDef()
+ {
+ if (cdoSessionDef != null && cdoSessionDef.eIsProxy())
+ {
+ InternalEObject oldCdoSessionDef = (InternalEObject)cdoSessionDef;
+ cdoSessionDef = (CDOSessionDef)eResolveProxy(oldCdoSessionDef);
+ if (cdoSessionDef != oldCdoSessionDef)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF,
+ oldCdoSessionDef, cdoSessionDef));
+ }
+ }
+ return cdoSessionDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDOSessionDef basicGetCdoSessionDef()
+ {
+ return cdoSessionDef;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCdoSessionDef(CDOSessionDef newCdoSessionDef)
+ {
+ CDOSessionDef oldCdoSessionDef = cdoSessionDef;
+ cdoSessionDef = newCdoSessionDef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF,
+ oldCdoSessionDef, cdoSessionDef));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF:
+ if (resolve)
+ return getCdoSessionDef();
+ return basicGetCdoSessionDef();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF:
+ setCdoSessionDef((CDOSessionDef)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF:
+ setCdoSessionDef((CDOSessionDef)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF:
+ return cdoSessionDef != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * @ADDED
+ */
+ @Override
+ protected Object createInstance()
+ {
+ CDOSession cdoSession = (CDOSession)getCdoSessionDef().getInstance();
+ return cdoSession.openView();
+ }
+
+ /**
+ * @ADDED
+ */
+ @Override
+ protected void validateDefinition()
+ {
+ CheckUtil.checkState(eIsSet(CDODefsPackage.CDO_VIEW_DEF__CDO_SESSION_DEF), "no session definition set yet!");
+ }
+} // CDOViewDefImpl
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EDynamicPackageDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EDynamicPackageDefImpl.java
index 8de93c8a9f..0db0ea5d66 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EDynamicPackageDefImpl.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EDynamicPackageDefImpl.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.EDynamicPackageDef;
-
-import org.eclipse.net4j.util.CheckUtil;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Dynamic CDO Package Def</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl#getResourceURI <em>Resource URI</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class EDynamicPackageDefImpl extends EPackageDefImpl implements EDynamicPackageDef
-{
- /**
- * The default value of the '{@link #getResourceURI() <em>Resource URI</em>}' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see #getResourceURI()
- * @generated
- * @ordered
- */
- protected static final String RESOURCE_URI_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getResourceURI() <em>Resource URI</em>}' attribute.
- * <!-- begin-user-doc --> <!--
- * end-user-doc -->
- * @see #getResourceURI()
- * @generated
- * @ordered
- */
- protected String resourceURI = RESOURCE_URI_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected EDynamicPackageDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return CDODefsPackage.Literals.EDYNAMIC_PACKAGE_DEF;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public String getResourceURI()
- {
- return resourceURI;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setResourceURI(String newResourceURI)
- {
- String oldResourceURI = resourceURI;
- resourceURI = newResourceURI;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI,
- oldResourceURI, resourceURI));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI:
- return getResourceURI();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI:
- setResourceURI((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI:
- setResourceURI(RESOURCE_URI_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI:
- return RESOURCE_URI_EDEFAULT == null ? resourceURI != null : !RESOURCE_URI_EDEFAULT.equals(resourceURI);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (resourceURI: ");
- result.append(resourceURI);
- result.append(')');
- return result.toString();
- }
-
- /**
- * @ADDED
- */
- @Override
- protected Object createInstance()
- {
- throw new UnsupportedOperationException("not implemented yet!");
- }
-
- /**
- * @ADDED
- */
- @Override
- protected void validateDefinition()
- {
- CheckUtil.checkState(eIsSet(CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI), "resource uri not set!");
- }
-
-} // DynamicEPackageDefImpl
+/*
+ * 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.EDynamicPackageDef;
+
+import org.eclipse.net4j.util.CheckUtil;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Dynamic CDO Package Def</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.EDynamicPackageDefImpl#getResourceURI <em>Resource URI</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EDynamicPackageDefImpl extends EPackageDefImpl implements EDynamicPackageDef
+{
+ /**
+ * The default value of the '{@link #getResourceURI() <em>Resource URI</em>}' attribute.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @see #getResourceURI()
+ * @generated
+ * @ordered
+ */
+ protected static final String RESOURCE_URI_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getResourceURI() <em>Resource URI</em>}' attribute.
+ * <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ * @see #getResourceURI()
+ * @generated
+ * @ordered
+ */
+ protected String resourceURI = RESOURCE_URI_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected EDynamicPackageDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return CDODefsPackage.Literals.EDYNAMIC_PACKAGE_DEF;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public String getResourceURI()
+ {
+ return resourceURI;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setResourceURI(String newResourceURI)
+ {
+ String oldResourceURI = resourceURI;
+ resourceURI = newResourceURI;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI,
+ oldResourceURI, resourceURI));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI:
+ return getResourceURI();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI:
+ setResourceURI((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI:
+ setResourceURI(RESOURCE_URI_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI:
+ return RESOURCE_URI_EDEFAULT == null ? resourceURI != null : !RESOURCE_URI_EDEFAULT.equals(resourceURI);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (resourceURI: ");
+ result.append(resourceURI);
+ result.append(')');
+ return result.toString();
+ }
+
+ /**
+ * @ADDED
+ */
+ @Override
+ protected Object createInstance()
+ {
+ throw new UnsupportedOperationException("not implemented yet!");
+ }
+
+ /**
+ * @ADDED
+ */
+ @Override
+ protected void validateDefinition()
+ {
+ CheckUtil.checkState(eIsSet(CDODefsPackage.EDYNAMIC_PACKAGE_DEF__RESOURCE_URI), "resource uri not set!");
+ }
+
+} // DynamicEPackageDefImpl
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EGlobalPackageDefImpl.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EGlobalPackageDefImpl.java
index e54f3fa328..a4f83c4de0 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EGlobalPackageDefImpl.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/impl/EGlobalPackageDefImpl.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.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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Native CDO Package Def</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class EGlobalPackageDefImpl extends EPackageDefImpl implements EGlobalPackageDef
-{
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected EGlobalPackageDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Native CDO Package Def</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class EGlobalPackageDefImpl extends EPackageDefImpl implements EGlobalPackageDef
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected EGlobalPackageDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @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;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '<em><b>CDO Package Def</b></em>'. <!-- end-user-doc
- * -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.cdo.defs.impl.EPackageDefImpl#getNsURI <em>Ns URI</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class EPackageDefImpl extends DefImpl implements EPackageDef
-{
- /**
- * The default value of the '{@link #getNsURI() <em>Ns URI</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getNsURI()
- * @generated
- * @ordered
- */
- protected static final String NS_URI_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getNsURI() <em>Ns URI</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @see #getNsURI()
- * @generated
- * @ordered
- */
- protected String nsURI = NS_URI_EDEFAULT;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected EPackageDefImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return CDODefsPackage.Literals.EPACKAGE_DEF;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public String getNsURI()
- {
- return nsURI;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public void setNsURI(String newNsURI)
- {
- String oldNsURI = nsURI;
- nsURI = newNsURI;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.EPACKAGE_DEF__NS_URI, oldNsURI, nsURI));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case CDODefsPackage.EPACKAGE_DEF__NS_URI:
- return getNsURI();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case CDODefsPackage.EPACKAGE_DEF__NS_URI:
- setNsURI((String)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.EPACKAGE_DEF__NS_URI:
- setNsURI(NS_URI_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case CDODefsPackage.EPACKAGE_DEF__NS_URI:
- return NS_URI_EDEFAULT == null ? nsURI != null : !NS_URI_EDEFAULT.equals(nsURI);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy())
- return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (nsURI: ");
- result.append(nsURI);
- result.append(')');
- return result.toString();
- }
-
- /**
- * @ADDED
- */
- @Override
- protected void validateDefinition()
- {
- CheckUtil.checkState(eIsSet(CDODefsPackage.EPACKAGE_DEF__NS_URI) //
- && URI.create(getNsURI()) != null, "nsURI not set or invalid!");
- }
-
-} // EPackageDefImpl
+/*
+ * 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.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;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>CDO Package Def</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.defs.impl.EPackageDefImpl#getNsURI <em>Ns URI</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public abstract class EPackageDefImpl extends DefImpl implements EPackageDef
+{
+ /**
+ * The default value of the '{@link #getNsURI() <em>Ns URI</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getNsURI()
+ * @generated
+ * @ordered
+ */
+ protected static final String NS_URI_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getNsURI() <em>Ns URI</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @see #getNsURI()
+ * @generated
+ * @ordered
+ */
+ protected String nsURI = NS_URI_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected EPackageDefImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return CDODefsPackage.Literals.EPACKAGE_DEF;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public String getNsURI()
+ {
+ return nsURI;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public void setNsURI(String newNsURI)
+ {
+ String oldNsURI = nsURI;
+ nsURI = newNsURI;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CDODefsPackage.EPACKAGE_DEF__NS_URI, oldNsURI, nsURI));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.EPACKAGE_DEF__NS_URI:
+ return getNsURI();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.EPACKAGE_DEF__NS_URI:
+ setNsURI((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.EPACKAGE_DEF__NS_URI:
+ setNsURI(NS_URI_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case CDODefsPackage.EPACKAGE_DEF__NS_URI:
+ return NS_URI_EDEFAULT == null ? nsURI != null : !NS_URI_EDEFAULT.equals(nsURI);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (nsURI: ");
+ result.append(nsURI);
+ result.append(')');
+ return result.toString();
+ }
+
+ /**
+ * @ADDED
+ */
+ @Override
+ protected void validateDefinition()
+ {
+ CheckUtil.checkState(eIsSet(CDODefsPackage.EPACKAGE_DEF__NS_URI) //
+ && URI.create(getNsURI()) != null, "nsURI not set or invalid!");
+ }
+
+} // EPackageDefImpl
diff --git a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsAdapterFactory.java b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsAdapterFactory.java
index d8efa4321f..5ac2284bf3 100644
--- a/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsAdapterFactory.java
+++ b/plugins/org.eclipse.emf.cdo.defs/src/org/eclipse/emf/cdo/defs/util/CDODefsAdapterFactory.java
@@ -1,422 +1,422 @@
-/*
- * 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.*;
-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;
-
-/**
- * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
- * method for each class of the model. <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage
- * @generated
- */
-public class CDODefsAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected static CDODefsPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- public CDODefsAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = CDODefsPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc --> This implementation
- * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
- * end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
- protected CDODefsSwitch<Adapter> modelSwitch = new CDODefsSwitch<Adapter>()
- {
- @Override
- public Adapter caseCDOViewDef(CDOViewDef object)
- {
- return createCDOViewDefAdapter();
- }
-
- @Override
- public Adapter caseCDOTransactionDef(CDOTransactionDef object)
- {
- return createCDOTransactionDefAdapter();
- }
-
- @Override
- public Adapter caseCDOAuditDef(CDOAuditDef object)
- {
- return createCDOAuditDefAdapter();
- }
-
- @Override
- public Adapter caseCDOSessionDef(CDOSessionDef object)
- {
- return createCDOSessionDefAdapter();
- }
-
- @Override
- public Adapter caseCDOPackageRegistryDef(CDOPackageRegistryDef object)
- {
- return createCDOPackageRegistryDefAdapter();
- }
-
- @Override
- public Adapter caseCDOEagerPackageRegistryDef(CDOEagerPackageRegistryDef object)
- {
- return createCDOEagerPackageRegistryDefAdapter();
- }
-
- @Override
- public Adapter caseCDOLazyPackageRegistryDef(CDOLazyPackageRegistryDef object)
- {
- return createCDOLazyPackageRegistryDefAdapter();
- }
-
- @Override
- public Adapter caseEPackageDef(EPackageDef object)
- {
- return createEPackageDefAdapter();
- }
-
- @Override
- public Adapter caseEDynamicPackageDef(EDynamicPackageDef object)
- {
- return createEDynamicPackageDefAdapter();
- }
-
- @Override
- public Adapter caseEGlobalPackageDef(EGlobalPackageDef object)
- {
- return createEGlobalPackageDefAdapter();
- }
-
- @Override
- public Adapter caseCDOClientProtocolFactoryDef(CDOClientProtocolFactoryDef object)
- {
- return createCDOClientProtocolFactoryDefAdapter();
- }
-
- @Override
- public Adapter caseCDOResourceDef(CDOResourceDef object)
- {
- return createCDOResourceDefAdapter();
- }
-
- @Override
- public Adapter caseDef(Def object)
- {
- return createDefAdapter();
- }
-
- @Override
- public Adapter caseProtocolProviderDef(ProtocolProviderDef object)
- {
- return createProtocolProviderDefAdapter();
- }
-
- @Override
- public Adapter caseClientProtocolFactoryDef(ClientProtocolFactoryDef object)
- {
- return createClientProtocolFactoryDefAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOViewDef <em>CDO View Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>CDO Transaction Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can
- * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>CDO Audit Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>CDO Session Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can easily
- * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>CDO Package Registry Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>CDO Eager Package Registry Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>CDO Lazy Package Registry Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>EPackage Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>EDynamic Package Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can
- * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>EGlobal Package Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can
- * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>CDO Client Protocol Factory Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so
- * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>CDO Resource Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can easily
- * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>Def</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
- * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.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 <em>Protocol Provider Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we can
- * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @see org.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 <em>Client Protocol Factory Def</em>}'.
- * <!-- begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.net4j.defs.ClientProtocolFactoryDef
- * @generated
- */
- public Adapter createClientProtocolFactoryDefAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc --> This default implementation returns null. <!--
- * end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} // 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;
+
+/**
+ * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
+ * method for each class of the model. <!-- end-user-doc -->
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage
+ * @generated
+ */
+public class CDODefsAdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected static CDODefsPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ public CDODefsAdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = CDODefsPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc --> This implementation
+ * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
+ * end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object)
+ {
+ if (object == modelPackage)
+ {
+ return true;
+ }
+ if (object instanceof EObject)
+ {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
+ protected CDODefsSwitch<Adapter> modelSwitch = new CDODefsSwitch<Adapter>()
+ {
+ @Override
+ public Adapter caseCDOViewDef(CDOViewDef object)
+ {
+ return createCDOViewDefAdapter();
+ }
+
+ @Override
+ public Adapter caseCDOTransactionDef(CDOTransactionDef object)
+ {
+ return createCDOTransactionDefAdapter();
+ }
+
+ @Override
+ public Adapter caseCDOAuditDef(CDOAuditDef object)
+ {
+ return createCDOAuditDefAdapter();
+ }
+
+ @Override
+ public Adapter caseCDOSessionDef(CDOSessionDef object)
+ {
+ return createCDOSessionDefAdapter();
+ }
+
+ @Override
+ public Adapter caseCDOPackageRegistryDef(CDOPackageRegistryDef object)
+ {
+ return createCDOPackageRegistryDefAdapter();
+ }
+
+ @Override
+ public Adapter caseCDOEagerPackageRegistryDef(CDOEagerPackageRegistryDef object)
+ {
+ return createCDOEagerPackageRegistryDefAdapter();
+ }
+
+ @Override
+ public Adapter caseCDOLazyPackageRegistryDef(CDOLazyPackageRegistryDef object)
+ {
+ return createCDOLazyPackageRegistryDefAdapter();
+ }
+
+ @Override
+ public Adapter caseEPackageDef(EPackageDef object)
+ {
+ return createEPackageDefAdapter();
+ }
+
+ @Override
+ public Adapter caseEDynamicPackageDef(EDynamicPackageDef object)
+ {
+ return createEDynamicPackageDefAdapter();
+ }
+
+ @Override
+ public Adapter caseEGlobalPackageDef(EGlobalPackageDef object)
+ {
+ return createEGlobalPackageDefAdapter();
+ }
+
+ @Override
+ public Adapter caseCDOClientProtocolFactoryDef(CDOClientProtocolFactoryDef object)
+ {
+ return createCDOClientProtocolFactoryDefAdapter();
+ }
+
+ @Override
+ public Adapter caseCDOResourceDef(CDOResourceDef object)
+ {
+ return createCDOResourceDefAdapter();
+ }
+
+ @Override
+ public Adapter caseDef(Def object)
+ {
+ return createDefAdapter();
+ }
+
+ @Override
+ public Adapter caseProtocolProviderDef(ProtocolProviderDef object)
+ {
+ return createProtocolProviderDefAdapter();
+ }
+
+ @Override
+ public Adapter caseClientProtocolFactoryDef(ClientProtocolFactoryDef object)
+ {
+ return createClientProtocolFactoryDefAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object)
+ {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.defs.CDOViewDef <em>CDO View Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>CDO Transaction Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>CDO Audit Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>CDO Session Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>CDO Package Registry Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>CDO Eager Package Registry Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>CDO Lazy Package Registry Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that
+ * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>EPackage Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>EDynamic Package Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>EGlobal Package Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>CDO Client Protocol Factory Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so
+ * that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>CDO Resource Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>Def</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.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 <em>Protocol Provider Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @see org.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 <em>Client Protocol Factory Def</em>}'.
+ * <!-- begin-user-doc --> This default implementation returns null so that we
+ * can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.net4j.defs.ClientProtocolFactoryDef
+ * @generated
+ */
+ public Adapter createClientProtocolFactoryDefAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc --> This default implementation returns null. <!--
+ * end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} // 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;
-
-/**
- * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call
- * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
- * returned, which is the result of the switch. <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.cdo.defs.CDODefsPackage
- * @generated
- */
-public class CDODefsSwitch<T>
-{
- /**
- * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected static CDODefsPackage modelPackage;
-
- /**
- * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public CDODefsSwitch()
- {
- if (modelPackage == null)
- {
- modelPackage = CDODefsPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject)
- {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject)
- {
- if (theEClass.eContainer() == modelPackage)
- {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else
- {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case 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 '<em>CDO View Def</em>'. <!-- begin-user-doc -->
- * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO View Def</em>'.
- * @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 '<em>CDO Transaction Def</em>'. <!-- begin-user-doc
- * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO Transaction Def</em>'.
- * @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 '<em>CDO Audit Def</em>'. <!-- begin-user-doc -->
- * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO Audit Def</em>'.
- * @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 '<em>CDO Session Def</em>'. <!-- begin-user-doc -->
- * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO Session Def</em>'.
- * @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 '<em>CDO Package Registry Def</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO Package Registry Def</em>'.
- * @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 '<em>CDO Eager Package Registry Def</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO Eager Package Registry Def</em>'.
- * @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 '<em>CDO Lazy Package Registry Def</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO Lazy Package Registry Def</em>'.
- * @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 '<em>EPackage Def</em>'. <!-- begin-user-doc -->
- * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EPackage Def</em>'.
- * @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 '<em>EDynamic Package Def</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EDynamic Package Def</em>'.
- * @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 '<em>EGlobal Package Def</em>'. <!-- begin-user-doc
- * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EGlobal Package Def</em>'.
- * @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 '<em>CDO Client Protocol Factory Def</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO Client Protocol Factory Def</em>'.
- * @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 '<em>CDO Resource Def</em>'. <!-- begin-user-doc
- * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>CDO Resource Def</em>'.
- * @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 '<em>Def</em>'. <!-- begin-user-doc --> This
- * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Def</em>'.
- * @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 '<em>Protocol Provider Def</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Protocol Provider Def</em>'.
- * @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 '<em>Client Protocol Factory Def</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Client Protocol Factory Def</em>'.
- * @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 '<em>EObject</em>'. <!-- begin-user-doc --> This
- * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
- * anyway. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} // 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;
+
+/**
+ * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call
+ * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
+ * returned, which is the result of the switch. <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.defs.CDODefsPackage
+ * @generated
+ */
+public class CDODefsSwitch<T>
+{
+ /**
+ * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static CDODefsPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public CDODefsSwitch()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = CDODefsPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject)
+ {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject)
+ {
+ if (theEClass.eContainer() == modelPackage)
+ {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else
+ {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case 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 '<em>CDO View Def</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO View Def</em>'.
+ * @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 '<em>CDO Transaction Def</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO Transaction Def</em>'.
+ * @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 '<em>CDO Audit Def</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO Audit Def</em>'.
+ * @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 '<em>CDO Session Def</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO Session Def</em>'.
+ * @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 '<em>CDO Package Registry Def</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO Package Registry Def</em>'.
+ * @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 '<em>CDO Eager Package Registry Def</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO Eager Package Registry Def</em>'.
+ * @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 '<em>CDO Lazy Package Registry Def</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO Lazy Package Registry Def</em>'.
+ * @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 '<em>EPackage Def</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EPackage Def</em>'.
+ * @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 '<em>EDynamic Package Def</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EDynamic Package Def</em>'.
+ * @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 '<em>EGlobal Package Def</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EGlobal Package Def</em>'.
+ * @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 '<em>CDO Client Protocol Factory Def</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO Client Protocol Factory Def</em>'.
+ * @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 '<em>CDO Resource Def</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>CDO Resource Def</em>'.
+ * @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 '<em>Def</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Def</em>'.
+ * @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 '<em>Protocol Provider Def</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Protocol Provider Def</em>'.
+ * @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 '<em>Client Protocol Factory Def</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Client Protocol Factory Def</em>'.
+ * @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 '<em>EObject</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
+ * anyway. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
+
+} // 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;
+ }
+
+}

Back to the top