Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory')
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.classpath7
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.cvsignore1
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.project28
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.core.resources.prefs3
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.jdt.core.prefs332
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.jdt.ui.prefs58
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/Based_on_GenClassImpl.getListConstructor_2.2.1.v200609210005.txt139
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/META-INF/MANIFEST.MF13
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.html24
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.ini17
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.properties46
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/build.properties19
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/copyright.txt8
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/epl-v10.html320
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/license.html319
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/modeling32.pngbin0 -> 2414 bytes
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/plugin.properties14
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/BasicEListFactoryImpl.java532
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/EElementUtil.java242
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/EListFactory.java295
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/ExtendedMetaDataUtil.java54
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/internal/messages/Messages.java22
-rwxr-xr-xeclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/internal/messages/messages.properties8
23 files changed, 2501 insertions, 0 deletions
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.classpath b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.classpath
new file mode 100755
index 000000000..64c5e31b7
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.cvsignore b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.cvsignore
new file mode 100755
index 000000000..ba077a403
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.cvsignore
@@ -0,0 +1 @@
+bin
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.project b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.project
new file mode 100755
index 000000000..c02992a11
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.emf.teneo.eclipselink.elistfactory</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.core.resources.prefs b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.core.resources.prefs
new file mode 100755
index 000000000..03710d336
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
+#Tue Oct 12 14:12:28 CEST 2004
+eclipse.preferences.version=1
+
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.jdt.core.prefs b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.jdt.core.prefs
new file mode 100755
index 000000000..dc287ee43
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,332 @@
+#Mon Feb 08 06:56:48 CET 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=120
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.jdt.ui.prefs b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.jdt.ui.prefs
new file mode 100755
index 000000000..5b2edb475
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,58 @@
+#Wed Jan 21 22:44:02 CET 2009
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_Teneo
+formatter_settings_version=11
+internal.default.compliance=default
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><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_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=true
+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=true
+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=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/Based_on_GenClassImpl.getListConstructor_2.2.1.v200609210005.txt b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/Based_on_GenClassImpl.getListConstructor_2.2.1.v200609210005.txt
new file mode 100755
index 000000000..3409e151e
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/Based_on_GenClassImpl.getListConstructor_2.2.1.v200609210005.txt
@@ -0,0 +1,139 @@
+ public String getListConstructor(GenFeature genFeature)
+ {
+ StringBuffer sb = new StringBuffer();
+
+ String unsettable = genFeature.isUnsettable() ? ".Unsettable" : "";
+
+ if (genFeature.isMapType())
+ {
+ GenClass mapGenClass = genFeature.getMapEntryTypeGenClass();
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EcoreEMap"));
+ sb.append(unsettable);
+ sb.append("(");
+ sb.append(mapGenClass.getQualifiedClassifierAccessor());
+ sb.append(", ");
+ sb.append(genFeature.getImportedMapEntryType());
+ sb.append(".class, this, ");
+ sb.append(getQualifiedFeatureID(genFeature));
+ sb.append(")");
+ }
+ else if (genFeature.isFeatureMapType())
+ {
+ if (genFeature.isWrappedFeatureMapType())
+ {
+ sb.append(genFeature.getImportedEffectiveFeatureMapWrapperClass());
+ sb.append("(new ");
+ }
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.BasicFeatureMap"));
+ sb.append("(this, ");
+ sb.append(getQualifiedFeatureID(genFeature));
+ sb.append(")");
+ if (genFeature.isWrappedFeatureMapType())
+ {
+ sb.append(")");
+ }
+ }
+ else if (getGenModel().isSuppressNotification())
+ {
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.BasicInternalEList"));
+ sb.append("(");
+ sb.append(genFeature.getListItemType());
+ sb.append(".class)");
+ }
+ else if (genFeature.isEffectiveContains())
+ {
+ if (genFeature.isBidirectional())
+ {
+ GenFeature reverseFeature = genFeature.getReverse();
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList"));
+ sb.append(unsettable);
+ if (genFeature.isResolveProxies())
+ {
+ sb.append(".Resolving");
+ }
+ sb.append("(");
+ sb.append(genFeature.getListItemType());
+ sb.append(".class, this, ");
+ sb.append(getQualifiedFeatureID(genFeature));
+ sb.append(", ");
+ sb.append(reverseFeature.getGenClass().getQualifiedFeatureID(reverseFeature));
+ sb.append(")");
+ }
+ else
+ {
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EObjectContainmentEList"));
+ sb.append(unsettable);
+ if (genFeature.isResolveProxies())
+ {
+ sb.append(".Resolving");
+ }
+ sb.append("(");
+ sb.append(genFeature.getListItemType());
+ sb.append(".class, this, ");
+ sb.append(getQualifiedFeatureID(genFeature));
+ sb.append(")");
+ }
+ }
+ else if (genFeature.isReferenceType())
+ {
+ if (genFeature.isBidirectional())
+ {
+ GenFeature reverseFeature = genFeature.getReverse();
+ if (genFeature.isResolveProxies())
+ {
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList"));
+ }
+ else
+ {
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EObjectWithInverseEList"));
+ }
+ sb.append(unsettable);
+ if (reverseFeature.isListType())
+ {
+ sb.append(".ManyInverse");
+ }
+ sb.append("(");
+ sb.append(genFeature.getListItemType());
+ sb.append(".class, this, ");
+ sb.append(getQualifiedFeatureID(genFeature));
+ sb.append(", ");
+ sb.append(reverseFeature.getGenClass().getQualifiedFeatureID(reverseFeature));
+ sb.append(")");
+ }
+ else
+ {
+ if (genFeature.isResolveProxies())
+ {
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EObjectResolvingEList"));
+ }
+ else
+ {
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EObjectEList"));
+ }
+ sb.append(unsettable);
+ sb.append("(");
+ sb.append(genFeature.getListItemType());
+ sb.append(".class, this, ");
+ sb.append(getQualifiedFeatureID(genFeature));
+ sb.append(")");
+ }
+ }
+ else
+ { //datatype
+ if (genFeature.isUnique())
+ {
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EDataTypeUniqueEList"));
+ }
+ else
+ {
+ sb.append(getGenModel().getImportedName("org.eclipse.emf.ecore.util.EDataTypeEList"));
+ }
+ sb.append(unsettable);
+ sb.append("(");
+ sb.append(genFeature.getListItemType());
+ sb.append(".class, this, ");
+ sb.append(getQualifiedFeatureID(genFeature));
+ sb.append(")");
+ }
+ return sb.toString();
+ }
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/META-INF/MANIFEST.MF b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/META-INF/MANIFEST.MF
new file mode 100755
index 000000000..2d2459402
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/META-INF/MANIFEST.MF
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.emf.teneo.eclipselink.elistfactory;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.emf.ecore
+Export-Package: org.eclipse.emf.teneo.eclipselink.elistfactory,
+ org.eclipse.emf.teneo.eclipselink.elistfactory.internal.messages;x-internal:=true
+Bundle-ActivationPolicy: lazy
+Bundle-Vendor: %providerName
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.html b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.html
new file mode 100755
index 000000000..5a279453c
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head>
+
+
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>About</title></head><body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body></html> \ No newline at end of file
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.ini b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.ini
new file mode 100755
index 000000000..1d17e5539
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.ini
@@ -0,0 +1,17 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%featureText
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=modeling32.png
+
+# Property "appName" contains name of the application (translated)
+appName=%featureName
+
+# Property "welcomePage" contains path to welcome page (special XML-based format)
+#welcomePage=$nl$/welcome.xml
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.properties b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.properties
new file mode 100755
index 000000000..bb46fb9c4
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/about.properties
@@ -0,0 +1,46 @@
+#/**
+# * <copyright>
+# *
+# * Copyright (c) 2008-2009 Oracle and Geensys.
+# * 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:
+# * Oracle and Geensys - initial API and implementation
+# *
+# * </copyright>
+# *
+# * $Id: about.properties,v 1.1 2009/01/23 21:51:41 mtaal Exp $
+# */
+
+# 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.
+# ==============================================================================
+
+# about.properties
+# contains externalized strings for about.ini
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# fill-ins are supplied by about.mappings
+# This file should be translated.
+
+featureName=EMF Teneo EclipseLink EListFactory Plug-in
+
+featureText=EMF Teneo EclipseLink EListFactory Plug-in \n\
+Version: {featureVersion}\n\
+Build id: {0}\n\
+\n\
+(c) Copyright (c) 2008-2009 Oracle and Geensys. All rights reserved.\n\
+\n\
+Visit http://www.eclipse.org/emf
+
+# ==============================================================================
+# %%% END OF TRANSLATED PROPERTIES %%%
+# The above properties have been shipped for translation.
+# ==============================================================================
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/build.properties b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/build.properties
new file mode 100755
index 000000000..1c0fa7193
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/build.properties
@@ -0,0 +1,19 @@
+bin.includes = epl-v10.html,\
+ modeling32.png,\
+ about.ini,\
+ about.properties,\
+ copyright.txt,\
+ about.html,\
+ build.properties,\
+ plugin.properties,\
+ META-INF/,\
+ .
+source.. = src/
+output.. = bin/
+src.includes = about.html,\
+ about.ini,\
+ about.properties,\
+ copyright.txt,\
+ epl-v10.html,\
+ license.html,\
+ modeling32.png
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/copyright.txt b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/copyright.txt
new file mode 100755
index 000000000..a37ef444a
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/copyright.txt
@@ -0,0 +1,8 @@
+Copyright (c) 2008-2009 Oracle and Geensys.
+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:
+ Oracle and Geensys - initial API and implementation
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/epl-v10.html b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/epl-v10.html
new file mode 100755
index 000000000..62b1f6f04
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/epl-v10.html
@@ -0,0 +1,320 @@
+<html xmlns:o="urn:schemas-microsoft-com:office:office"
+xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head>
+<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
+<meta name="ProgId" content="Word.Document">
+<meta name="Generator" content="Microsoft Word 9">
+<meta name="Originator" content="Microsoft Word 9">
+<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml>
+ <o:DocumentProperties>
+ <o:Revision>2</o:Revision>
+ <o:TotalTime>3</o:TotalTime>
+ <o:Created>2004-03-05T23:03:00Z</o:Created>
+ <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved>
+ <o:Pages>4</o:Pages>
+ <o:Words>1626</o:Words>
+ <o:Characters>9270</o:Characters>
+ <o:Lines>77</o:Lines>
+ <o:Paragraphs>18</o:Paragraphs>
+ <o:CharactersWithSpaces>11384</o:CharactersWithSpaces>
+ <o:Version>9.4402</o:Version>
+ </o:DocumentProperties>
+</xml><![endif]--><!--[if gte mso 9]><xml>
+ <w:WordDocument>
+ <w:TrackRevisions/>
+ </w:WordDocument>
+</xml><![endif]-->
+
+
+<style>
+<!--
+ /* Font Definitions */
+@font-face
+ {font-family:Tahoma;
+ panose-1:2 11 6 4 3 5 4 4 2 4;
+ mso-font-charset:0;
+ mso-generic-font-family:swiss;
+ mso-font-pitch:variable;
+ mso-font-signature:553679495 -2147483648 8 0 66047 0;}
+ /* Style Definitions */
+p.MsoNormal, li.MsoNormal, div.MsoNormal
+ {mso-style-parent:"";
+ margin:0in;
+ margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:"Times New Roman";}
+p
+ {margin-right:0in;
+ mso-margin-top-alt:auto;
+ mso-margin-bottom-alt:auto;
+ margin-left:0in;
+ mso-pagination:widow-orphan;
+ font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:"Times New Roman";}
+p.BalloonText, li.BalloonText, div.BalloonText
+ {mso-style-name:"Balloon Text";
+ margin:0in;
+ margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:8.0pt;
+ font-family:Tahoma;
+ mso-fareast-font-family:"Times New Roman";}
+@page Section1
+ {size:8.5in 11.0in;
+ margin:1.0in 1.25in 1.0in 1.25in;
+ mso-header-margin:.5in;
+ mso-footer-margin:.5in;
+ mso-paper-source:0;}
+div.Section1
+ {page:Section1;}
+-->
+</style></head>
+
+<body style="" lang="EN-US">
+
+<div class="Section1">
+
+<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b>
+</p>
+
+<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
+THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE,
+REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
+OF THIS AGREEMENT.</span> </p>
+
+<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p>
+
+<p><span style="font-size: 10pt;">"Contribution" means:</span> </p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a)
+in the case of the initial Contributor, the initial code and documentation
+distributed under this Agreement, and<br clear="left">
+b) in the case of each subsequent Contributor:</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i)
+changes to the Program, and</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii)
+additions to the Program;</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where
+such changes and/or additions to the Program originate from and are distributed
+by that particular Contributor. A Contribution 'originates' from a Contributor
+if it was added to the Program by such Contributor itself or anyone acting on
+such Contributor's behalf. Contributions do not include additions to the
+Program which: (i) are separate modules of software distributed in conjunction
+with the Program under their own license agreement, and (ii) are not derivative
+works of the Program. </span></p>
+
+<p><span style="font-size: 10pt;">"Contributor" means any person or
+entity that distributes the Program.</span> </p>
+
+<p><span style="font-size: 10pt;">"Licensed Patents " mean patent
+claims licensable by a Contributor which are necessarily infringed by the use
+or sale of its Contribution alone or when combined with the Program. </span></p>
+
+<p><span style="font-size: 10pt;">"Program" means the Contributions
+distributed in accordance with this Agreement.</span> </p>
+
+<p><span style="font-size: 10pt;">"Recipient" means anyone who
+receives the Program under this Agreement, including all Contributors.</span> </p>
+
+<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a)
+Subject to the terms of this Agreement, each Contributor hereby grants Recipient
+a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly
+display, publicly perform, distribute and sublicense the Contribution of such
+Contributor, if any, and such derivative works, in source code and object code
+form.</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b)
+Subject to the terms of this Agreement, each Contributor hereby grants
+Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free
+patent license under Licensed Patents to make, use, sell, offer to sell, import
+and otherwise transfer the Contribution of such Contributor, if any, in source
+code and object code form. This patent license shall apply to the combination
+of the Contribution and the Program if, at the time the Contribution is added
+by the Contributor, such addition of the Contribution causes such combination
+to be covered by the Licensed Patents. The patent license shall not apply to
+any other combinations which include the Contribution. No hardware per se is
+licensed hereunder. </span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c)
+Recipient understands that although each Contributor grants the licenses to its
+Contributions set forth herein, no assurances are provided by any Contributor
+that the Program does not infringe the patent or other intellectual property
+rights of any other entity. Each Contributor disclaims any liability to Recipient
+for claims brought by any other entity based on infringement of intellectual
+property rights or otherwise. As a condition to exercising the rights and
+licenses granted hereunder, each Recipient hereby assumes sole responsibility
+to secure any other intellectual property rights needed, if any. For example,
+if a third party patent license is required to allow Recipient to distribute
+the Program, it is Recipient's responsibility to acquire that license before
+distributing the Program.</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d)
+Each Contributor represents that to its knowledge it has sufficient copyright
+rights in its Contribution, if any, to grant the copyright license set forth in
+this Agreement. </span></p>
+
+<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p>
+
+<p><span style="font-size: 10pt;">A Contributor may choose to distribute the
+Program in object code form under its own license agreement, provided that:</span>
+</p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a)
+it complies with the terms and conditions of this Agreement; and</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b)
+its license agreement:</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i)
+effectively disclaims on behalf of all Contributors all warranties and
+conditions, express and implied, including warranties or conditions of title
+and non-infringement, and implied warranties or conditions of merchantability
+and fitness for a particular purpose; </span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii)
+effectively excludes on behalf of all Contributors all liability for damages,
+including direct, indirect, special, incidental and consequential damages, such
+as lost profits; </span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii)
+states that any provisions which differ from this Agreement are offered by that
+Contributor alone and not by any other party; and</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv)
+states that source code for the Program is available from such Contributor, and
+informs licensees how to obtain it in a reasonable manner on or through a
+medium customarily used for software exchange.<span style="color: blue;"> </span></span></p>
+
+<p><span style="font-size: 10pt;">When the Program is made available in source
+code form:</span> </p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a)
+it must be made available under this Agreement; and </span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a
+copy of this Agreement must be included with each copy of the Program. </span></p>
+
+<p><span style="font-size: 10pt;">Contributors may not remove or alter any
+copyright notices contained within the Program. </span></p>
+
+<p><span style="font-size: 10pt;">Each Contributor must identify itself as the
+originator of its Contribution, if any, in a manner that reasonably allows
+subsequent Recipients to identify the originator of the Contribution. </span></p>
+
+<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p>
+
+<p><span style="font-size: 10pt;">Commercial distributors of software may
+accept certain responsibilities with respect to end users, business partners
+and the like. While this license is intended to facilitate the commercial use
+of the Program, the Contributor who includes the Program in a commercial
+product offering should do so in a manner which does not create potential
+liability for other Contributors. Therefore, if a Contributor includes the
+Program in a commercial product offering, such Contributor ("Commercial
+Contributor") hereby agrees to defend and indemnify every other
+Contributor ("Indemnified Contributor") against any losses, damages and
+costs (collectively "Losses") arising from claims, lawsuits and other
+legal actions brought by a third party against the Indemnified Contributor to
+the extent caused by the acts or omissions of such Commercial Contributor in
+connection with its distribution of the Program in a commercial product
+offering. The obligations in this section do not apply to any claims or Losses
+relating to any actual or alleged intellectual property infringement. In order
+to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
+Contributor in writing of such claim, and b) allow the Commercial Contributor
+to control, and cooperate with the Commercial Contributor in, the defense and
+any related settlement negotiations. The Indemnified Contributor may participate
+in any such claim at its own expense.</span> </p>
+
+<p><span style="font-size: 10pt;">For example, a Contributor might include the
+Program in a commercial product offering, Product X. That Contributor is then a
+Commercial Contributor. If that Commercial Contributor then makes performance
+claims, or offers warranties related to Product X, those performance claims and
+warranties are such Commercial Contributor's responsibility alone. Under this
+section, the Commercial Contributor would have to defend claims against the
+other Contributors related to those performance claims and warranties, and if a
+court requires any other Contributor to pay any damages as a result, the
+Commercial Contributor must pay those damages.</span> </p>
+
+<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p>
+
+<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS
+AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
+WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
+responsible for determining the appropriateness of using and distributing the
+Program and assumes all risks associated with its exercise of rights under this
+Agreement , including but not limited to the risks and costs of program errors,
+compliance with applicable laws, damage to or loss of data, programs or
+equipment, and unavailability or interruption of operations. </span></p>
+
+<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p>
+
+<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS
+AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
+THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
+
+<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p>
+
+<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid
+or unenforceable under applicable law, it shall not affect the validity or
+enforceability of the remainder of the terms of this Agreement, and without
+further action by the parties hereto, such provision shall be reformed to the
+minimum extent necessary to make such provision valid and enforceable.</span> </p>
+
+<p><span style="font-size: 10pt;">If Recipient institutes patent litigation
+against any entity (including a cross-claim or counterclaim in a lawsuit)
+alleging that the Program itself (excluding combinations of the Program with
+other software or hardware) infringes such Recipient's patent(s), then such
+Recipient's rights granted under Section 2(b) shall terminate as of the date
+such litigation is filed. </span></p>
+
+<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement
+shall terminate if it fails to comply with any of the material terms or
+conditions of this Agreement and does not cure such failure in a reasonable
+period of time after becoming aware of such noncompliance. If all Recipient's
+rights under this Agreement terminate, Recipient agrees to cease use and
+distribution of the Program as soon as reasonably practicable. However,
+Recipient's obligations under this Agreement and any licenses granted by
+Recipient relating to the Program shall continue and survive. </span></p>
+
+<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute
+copies of this Agreement, but in order to avoid inconsistency the Agreement is
+copyrighted and may only be modified in the following manner. The Agreement
+Steward reserves the right to publish new versions (including revisions) of
+this Agreement from time to time. No one other than the Agreement Steward has
+the right to modify this Agreement. The Eclipse Foundation is the initial
+Agreement Steward. The Eclipse Foundation may assign the responsibility to
+serve as the Agreement Steward to a suitable separate entity. Each new version
+of the Agreement will be given a distinguishing version number. The Program
+(including Contributions) may always be distributed subject to the version of
+the Agreement under which it was received. In addition, after a new version of
+the Agreement is published, Contributor may elect to distribute the Program
+(including its Contributions) under the new version. Except as expressly stated
+in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
+the intellectual property of any Contributor under this Agreement, whether
+expressly, by implication, estoppel or otherwise. All rights in the Program not
+expressly granted under this Agreement are reserved.</span> </p>
+
+<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the
+State of New York and the intellectual property laws of the United States of
+America. No party to this Agreement will bring a legal action under this
+Agreement more than one year after the cause of action arose. Each party waives
+its rights to a jury trial in any resulting litigation.</span> </p>
+
+<p class="MsoNormal"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></p>
+
+</div>
+
+</body></html> \ No newline at end of file
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/license.html b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/license.html
new file mode 100755
index 000000000..d7b88e941
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/license.html
@@ -0,0 +1,319 @@
+<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"><head>
+<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
+<meta name="ProgId" content="Word.Document">
+<meta name="Generator" content="Microsoft Word 9">
+<meta name="Originator" content="Microsoft Word 9">
+<link rel="File-List" href="http://www.eclipse.org/org/documents/Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"><title>Eclipse Public License - Version 1.0</title><!--[if gte mso 9]><xml>
+ <o:DocumentProperties>
+ <o:Revision>2</o:Revision>
+ <o:TotalTime>3</o:TotalTime>
+ <o:Created>2004-03-05T23:03:00Z</o:Created>
+ <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved>
+ <o:Pages>4</o:Pages>
+ <o:Words>1626</o:Words>
+ <o:Characters>9270</o:Characters>
+ <o:Lines>77</o:Lines>
+ <o:Paragraphs>18</o:Paragraphs>
+ <o:CharactersWithSpaces>11384</o:CharactersWithSpaces>
+ <o:Version>9.4402</o:Version>
+ </o:DocumentProperties>
+</xml><![endif]--><!--[if gte mso 9]><xml>
+ <w:WordDocument>
+ <w:TrackRevisions/>
+ </w:WordDocument>
+</xml><![endif]-->
+
+
+<style>
+<!--
+ /* Font Definitions */
+@font-face
+ {font-family:Tahoma;
+ panose-1:2 11 6 4 3 5 4 4 2 4;
+ mso-font-charset:0;
+ mso-generic-font-family:swiss;
+ mso-font-pitch:variable;
+ mso-font-signature:553679495 -2147483648 8 0 66047 0;}
+ /* Style Definitions */
+p.MsoNormal, li.MsoNormal, div.MsoNormal
+ {mso-style-parent:"";
+ margin:0in;
+ margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:"Times New Roman";}
+p
+ {margin-right:0in;
+ mso-margin-top-alt:auto;
+ mso-margin-bottom-alt:auto;
+ margin-left:0in;
+ mso-pagination:widow-orphan;
+ font-size:12.0pt;
+ font-family:"Times New Roman";
+ mso-fareast-font-family:"Times New Roman";}
+p.BalloonText, li.BalloonText, div.BalloonText
+ {mso-style-name:"Balloon Text";
+ margin:0in;
+ margin-bottom:.0001pt;
+ mso-pagination:widow-orphan;
+ font-size:8.0pt;
+ font-family:Tahoma;
+ mso-fareast-font-family:"Times New Roman";}
+@page Section1
+ {size:8.5in 11.0in;
+ margin:1.0in 1.25in 1.0in 1.25in;
+ mso-header-margin:.5in;
+ mso-footer-margin:.5in;
+ mso-paper-source:0;}
+div.Section1
+ {page:Section1;}
+-->
+</style></head>
+
+<body style="" lang="EN-US">
+
+<div class="Section1">
+
+<p style="text-align: center;" align="center"><b>Eclipse Public License - v 1.0</b>
+</p>
+
+<p><span style="font-size: 10pt;">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
+THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE,
+REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
+OF THIS AGREEMENT.</span> </p>
+
+<p><b><span style="font-size: 10pt;">1. DEFINITIONS</span></b> </p>
+
+<p><span style="font-size: 10pt;">"Contribution" means:</span> </p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a)
+in the case of the initial Contributor, the initial code and documentation
+distributed under this Agreement, and<br clear="left">
+b) in the case of each subsequent Contributor:</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i)
+changes to the Program, and</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii)
+additions to the Program;</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">where
+such changes and/or additions to the Program originate from and are distributed
+by that particular Contributor. A Contribution 'originates' from a Contributor
+if it was added to the Program by such Contributor itself or anyone acting on
+such Contributor's behalf. Contributions do not include additions to the
+Program which: (i) are separate modules of software distributed in conjunction
+with the Program under their own license agreement, and (ii) are not derivative
+works of the Program. </span></p>
+
+<p><span style="font-size: 10pt;">"Contributor" means any person or
+entity that distributes the Program.</span> </p>
+
+<p><span style="font-size: 10pt;">"Licensed Patents " mean patent
+claims licensable by a Contributor which are necessarily infringed by the use
+or sale of its Contribution alone or when combined with the Program. </span></p>
+
+<p><span style="font-size: 10pt;">"Program" means the Contributions
+distributed in accordance with this Agreement.</span> </p>
+
+<p><span style="font-size: 10pt;">"Recipient" means anyone who
+receives the Program under this Agreement, including all Contributors.</span> </p>
+
+<p><b><span style="font-size: 10pt;">2. GRANT OF RIGHTS</span></b> </p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a)
+Subject to the terms of this Agreement, each Contributor hereby grants Recipient
+a non-exclusive, worldwide, royalty-free copyright license to<span style="color: red;"> </span>reproduce, prepare derivative works of, publicly
+display, publicly perform, distribute and sublicense the Contribution of such
+Contributor, if any, and such derivative works, in source code and object code
+form.</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b)
+Subject to the terms of this Agreement, each Contributor hereby grants
+Recipient a non-exclusive, worldwide,<span style="color: green;"> </span>royalty-free
+patent license under Licensed Patents to make, use, sell, offer to sell, import
+and otherwise transfer the Contribution of such Contributor, if any, in source
+code and object code form. This patent license shall apply to the combination
+of the Contribution and the Program if, at the time the Contribution is added
+by the Contributor, such addition of the Contribution causes such combination
+to be covered by the Licensed Patents. The patent license shall not apply to
+any other combinations which include the Contribution. No hardware per se is
+licensed hereunder. </span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">c)
+Recipient understands that although each Contributor grants the licenses to its
+Contributions set forth herein, no assurances are provided by any Contributor
+that the Program does not infringe the patent or other intellectual property
+rights of any other entity. Each Contributor disclaims any liability to Recipient
+for claims brought by any other entity based on infringement of intellectual
+property rights or otherwise. As a condition to exercising the rights and
+licenses granted hereunder, each Recipient hereby assumes sole responsibility
+to secure any other intellectual property rights needed, if any. For example,
+if a third party patent license is required to allow Recipient to distribute
+the Program, it is Recipient's responsibility to acquire that license before
+distributing the Program.</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">d)
+Each Contributor represents that to its knowledge it has sufficient copyright
+rights in its Contribution, if any, to grant the copyright license set forth in
+this Agreement. </span></p>
+
+<p><b><span style="font-size: 10pt;">3. REQUIREMENTS</span></b> </p>
+
+<p><span style="font-size: 10pt;">A Contributor may choose to distribute the
+Program in object code form under its own license agreement, provided that:</span>
+</p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a)
+it complies with the terms and conditions of this Agreement; and</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b)
+its license agreement:</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">i)
+effectively disclaims on behalf of all Contributors all warranties and
+conditions, express and implied, including warranties or conditions of title
+and non-infringement, and implied warranties or conditions of merchantability
+and fitness for a particular purpose; </span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">ii)
+effectively excludes on behalf of all Contributors all liability for damages,
+including direct, indirect, special, incidental and consequential damages, such
+as lost profits; </span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iii)
+states that any provisions which differ from this Agreement are offered by that
+Contributor alone and not by any other party; and</span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">iv)
+states that source code for the Program is available from such Contributor, and
+informs licensees how to obtain it in a reasonable manner on or through a
+medium customarily used for software exchange.<span style="color: blue;"> </span></span></p>
+
+<p><span style="font-size: 10pt;">When the Program is made available in source
+code form:</span> </p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">a)
+it must be made available under this Agreement; and </span></p>
+
+<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt;">b) a
+copy of this Agreement must be included with each copy of the Program. </span></p>
+
+<p><span style="font-size: 10pt;">Contributors may not remove or alter any
+copyright notices contained within the Program. </span></p>
+
+<p><span style="font-size: 10pt;">Each Contributor must identify itself as the
+originator of its Contribution, if any, in a manner that reasonably allows
+subsequent Recipients to identify the originator of the Contribution. </span></p>
+
+<p><b><span style="font-size: 10pt;">4. COMMERCIAL DISTRIBUTION</span></b> </p>
+
+<p><span style="font-size: 10pt;">Commercial distributors of software may
+accept certain responsibilities with respect to end users, business partners
+and the like. While this license is intended to facilitate the commercial use
+of the Program, the Contributor who includes the Program in a commercial
+product offering should do so in a manner which does not create potential
+liability for other Contributors. Therefore, if a Contributor includes the
+Program in a commercial product offering, such Contributor ("Commercial
+Contributor") hereby agrees to defend and indemnify every other
+Contributor ("Indemnified Contributor") against any losses, damages and
+costs (collectively "Losses") arising from claims, lawsuits and other
+legal actions brought by a third party against the Indemnified Contributor to
+the extent caused by the acts or omissions of such Commercial Contributor in
+connection with its distribution of the Program in a commercial product
+offering. The obligations in this section do not apply to any claims or Losses
+relating to any actual or alleged intellectual property infringement. In order
+to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
+Contributor in writing of such claim, and b) allow the Commercial Contributor
+to control, and cooperate with the Commercial Contributor in, the defense and
+any related settlement negotiations. The Indemnified Contributor may participate
+in any such claim at its own expense.</span> </p>
+
+<p><span style="font-size: 10pt;">For example, a Contributor might include the
+Program in a commercial product offering, Product X. That Contributor is then a
+Commercial Contributor. If that Commercial Contributor then makes performance
+claims, or offers warranties related to Product X, those performance claims and
+warranties are such Commercial Contributor's responsibility alone. Under this
+section, the Commercial Contributor would have to defend claims against the
+other Contributors related to those performance claims and warranties, and if a
+court requires any other Contributor to pay any damages as a result, the
+Commercial Contributor must pay those damages.</span> </p>
+
+<p><b><span style="font-size: 10pt;">5. NO WARRANTY</span></b> </p>
+
+<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS
+AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
+WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
+responsible for determining the appropriateness of using and distributing the
+Program and assumes all risks associated with its exercise of rights under this
+Agreement , including but not limited to the risks and costs of program errors,
+compliance with applicable laws, damage to or loss of data, programs or
+equipment, and unavailability or interruption of operations. </span></p>
+
+<p><b><span style="font-size: 10pt;">6. DISCLAIMER OF LIABILITY</span></b> </p>
+
+<p><span style="font-size: 10pt;">EXCEPT AS EXPRESSLY SET FORTH IN THIS
+AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
+THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
+
+<p><b><span style="font-size: 10pt;">7. GENERAL</span></b> </p>
+
+<p><span style="font-size: 10pt;">If any provision of this Agreement is invalid
+or unenforceable under applicable law, it shall not affect the validity or
+enforceability of the remainder of the terms of this Agreement, and without
+further action by the parties hereto, such provision shall be reformed to the
+minimum extent necessary to make such provision valid and enforceable.</span> </p>
+
+<p><span style="font-size: 10pt;">If Recipient institutes patent litigation
+against any entity (including a cross-claim or counterclaim in a lawsuit)
+alleging that the Program itself (excluding combinations of the Program with
+other software or hardware) infringes such Recipient's patent(s), then such
+Recipient's rights granted under Section 2(b) shall terminate as of the date
+such litigation is filed. </span></p>
+
+<p><span style="font-size: 10pt;">All Recipient's rights under this Agreement
+shall terminate if it fails to comply with any of the material terms or
+conditions of this Agreement and does not cure such failure in a reasonable
+period of time after becoming aware of such noncompliance. If all Recipient's
+rights under this Agreement terminate, Recipient agrees to cease use and
+distribution of the Program as soon as reasonably practicable. However,
+Recipient's obligations under this Agreement and any licenses granted by
+Recipient relating to the Program shall continue and survive. </span></p>
+
+<p><span style="font-size: 10pt;">Everyone is permitted to copy and distribute
+copies of this Agreement, but in order to avoid inconsistency the Agreement is
+copyrighted and may only be modified in the following manner. The Agreement
+Steward reserves the right to publish new versions (including revisions) of
+this Agreement from time to time. No one other than the Agreement Steward has
+the right to modify this Agreement. The Eclipse Foundation is the initial
+Agreement Steward. The Eclipse Foundation may assign the responsibility to
+serve as the Agreement Steward to a suitable separate entity. Each new version
+of the Agreement will be given a distinguishing version number. The Program
+(including Contributions) may always be distributed subject to the version of
+the Agreement under which it was received. In addition, after a new version of
+the Agreement is published, Contributor may elect to distribute the Program
+(including its Contributions) under the new version. Except as expressly stated
+in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
+the intellectual property of any Contributor under this Agreement, whether
+expressly, by implication, estoppel or otherwise. All rights in the Program not
+expressly granted under this Agreement are reserved.</span> </p>
+
+<p><span style="font-size: 10pt;">This Agreement is governed by the laws of the
+State of New York and the intellectual property laws of the United States of
+America. No party to this Agreement will bring a legal action under this
+Agreement more than one year after the cause of action arose. Each party waives
+its rights to a jury trial in any resulting litigation.</span> </p>
+
+<p class="MsoNormal"><!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p></p>
+
+</div>
+
+</body></html> \ No newline at end of file
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/modeling32.png b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/modeling32.png
new file mode 100755
index 000000000..6b08de2ad
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/modeling32.png
Binary files differ
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/plugin.properties b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/plugin.properties
new file mode 100755
index 000000000..829883263
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/plugin.properties
@@ -0,0 +1,14 @@
+# ====================================================================
+# To code developer:
+# Do NOT change the properties between this line and the
+# "%%% END OF TRANSLATED PROPERTIES %%%" line.
+# Make a new property name, append to the end of the file and change
+# the code to use the new property.
+# ====================================================================
+
+# ====================================================================
+# %%% END OF TRANSLATED PROPERTIES %%%
+# ====================================================================
+
+pluginName = EMF Teneo EclipseLink EListFactory Plug-in
+providerName = Eclipse Modeling Project
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/BasicEListFactoryImpl.java b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/BasicEListFactoryImpl.java
new file mode 100755
index 000000000..5e597c040
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/BasicEListFactoryImpl.java
@@ -0,0 +1,532 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Oracle and Geensys.
+ * 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:
+ * Oracle and Geensys - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.teneo.eclipselink.elistfactory;
+
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.BasicInternalEList;
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
+import org.eclipse.emf.ecore.util.EObjectEList;
+import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+import org.eclipse.emf.ecore.util.EObjectWithInverseEList;
+import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.teneo.eclipselink.elistfactory.internal.messages.Messages;
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * An extensible EList factory implementation.
+ * <p>
+ * There are overridable factory methods for all known types of {@link org.eclipse.emf.common.util.EList
+ * <em><b>EList</b></em>}, {@link org.eclipse.emf.common.util.EMap <em><b>EMap</b></em>}, and
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em><b>FeatureMap</b></em>}. They create instances of the
+ * implementations as per the EMF framework by default but clients may provide their own implemetations depending to
+ * their needs (e.g. database persistence).
+ * </p>
+ * <p>
+ * There are also some overriding points which are used to provide the EList factory with generator model dependent
+ * settings (e.g. suppress containment, suppress notifiation, feature map wrapper class). They yield the generator
+ * model's default values but clients can return their own their own settings if required.
+ * </p>
+ */
+public class BasicEListFactoryImpl implements EListFactory {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createEList(java.lang. String, java.lang.String,
+ * java.lang.String)
+ */
+ public <E> EList<E> createEList(final String ePackageNsURI, final String eOwnerClassName,
+ final String eStructuralFeatureName) throws ClassNotFoundException {
+ EObject eOwnerObject = createEOwnerObject(ePackageNsURI, eOwnerClassName);
+ return createEList(eOwnerObject, eStructuralFeatureName);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createEList(org.eclipse .emf.ecore.EObject,
+ * java.lang.String)
+ */
+ public <E> EList<E> createEList(final EObject eOwnerObject, final String eStructuralFeatureName)
+ throws ClassNotFoundException {
+ EStructuralFeature eStructuralFeature = getEStructuralFeature(eOwnerObject, eStructuralFeatureName);
+ return createEList(eOwnerObject, eStructuralFeature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createEList(org.eclipse .emf.ecore.EObject,
+ * org.eclipse.emf.ecore.EStructuralFeature)
+ */
+ @SuppressWarnings("unchecked")
+ public <E> EList<E> createEList(final EObject eOwnerObject, final EStructuralFeature eStructuralFeature)
+ throws ClassNotFoundException {
+ Assert.isNotNull(eOwnerObject);
+ Assert.isNotNull(eStructuralFeature);
+ Assert
+ .isLegal(
+ !eStructuralFeature.isVolatile() && EElementUtil.isListType(eStructuralFeature),
+ Messages.assert_featureMustBeNonVolatileListItemType);
+
+ EList<E> result = null;
+ int derivedReferenceID = EElementUtil.getDerivedStructuralFeatureID(eOwnerObject, eStructuralFeature);
+ if (EElementUtil.isMapType(eStructuralFeature)) {
+ result = (EList<E>) createEMap(eOwnerObject, eStructuralFeature);
+ } else if (EElementUtil.isFeatureMapType(eStructuralFeature)) {
+ result = (EList<E>) createFeatureMap(eOwnerObject, eStructuralFeature);
+ } else if (isSuppressNotification()) {
+ Class<? extends E> listItemClass = (Class<? extends E>) eStructuralFeature.getEType().getInstanceClass();
+
+ result = createBasicInternalEList(listItemClass);
+ } else if (EElementUtil.isContainment(eStructuralFeature) && !isSuppressContainment(eStructuralFeature)) {
+ Class<?> listItemClass = eStructuralFeature.getEType().getInstanceClass();
+
+ if (EElementUtil.isBidirectional(eStructuralFeature)) {
+ EReference eReference = (EReference) eStructuralFeature;
+ EReference eOppositeReference = eReference.getEOpposite();
+ int derivedOppositeReferenceID = EElementUtil.getDerivedStructuralFeatureID(eOwnerObject,
+ eOppositeReference);
+
+ if (EElementUtil.isResolveProxies(eStructuralFeature, isContainmentProxies(eStructuralFeature))) {
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEObjectContainmentWithInverseEListUnsettableResolving(listItemClass,
+ eOwnerObject, derivedReferenceID, derivedOppositeReferenceID);
+ } else {
+ result = createEObjectContainmentWithInverseEListResolving(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ }
+ } // isResolveProxies()
+ else {
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEObjectContainmentWithInverseEListUnsettable(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ } else {
+ result = createEObjectContainmentWithInverseEList(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ }
+ }
+ } // isBidirectional()
+ else {
+ if (EElementUtil.isResolveProxies(eStructuralFeature)) {
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEObjectContainmentEListUnsettableResolving(listItemClass, eOwnerObject,
+ derivedReferenceID);
+ } else {
+ result = createEObjectContainmentEListResolving(listItemClass, eOwnerObject, derivedReferenceID);
+ }
+ } // isResolveProxies()
+ else {
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEObjectContainmentEListUnsettable(listItemClass, eOwnerObject,
+ derivedReferenceID);
+ } else {
+ result = createEObjectContainmentEList(listItemClass, eOwnerObject, derivedReferenceID);
+ }
+ }
+ }
+ } else if (eStructuralFeature instanceof EReference) {
+ Class<?> listItemClass = eStructuralFeature.getEType().getInstanceClass();
+
+ if (EElementUtil.isBidirectional(eStructuralFeature)) {
+ EReference eReference = (EReference) eStructuralFeature;
+ EReference eOppositeReference = eReference.getEOpposite();
+ int derivedOppositeReferenceID = EElementUtil.getDerivedStructuralFeatureID(eOwnerObject,
+ eOppositeReference);
+
+ if (EElementUtil.isResolveProxies(eStructuralFeature)) {
+ if (eStructuralFeature.isUnsettable()) {
+ if (EElementUtil.isListType(eOppositeReference)) {
+ result = createEObjectWithInverseResolvingEListUnsettableManyInverse(listItemClass,
+ eOwnerObject, derivedReferenceID, derivedOppositeReferenceID);
+ } else {
+ result = createEObjectWithInverseResolvingEListUnsettable(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ }
+ } else {
+ if (EElementUtil.isListType(eOppositeReference)) {
+ result = createEObjectWithInverseResolvingEListManyInverse(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ } else {
+ result = createEObjectWithInverseResolvingEList(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ }
+ }
+ } // isResolveProxies()
+ else {
+ if (eStructuralFeature.isUnsettable()) {
+ if (EElementUtil.isListType(eOppositeReference)) {
+ result = createEObjectWithInverseEListUnsettableManyInverse(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ } else {
+ result = createEObjectWithInverseEListUnsettable(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ }
+ } else {
+ if (EElementUtil.isListType(eOppositeReference)) {
+ result = createEObjectWithInverseEListManyInverse(listItemClass, eOwnerObject,
+ derivedReferenceID, derivedOppositeReferenceID);
+ } else {
+ result = createEObjectWithInverseEList(listItemClass, eOwnerObject, derivedReferenceID,
+ derivedOppositeReferenceID);
+ }
+ }
+ }
+ } // isBidirectional()
+ else {
+ if (EElementUtil.isResolveProxies(eStructuralFeature)) {
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEObjectResolvingEListUnsettable(listItemClass, eOwnerObject, derivedReferenceID);
+ } else {
+ result = createEObjectResolvingEList(listItemClass, eOwnerObject, derivedReferenceID);
+ }
+ } // isResolveProxies()
+ else {
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEObjectEListUnsettable(listItemClass, eOwnerObject, derivedReferenceID);
+ } else {
+ result = createEObjectEList(listItemClass, eOwnerObject, derivedReferenceID);
+ }
+ }
+ }
+ } else if (eStructuralFeature instanceof EAttribute) {
+ Class<?> listItemClass = eStructuralFeature.getEType().getInstanceClass();
+
+ if (eStructuralFeature.isUnique()) {
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEDataTypeUniqueEListUnsettable(listItemClass, eOwnerObject, derivedReferenceID);
+ } else {
+ result = createEDataTypeUniqueEList(listItemClass, eOwnerObject, derivedReferenceID);
+ }
+ } // isUnique()
+ else {
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEDataTypeEListUnsettable(listItemClass, eOwnerObject, derivedReferenceID);
+ } else {
+ result = createEDataTypeEList(listItemClass, eOwnerObject, derivedReferenceID);
+ }
+ }
+ }
+
+ return result;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createEMap(java.lang.String , java.lang.String,
+ * java.lang.String)
+ */
+ public <K, V> EMap<K, V> createEMap(final String ePackageNsURI, final String eOwnerClassName,
+ final String eStructuralFeatureName) throws ClassNotFoundException {
+ EObject eOwnerObject = createEOwnerObject(ePackageNsURI, eOwnerClassName);
+ return createEMap(eOwnerObject, eStructuralFeatureName);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createEMap(org.eclipse .emf.ecore.EObject,
+ * java.lang.String)
+ */
+ public <K, V> EMap<K, V> createEMap(final EObject eOwnerObject, final String eStructuralFeatureName)
+ throws ClassNotFoundException {
+ EStructuralFeature eStructuralFeature = getEStructuralFeature(eOwnerObject, eStructuralFeatureName);
+ return createEMap(eOwnerObject, eStructuralFeature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createEMap(org.eclipse .emf.ecore.EObject,
+ * org.eclipse.emf.ecore.EStructuralFeature)
+ */
+ public <K, V> EMap<K, V> createEMap(final EObject eOwnerObject, final EStructuralFeature eStructuralFeature)
+ throws ClassNotFoundException {
+ Assert.isNotNull(eOwnerObject);
+ Assert.isNotNull(eStructuralFeature);
+ Assert
+ .isLegal(
+ !eStructuralFeature.isVolatile() && EElementUtil.isMapType(eStructuralFeature),
+ Messages.assert_featureMustBeNonVolatileMapEntryType);
+
+ EClass eMapEntryClass = (EClass) eStructuralFeature.getEType();
+ Class<?> mapEntryClass = eStructuralFeature.getEType().getInstanceClass();
+ int derivedReferenceID = EElementUtil.getDerivedStructuralFeatureID(eOwnerObject, eStructuralFeature);
+
+ EMap<K, V> result;
+ if (eStructuralFeature.isUnsettable()) {
+ result = createEcoreEMapUnsettable(eMapEntryClass, mapEntryClass, eOwnerObject, derivedReferenceID);
+ } else {
+ result = createEcoreEMap(eMapEntryClass, mapEntryClass, eOwnerObject, derivedReferenceID);
+ }
+ return result;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createFeatureMap(java. lang.String, java.lang.String,
+ * java.lang.String)
+ */
+ public FeatureMap createFeatureMap(final String ePackageNsURI, final String eOwnerClassName,
+ final String eStructuralFeatureName) throws ClassNotFoundException {
+ EObject eOwnerObject = createEOwnerObject(ePackageNsURI, eOwnerClassName);
+ return createFeatureMap(eOwnerObject, eStructuralFeatureName);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createFeatureMap(org.eclipse .emf.ecore.EObject,
+ * java.lang.String)
+ */
+ public FeatureMap createFeatureMap(final EObject eOwnerObject, final String eStructuralFeatureName)
+ throws ClassNotFoundException {
+ EStructuralFeature eStructuralFeature = getEStructuralFeature(eOwnerObject, eStructuralFeatureName);
+ return createFeatureMap(eOwnerObject, eStructuralFeature);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.emf.extras.elistfactory.EListFactory#createFeatureMap(org.eclipse .emf.ecore.EObject,
+ * org.eclipse.emf.ecore.EStructuralFeature)
+ */
+ public FeatureMap createFeatureMap(final EObject eOwnerObject, final EStructuralFeature eStructuralFeature)
+ throws ClassNotFoundException {
+ Assert.isNotNull(eOwnerObject);
+ Assert.isNotNull(eStructuralFeature);
+ Assert
+ .isLegal(!eStructuralFeature.isVolatile() && EElementUtil.isFeatureMapType(eStructuralFeature),
+ Messages.assert_featureMustBeNonVolatileFeatureMapEntryType);
+
+ int derivedReferenceID = EElementUtil.getDerivedStructuralFeatureID(eOwnerObject, eStructuralFeature);
+
+ FeatureMap featureMap = createBasicFeatureMap(eOwnerObject, derivedReferenceID);
+ return createWrappedFeatureMap(featureMap);
+ }
+
+ protected boolean isContainmentProxies(final EStructuralFeature eStructuralFeature) {
+ return false;
+ }
+
+ protected boolean isSuppressContainment(final EStructuralFeature eStructuralFeature) {
+ return false;
+ }
+
+ protected boolean isSuppressNotification() {
+ return false;
+ }
+
+ protected FeatureMap createWrappedFeatureMap(final FeatureMap featureMap) {
+ return featureMap;
+ }
+
+ protected <E> BasicInternalEList<E> createBasicInternalEList(final Class<? extends E> listItemClass) {
+ return new BasicInternalEList<E>(listItemClass);
+ }
+
+ protected <E> EObjectEList<E> createEObjectEList(final Class<?> listItemClass, final EObject eOwnerObject,
+ final int eReferenceID) {
+ return new EObjectEList<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ protected <E> EObjectEList.Unsettable<E> createEObjectEListUnsettable(final Class<?> listItemClass,
+ final EObject eOwnerObject, final int eReferenceID) {
+ return new EObjectEList.Unsettable<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ protected <E> EObjectResolvingEList<E> createEObjectResolvingEList(final Class<?> listItemClass,
+ final EObject eOwnerObject, final int eReferenceID) {
+ return new EObjectResolvingEList<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ protected <E> EObjectResolvingEList.Unsettable<E> createEObjectResolvingEListUnsettable(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID) {
+ return new EObjectResolvingEList.Unsettable<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ protected <E> EObjectWithInverseEList<E> createEObjectWithInverseEList(final Class<?> listItemClass,
+ final EObject eOwnerObject, final int eReferenceID, final int eOppositeReferenceID) {
+ return new EObjectWithInverseEList<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID,
+ eOppositeReferenceID);
+ }
+
+ protected <E> EObjectWithInverseEList.Unsettable<E> createEObjectWithInverseEListUnsettable(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectWithInverseEList.Unsettable<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID,
+ eOppositeReferenceID);
+ }
+
+ protected <E> EObjectWithInverseEList.ManyInverse<E> createEObjectWithInverseEListManyInverse(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectWithInverseEList.ManyInverse<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID,
+ eOppositeReferenceID);
+ }
+
+ protected <E> EObjectWithInverseEList.Unsettable.ManyInverse<E> createEObjectWithInverseEListUnsettableManyInverse(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectWithInverseEList.Unsettable.ManyInverse<E>(listItemClass, (InternalEObject) eOwnerObject,
+ eReferenceID, eOppositeReferenceID);
+ }
+
+ protected <E> EObjectWithInverseResolvingEList<E> createEObjectWithInverseResolvingEList(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectWithInverseResolvingEList<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID,
+ eOppositeReferenceID);
+ }
+
+ protected <E> EObjectWithInverseResolvingEList.Unsettable<E> createEObjectWithInverseResolvingEListUnsettable(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectWithInverseResolvingEList.Unsettable<E>(listItemClass, (InternalEObject) eOwnerObject,
+ eReferenceID, eOppositeReferenceID);
+ }
+
+ protected <E> EObjectWithInverseResolvingEList.ManyInverse<E> createEObjectWithInverseResolvingEListManyInverse(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+
+ return new EObjectWithInverseResolvingEList.ManyInverse<E>(listItemClass, (InternalEObject) eOwnerObject,
+ eReferenceID, eOppositeReferenceID);
+ }
+
+ protected <E> EObjectWithInverseResolvingEList.Unsettable.ManyInverse<E> createEObjectWithInverseResolvingEListUnsettableManyInverse(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectWithInverseResolvingEList.Unsettable.ManyInverse<E>(listItemClass,
+ (InternalEObject) eOwnerObject, eReferenceID, eOppositeReferenceID);
+ }
+
+ protected <E> EObjectContainmentEList<E> createEObjectContainmentEList(final Class<?> listItemClass,
+ final EObject eOwnerObject, final int eReferenceID) {
+
+ return new EObjectContainmentEList<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ protected <E> EObjectContainmentEList.Unsettable<E> createEObjectContainmentEListUnsettable(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID) {
+ return new EObjectContainmentEList.Unsettable<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ protected <E> EObjectContainmentEList.Resolving<E> createEObjectContainmentEListResolving(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID) {
+ return new EObjectContainmentEList.Resolving<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ protected <E> EObjectContainmentEList.Unsettable.Resolving<E> createEObjectContainmentEListUnsettableResolving(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID) {
+ return new EObjectContainmentEList.Unsettable.Resolving<E>(listItemClass, (InternalEObject) eOwnerObject,
+ eReferenceID);
+ }
+
+ protected <E> EObjectContainmentWithInverseEList<E> createEObjectContainmentWithInverseEList(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectContainmentWithInverseEList<E>(listItemClass, (InternalEObject) eOwnerObject, eReferenceID,
+ eOppositeReferenceID);
+ }
+
+ protected <E> EObjectContainmentWithInverseEList.Unsettable<E> createEObjectContainmentWithInverseEListUnsettable(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectContainmentWithInverseEList.Unsettable<E>(listItemClass, (InternalEObject) eOwnerObject,
+ eReferenceID, eOppositeReferenceID);
+ }
+
+ protected <E> EObjectContainmentWithInverseEList.Resolving<E> createEObjectContainmentWithInverseEListResolving(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectContainmentWithInverseEList.Resolving<E>(listItemClass, (InternalEObject) eOwnerObject,
+ eReferenceID, eOppositeReferenceID);
+ }
+
+ protected <E> EObjectContainmentWithInverseEList.Unsettable.Resolving<E> createEObjectContainmentWithInverseEListUnsettableResolving(
+ final Class<?> listItemClass, final EObject eOwnerObject, final int eReferenceID,
+ final int eOppositeReferenceID) {
+ return new EObjectContainmentWithInverseEList.Unsettable.Resolving<E>(listItemClass,
+ (InternalEObject) eOwnerObject, eReferenceID, eOppositeReferenceID);
+ }
+
+ protected <E> EDataTypeEList<E> createEDataTypeEList(final Class<?> listItemClass, final EObject eOwnerObject,
+ final int eAttributeID) {
+ return new EDataTypeEList<E>(listItemClass, (InternalEObject) eOwnerObject, eAttributeID);
+ }
+
+ protected <E> EDataTypeEList.Unsettable<E> createEDataTypeEListUnsettable(final Class<?> listItemClass,
+ final EObject eOwnerObject, final int eAttributeID) {
+ return new EDataTypeEList.Unsettable<E>(listItemClass, (InternalEObject) eOwnerObject, eAttributeID);
+ }
+
+ protected <E> EDataTypeUniqueEList<E> createEDataTypeUniqueEList(final Class<?> listItemClass,
+ final EObject eOwnerObject, final int eAttributeID) {
+ return new EDataTypeUniqueEList<E>(listItemClass, (InternalEObject) eOwnerObject, eAttributeID);
+ }
+
+ protected <E> EDataTypeUniqueEList.Unsettable<E> createEDataTypeUniqueEListUnsettable(final Class<?> listItemClass,
+ final EObject eOwnerObject, final int eAttributeID) {
+ return new EDataTypeUniqueEList.Unsettable<E>(listItemClass, (InternalEObject) eOwnerObject, eAttributeID);
+ }
+
+ protected <K, V> EcoreEMap<K, V> createEcoreEMap(final EClass eMapEntryClass, final Class<?> mapEntryClass,
+ final EObject eOwnerObject, final int eReferenceID) {
+ return new EcoreEMap<K, V>(eMapEntryClass, mapEntryClass, (InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ protected <K, V> EcoreEMap.Unsettable<K, V> createEcoreEMapUnsettable(final EClass eMapEntryClass,
+ final Class<?> mapEntryClass, final EObject eOwnerObject, final int eReferenceID) {
+ return new EcoreEMap.Unsettable<K, V>(eMapEntryClass, mapEntryClass, (InternalEObject) eOwnerObject,
+ eReferenceID);
+ }
+
+ protected BasicFeatureMap createBasicFeatureMap(final EObject eOwnerObject, final int eReferenceID) {
+ return new BasicFeatureMap((InternalEObject) eOwnerObject, eReferenceID);
+ }
+
+ private EObject createEOwnerObject(final String ePackageNsURI, final String eOwnerClassName) {
+ EPackage ePackage = EElementUtil.findEPackage(ePackageNsURI);
+ EClass eOwnerClass = EElementUtil.findEClass(ePackage, eOwnerClassName);
+ EFactory eFactory = ePackage.getEFactoryInstance();
+ return eFactory.create(eOwnerClass);
+ }
+
+ private EStructuralFeature getEStructuralFeature(final EObject eOwnerObject, final String eStructuralFeatureName) {
+ Assert.isNotNull(eOwnerObject);
+ Assert.isLegal(eStructuralFeatureName != null && eStructuralFeatureName.trim().length() > 0);
+
+ EStructuralFeature eStructuralFeature = eOwnerObject.eClass().getEStructuralFeature(eStructuralFeatureName);
+ Assert.isTrue(eStructuralFeature != null, NLS.bind(
+ Messages.assert_couldNotFindFeature$0InEClass$1, eStructuralFeatureName, eOwnerObject
+ .eClass().getName()));
+ return eStructuralFeature;
+ }
+}
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/EElementUtil.java b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/EElementUtil.java
new file mode 100755
index 000000000..6a49f2d37
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/EElementUtil.java
@@ -0,0 +1,242 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Oracle and Geensys.
+ * 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:
+ * Oracle and Geensys - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.teneo.eclipselink.elistfactory;
+
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.teneo.eclipselink.elistfactory.internal.messages.Messages;
+import org.eclipse.osgi.util.NLS;
+
+public final class EElementUtil {
+
+ private EElementUtil() {
+ }
+
+ public static boolean isListType(final EStructuralFeature eStructuralFeature) {
+ return eStructuralFeature.isMany() || isFeatureMapEntryType(eStructuralFeature);
+ }
+
+ public static boolean isMapType(final EStructuralFeature eStructuralFeature) {
+ return !isContainer(eStructuralFeature) && eStructuralFeature.isMany()
+ && (eStructuralFeature.getEType() instanceof EClass) && isJavaUtilMapEntryType(eStructuralFeature);
+ }
+
+ public static boolean isFeatureMapType(final EStructuralFeature eStructuralFeature) {
+ return isFeatureMapEntryType(eStructuralFeature);
+ }
+
+ public static boolean isJavaUtilMapEntryType(final EStructuralFeature eStructuralFeature) {
+ String instanceClassName = eStructuralFeature.getEType().getInstanceClassName();
+ return "java.util.Map.Entry".equals(instanceClassName) || "java.util.Map$Entry".equals(instanceClassName); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public static boolean isFeatureMapEntryType(final EStructuralFeature eStructuralFeature) {
+ String instanceClassName = eStructuralFeature.getEType().getInstanceClassName();
+ return "org.eclipse.emf.ecore.util.FeatureMap.Entry".equals(instanceClassName) //$NON-NLS-1$
+ || "org.eclipse.emf.ecore.util.FeatureMap$Entry".equals(instanceClassName); //$NON-NLS-1$
+ }
+
+ public static boolean isContainer(final EStructuralFeature eStructuralFeature) {
+ boolean result = false;
+ if (eStructuralFeature instanceof EReference) {
+ EReference eReference = (EReference) eStructuralFeature;
+ EReference eOppositeReference = eReference.getEOpposite();
+ result = (eOppositeReference != null) && eOppositeReference.isContainment();
+ }
+ return result;
+ }
+
+ public static boolean isContainment(final EStructuralFeature eStructuralFeature) {
+ boolean result = false;
+ if (eStructuralFeature instanceof EReference) {
+ EReference eReference = (EReference) eStructuralFeature;
+ result = eReference.isContainment();
+ }
+ return result;
+ }
+
+ public static boolean isBidirectional(final EStructuralFeature eStructuralFeature) {
+ boolean result = false;
+ if (eStructuralFeature instanceof EReference) {
+ EReference eReference = (EReference) eStructuralFeature;
+ result = eReference.getEOpposite() != null;
+ }
+ return result;
+ }
+
+ public static boolean isResolveProxies(final EStructuralFeature eStructuralFeature) {
+ return isResolveProxies(eStructuralFeature, false);
+ }
+
+ public static boolean isResolveProxies(final EStructuralFeature eStructuralFeature, final boolean containmentProxies) {
+ boolean result = false;
+ if (eStructuralFeature instanceof EReference) {
+ EReference eReference = (EReference) eStructuralFeature;
+ result = (!isContainer(eReference) && !isContainment(eReference) || containmentProxies)
+ && eReference.isResolveProxies();
+ }
+ return result;
+ }
+
+ public static String getQualifiedListItemTypeName(final EStructuralFeature eStructuralFeature) {
+ String result = ""; //$NON-NLS-1$
+ EClassifier eType = eStructuralFeature.getEType();
+ if (eType instanceof EClass) {
+ if (eType.getInstanceClassName() != null) {
+ result = eType.getInstanceClassName();
+ } else {
+ result = getQualifiedInterfaceName(eType);
+ }
+ }
+
+ if (eType instanceof EEnum) {
+ return getQualifiedInterfaceName(eType);
+ }
+
+ if (eType instanceof EDataType) {
+ if (isPrimitiveType(eType)) {
+ result = getQualifiedPrimitiveObjectTypeName(eType);
+ } else if ("org.eclipse.emf.common.util.Enumerator".equals(eType.getInstanceClassName())) { //$NON-NLS-1$
+ EDataType eBaseType = ExtendedMetaDataUtil.getExtendedMetaData(eType).getBaseType((EDataType) eType);
+ if (eBaseType instanceof EEnum) {
+ result = getQualifiedInterfaceName(eBaseType);
+ }
+ } else {
+ if (eType.getInstanceClassName() != null) {
+ result = eType.getInstanceClassName();
+ }
+ }
+ }
+ return result;
+
+ }
+
+ public static int getDerivedStructuralFeatureID(final EObject eOwnerObject,
+ final EStructuralFeature eStructuralFeature) throws ClassNotFoundException {
+ int featureID = eStructuralFeature.getFeatureID();
+ Class<?> containingClass = eStructuralFeature.getEContainingClass().getInstanceClass();
+ return ((InternalEObject) eOwnerObject).eDerivedStructuralFeatureID(featureID, containingClass);
+ }
+
+ public static String getQualifiedInterfacePackageName(final EClassifier eClassifier) {
+ Class<? extends EPackage> ePackageClass = eClassifier.getEPackage().getClass();
+ Class<?> ePackageInterface = null;
+ for (int i = 0; (i < ePackageClass.getInterfaces().length) && (ePackageInterface == null); i++) {
+ String interfaceName = ePackageClass.getInterfaces()[i].getSimpleName();
+ if (ePackageClass.getSimpleName().startsWith(interfaceName)) {
+ ePackageInterface = ePackageClass.getInterfaces()[i];
+ }
+ }
+ Assert.isTrue(ePackageInterface != null, NLS.bind(
+ Messages.assert_couldNotFindEPackageInterfaceOfEPackageClass$0, ePackageClass.getName()));
+ return ePackageInterface.getPackage().getName();
+ }
+
+ public static String getQualifiedClassPackageName(final EClassifier eClassifier) {
+ String eQualifiedPackageClassName = eClassifier.getEPackage().getClass().getName();
+ return getPackageName(eQualifiedPackageClassName);
+ }
+
+ public static String getQualifiedInterfaceName(final EClassifier eClassifier) {
+ return getQualifiedInterfacePackageName(eClassifier) + "." + getSimpleInterfaceName(eClassifier); //$NON-NLS-1$
+ }
+
+ public static String getQualifiedClassName(final EClassifier eClassifier) {
+
+ return getQualifiedClassPackageName(eClassifier) + "." + getSimpleClassName(eClassifier); //$NON-NLS-1$
+ }
+
+ public static String getSimpleInterfaceName(final EClassifier eClassifier) {
+ return eClassifier.getName();
+ }
+
+ public static String getSimpleClassName(final EClassifier eClassifier) {
+
+ return getSimpleInterfaceName(eClassifier) + "Impl"; //$NON-NLS-1$
+ }
+
+ public static String getPackageName(String qualifiedTypeName) {
+ return qualifiedTypeName.substring(0, qualifiedTypeName.lastIndexOf(".")); //$NON-NLS-1$
+ }
+
+ public static boolean isPrimitiveType(final EClassifier eClassifier) {
+ boolean result = false;
+ Class<?> instanceClass = eClassifier.getInstanceClass();
+ if (instanceClass != null) {
+ result = instanceClass.isPrimitive();
+ }
+ return result;
+ }
+
+ public static String getQualifiedPrimitiveObjectTypeName(final EClassifier eClassifier) {
+ Class<?> instanceClass = eClassifier.getInstanceClass();
+ if (instanceClass == java.lang.Boolean.TYPE) {
+ return "java.lang.Boolean"; //$NON-NLS-1$
+ }
+ if (instanceClass == java.lang.Byte.TYPE) {
+ return "java.lang.Byte"; //$NON-NLS-1$
+ }
+ if (instanceClass == java.lang.Character.TYPE) {
+ return "java.lang.Character"; //$NON-NLS-1$
+ }
+ if (instanceClass == java.lang.Double.TYPE) {
+ return "java.lang.Double"; //$NON-NLS-1$
+ }
+ if (instanceClass == java.lang.Float.TYPE) {
+ return "java.lang.Float"; //$NON-NLS-1$
+ }
+ if (instanceClass == java.lang.Integer.TYPE) {
+ return "java.lang.Integer"; //$NON-NLS-1$
+ }
+ if (instanceClass == java.lang.Long.TYPE) {
+ return "java.lang.Long"; //$NON-NLS-1$
+ }
+ if (instanceClass == java.lang.Short.TYPE) {
+ return "java.lang.Short"; //$NON-NLS-1$
+ }
+ return null;
+ }
+
+ public static EPackage findEPackage(final String ePackageNsURI) {
+ Assert.isLegal(ePackageNsURI != null && ePackageNsURI.trim().length() > 0);
+
+ EPackage ePackage = EPackage.Registry.INSTANCE.getEPackage(ePackageNsURI);
+ Assert.isTrue(ePackage != null, NLS
+ .bind(Messages.assert_couldNotFindEPackageForNamespaceURI$0, ePackageNsURI));
+ return ePackage;
+ }
+
+ public static EClass findEClass(final EPackage ePackage, final Class<?> javaClass) {
+ return findEClass(ePackage, javaClass.getSimpleName().replaceFirst("Impl$", "")); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public static EClass findEClass(final EPackage ePackage, final String eClassName) {
+ Assert.isNotNull(ePackage);
+ Assert.isLegal(eClassName != null && eClassName.trim().length() > 0);
+
+ EClassifier eOwnerClassifier = ePackage.getEClassifier(eClassName);
+ Assert.isTrue(eOwnerClassifier != null, NLS.bind(
+ Messages.assert_couldNotFindEClassifier$0InEPackage$1, eOwnerClassifier, ePackage
+ .getName()));
+ Assert.isTrue(eOwnerClassifier instanceof EClass, NLS.bind(
+ Messages.assert_typeOfEClassifier$0InEPackage$1IsNotEClass, eOwnerClassifier.getName(),
+ ePackage.getName()));
+ return (EClass) eOwnerClassifier;
+ }
+}
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/EListFactory.java b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/EListFactory.java
new file mode 100755
index 000000000..16eebc35f
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/EListFactory.java
@@ -0,0 +1,295 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Oracle and Geensys.
+ * 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:
+ * Oracle and Geensys - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.teneo.eclipselink.elistfactory;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.util.FeatureMap;
+
+/**
+ * A factory for creating instances of {@link org.eclipse.emf.common.util.EList <em><b>EList</b></em>},
+ * {@link org.eclipse.emf.common.util.EMap <em><b>EMap</b></em>}, and {@link org.eclipse.emf.ecore.util.FeatureMap
+ * <em><b>FeatureMap</b></em>} for a given owner object and structural feature.
+ * <p>
+ * It figures out the appropriate {@link org.eclipse.emf.common.util.EList <em>EList</em>} implementation by analyzing
+ * the Ecore properties of the underlying structural feature. The resulting {@link org.eclipse.emf.common.util.EList
+ * <em>EList</em>} instance is of the very same type as when it is created and retrieved using the structural feature's
+ * get accessor method on its owner class.
+ * </p>
+ */
+public interface EListFactory {
+
+ /**
+ * Temporary singleton instance of the EList factory.
+ * <p>
+ * Should be replaced by a generated subclass of
+ * {@link org.eclipse.emf.teneo.eclipselink.elistfactory.BasicEListFactoryImpl
+ * <em><b>BasicEListFactoryImpl</b></em>} which could be nested into the model factory class and made available by
+ * an additional get accessor on the model factory interface. This ensures that any generator model settings the
+ * EList factory's behavior depends on (e.g. suppress containment, suppress notifiation, feature map wrapper class)
+ * are automatically taken into account and don't need to be repeated an kept up to date in a manually created
+ * subclass of the EList factory.
+ * </p>
+ */
+ public static final EListFactory eINSTANCE = new BasicEListFactoryImpl();
+
+ /**
+ * Creates a new {@link org.eclipse.emf.common.util.EList <em><b>EList</b></em>} instance, of the appropriate type,
+ * and returns it.
+ * <p>
+ * It creates a new instance of the specified owner class, and then creates an
+ * {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance according to the Ecore properties of that owner
+ * class instance and the specified structural feature. Depending on the situation, the resulting
+ * {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance may actually be an
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} or {@link org.eclipse.emf.ecore.util.FeatureMap
+ * <em>FeatureMap</em>} instance. The owner of the resulting {@link org.eclipse.emf.common.util.EList
+ * <em>EList</em>} instance is the newly created owner class instance.
+ * </p>
+ * <p>
+ * This method is useful in cases where an {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance and its
+ * owner object are to be created at once. The new owner object can be retrieved by calling
+ * {@link org.eclipse.emf.ecore.util.EcoreEList#getEObject <code>getEObject()</code>} on the returned
+ * {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance.
+ * </p>
+ *
+ * @param ePackageNsURI
+ * namespace URI of the Ecore package containing <em>eQualifiedOwnerClassName</em>.
+ * @param eOwnerClassName
+ * simple class name of the <em>eStructuralFeatureName</em>'s and the resulting
+ * {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance's owner object.
+ * @param eStructuralFeatureName
+ * name of the structural feature for which the {@link org.eclipse.emf.common.util.EList <em>EList</em>}
+ * instance is to be created.
+ * @return the newly created {@link org.eclipse.emf.common.util.EList <em><b>EList</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ <E> EList<E> createEList(final String ePackageNsURI, final String eOwnerClassName,
+ final String eStructuralFeatureName) throws ClassNotFoundException;
+
+ /**
+ * Creates a new {@link org.eclipse.emf.common.util.EList <em><b>EList</b></em>} instance, of the appropriate type,
+ * and returns it.
+ * <p>
+ * The {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance is created according to the Ecore
+ * properties of the specified owner object and structural feature. Depending on the situation, the resulting
+ * {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance may actually be an
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} or {@link org.eclipse.emf.ecore.util.FeatureMap
+ * <em>FeatureMap</em>} instance. The owner of the resulting {@link org.eclipse.emf.common.util.EList
+ * <em>EList</em>} instance is the specified owner object.
+ * </p>
+ * <p>
+ * This method is useful in cases where an {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance for an
+ * already existing owner object is to be created.
+ * </p>
+ *
+ * @param eOwnerObject
+ * owner object of <em>eStructuralFeatureName</em> as well as the resulting
+ * {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance.
+ * @param eStructuralFeatureName
+ * name of the structural feature for which the {@link org.eclipse.emf.common.util.EList <em>EList</em>}
+ * instance is to be created.
+ * @return the newly created {@link org.eclipse.emf.common.util.EList <em><b>EList</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ <E> EList<E> createEList(final EObject eOwnerObject, final String eStructuralFeatureName)
+ throws ClassNotFoundException;
+
+ /**
+ * Creates a new {@link org.eclipse.emf.common.util.EList <em><b>EList</b></em>} instance, of the appropriate type,
+ * and returns it.
+ * <p>
+ * The {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance is created according to the Ecore
+ * properties of the specified owner object and structural feature. Depending on the situation, the resulting
+ * {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance may actually be an
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} or {@link org.eclipse.emf.ecore.util.FeatureMap
+ * <em>FeatureMap</em>} instance. The owner of the resulting {@link org.eclipse.emf.common.util.EList
+ * <em>EList</em>} instance is the specified owner object.
+ * </p>
+ * <p>
+ * This method is useful in cases where an {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance for an
+ * already existing owner object is to be created.
+ * </p>
+ *
+ * @param eOwnerObject
+ * owner object of <em>eStructuralFeature</em> as well as the resulting
+ * {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance.
+ * @param eStructuralFeature
+ * structural feature for which the {@link org.eclipse.emf.common.util.EList <em>EList</em>} instance is
+ * to be created.
+ * @return the newly created {@link org.eclipse.emf.common.util.EList <em><b>EList</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ <E> EList<E> createEList(final EObject eOwnerObject, final EStructuralFeature eStructuralFeature)
+ throws ClassNotFoundException;
+
+ /**
+ * Creates a new {@link org.eclipse.emf.common.util.EMap <em><b>EMap</b></em>} instance, of the appropriate type,
+ * and returns it.
+ * <p>
+ * It creates a new instance of the specified owner class, and then creates an
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance according to the Ecore properties of that owner
+ * class instance and the specified structural feature. The owner of the resulting
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance is the newly created owner class instance.
+ * </p>
+ * <p>
+ * This method is useful in cases where an {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance and its
+ * owner object are to be created at once. The new owner object can be retrieved by calling
+ * {@link org.eclipse.emf.ecore.util.EcoreEMap#getEObject <code>getEObject()</code>} on the returned
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance.
+ * </p>
+ *
+ * @param ePackageNsURI
+ * namespace URI of the Ecore package containing <em>eQualifiedOwnerClassName</em>.
+ * @param eOwnerClassName
+ * simple class name of the <em>eStructuralFeatureName</em>'s and the resulting
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance's owner object.
+ * @param eStructuralFeatureName
+ * name of the structural feature for which the {@link org.eclipse.emf.common.util.EMap <em>EMap</em>}
+ * instance is to be created.
+ * @return the newly created {@link org.eclipse.emf.common.util.EMap <em><b>EMap</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ <K, V> EMap<K, V> createEMap(final String ePackageNsURI, final String eOwnerClassName,
+ final String eStructuralFeatureName) throws ClassNotFoundException;
+
+ /**
+ * Creates a new {@link org.eclipse.emf.common.util.EMap <em><b>EMap</b></em>} instance, of the appropriate type,
+ * and returns it.
+ * <p>
+ * The {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance is created according to the Ecore properties
+ * of the specified owner object and structural feature. The owner of the resulting
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance is the specified owner object.
+ * </p>
+ * <p>
+ * This method is useful in cases where an {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance for an
+ * already existing owner object is to be created.
+ * </p>
+ *
+ * @param eOwnerObject
+ * owner object of <em>eStructuralFeatureName</em> as well as the resulting
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance.
+ * @param eStructuralFeatureName
+ * name of the structural feature for which the {@link org.eclipse.emf.common.util.EMap <em>EMap</em>}
+ * instance is to be created.
+ * @return the newly created {@link org.eclipse.emf.common.util.EMap <em><b>EMap</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ <K, V> EMap<K, V> createEMap(final EObject eOwnerObject, final String eStructuralFeatureName)
+ throws ClassNotFoundException;
+
+ /**
+ * Creates a new {@link org.eclipse.emf.common.util.EMap <em><b>EMap</b></em>} instance, of the appropriate type,
+ * and returns it.
+ * <p>
+ * The {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance is created according to the Ecore properties
+ * of the specified owner object and structural feature. The owner of the resulting
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance is the specified owner object.
+ * </p>
+ * <p>
+ * This method is useful in cases where an {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance for an
+ * already existing owner object is to be created.
+ * </p>
+ *
+ * @param eOwnerObject
+ * owner object of <em>eStructuralFeature</em> as well as the resulting
+ * {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance.
+ * @param eStructuralFeature
+ * structural feature for which the {@link org.eclipse.emf.common.util.EMap <em>EMap</em>} instance is to
+ * be created.
+ * @return the newly created {@link org.eclipse.emf.common.util.EMap <em><b>EMap</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ <K, V> EMap<K, V> createEMap(final EObject eOwnerObject, final EStructuralFeature eStructuralFeature)
+ throws ClassNotFoundException;
+
+ /**
+ * Creates a new {@link org.eclipse.emf.ecore.util.FeatureMap <em><b>FeatureMap</b></em>} instance, of the
+ * appropriate type, and returns it.
+ * <p>
+ * It creates a new instance of the specified owner class, and then creates an
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance according to the Ecore properties of
+ * that owner class instance and the specified structural feature. The owner of the resulting
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance is the newly created owner class
+ * instance.
+ * </p>
+ * <p>
+ * This method is useful in cases where a {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance
+ * and its owner object are to be created at once. The new owner object can be retrieved by calling
+ * {@link org.eclipse.emf.ecore.util.BasicFeatureMap#getEObject <code>getEObject()</code>} on the returned
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance.
+ * </p>
+ *
+ * @param ePackageNsURI
+ * namespace URI of the Ecore package containing <em>eQualifiedOwnerClassName</em>.
+ * @param eOwnerClassName
+ * simple class name of the <em>eStructuralFeatureName</em>'s and the resulting
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance's owner object.
+ * @param eStructuralFeatureName
+ * name of the structural feature for which the {@link org.eclipse.emf.ecore.util.FeatureMap
+ * <em>FeatureMap</em>} instance is to be created.
+ * @return the newly created {@link org.eclipse.emf.ecore.util.FeatureMap <em><b>FeatureMap</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ FeatureMap createFeatureMap(final String ePackageNsURI, final String eOwnerClassName,
+ final String eStructuralFeatureName) throws ClassNotFoundException;
+
+ /**
+ * Creates a new {@link org.eclipse.emf.ecore.util.FeatureMap <em><b>FeatureMap</b></em>} instance, of the
+ * appropriate type, and returns it.
+ * <p>
+ * The {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance is created according to the Ecore
+ * properties of the specified owner object and structural feature. The owner of the resulting
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance is the specified owner object.
+ * </p>
+ * <p>
+ * This method is useful in cases where a {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance
+ * for an already existing owner object is to be created.
+ * </p>
+ *
+ * @param eOwnerObject
+ * owner object of <em>eStructuralFeatureName</em> as well as the resulting
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance.
+ * @param eStructuralFeatureName
+ * name of the structural feature for which the {@link org.eclipse.emf.ecore.util.FeatureMap
+ * <em>FeatureMap</em>} instance is to be created.
+ * @return the newly created {@link org.eclipse.emf.ecore.util.FeatureMap <em><b>FeatureMap</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ FeatureMap createFeatureMap(final EObject eOwnerObject, final String eStructuralFeatureName)
+ throws ClassNotFoundException;
+
+ /**
+ * Creates a new {@link org.eclipse.emf.ecore.util.FeatureMap <em><b>FeatureMap</b></em>} instance, of the
+ * appropriate type, and returns it.
+ * <p>
+ * The {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance is created according to the Ecore
+ * properties of the specified owner object and structural feature. The owner of the resulting
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance is the specified owner object.
+ * </p>
+ * <p>
+ * This method is useful in cases where an {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>}
+ * instance for an already existing owner object is to be created.
+ * </p>
+ *
+ * @param eOwnerObject
+ * owner object of <em>eStructuralFeature</em> as well as the resulting
+ * {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>} instance.
+ * @param eStructuralFeature
+ * structural feature for which the {@link org.eclipse.emf.ecore.util.FeatureMap <em>FeatureMap</em>}
+ * instance is to be created.
+ * @return the newly created {@link org.eclipse.emf.ecore.util.FeatureMap <em><b>FeatureMap</b></em>} instance.
+ * @throws ClassNotFoundException
+ */
+ FeatureMap createFeatureMap(final EObject eOwnerObject, final EStructuralFeature eStructuralFeature)
+ throws ClassNotFoundException;
+} \ No newline at end of file
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/ExtendedMetaDataUtil.java b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/ExtendedMetaDataUtil.java
new file mode 100755
index 000000000..5644a1441
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/ExtendedMetaDataUtil.java
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Oracle and Geensys.
+ * 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:
+ * Oracle and Geensys - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.teneo.eclipselink.elistfactory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.impl.EPackageRegistryImpl;
+import org.eclipse.emf.ecore.util.BasicExtendedMetaData;
+import org.eclipse.emf.ecore.util.ExtendedMetaData;
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+
+public class ExtendedMetaDataUtil {
+
+ private static ExtendedMetaData extendedMetaData = null;
+
+ public static ExtendedMetaData getExtendedMetaData(final EClassifier eClassifier) {
+ if (extendedMetaData == null) {
+ extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE));
+ }
+ EPackage ePackage = eClassifier.getEPackage();
+ if (extendedMetaData.getPackage(ePackage.getNsURI()) == null) {
+ populateExtendedMetaData(extendedMetaData, Collections.singletonList(ePackage));
+ }
+ if (extendedMetaData.getPackage(ExtendedMetaData.XML_SCHEMA_URI) == null) {
+ extendedMetaData.putPackage(ExtendedMetaData.XML_SCHEMA_URI, extendedMetaData
+ .getPackage(XMLTypePackage.eNS_URI));
+ }
+ return extendedMetaData;
+ }
+
+ private static void populateExtendedMetaData(final ExtendedMetaData extendedMetaData, final List<EPackage> ePackages) {
+ for (EPackage package1 : ePackages) {
+ EPackage ePackage = package1;
+ if (ePackage != null) {
+ if (!EcorePackage.eNS_URI.equals(ePackage.getNsURI())) {
+ extendedMetaData.putPackage(ePackage.getNsURI(), ePackage);
+ }
+ populateExtendedMetaData(extendedMetaData, ePackage.getESubpackages());
+ }
+ }
+ }
+}
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/internal/messages/Messages.java b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/internal/messages/Messages.java
new file mode 100755
index 000000000..1c9683e1e
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/internal/messages/Messages.java
@@ -0,0 +1,22 @@
+package org.eclipse.emf.teneo.eclipselink.elistfactory.internal.messages;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.eclipse.emf.teneo.eclipselink.elistfactory.internal.messages.messages"; //$NON-NLS-1$
+ public static String assert_couldNotFindEClassifier$0InEPackage$1;
+ public static String assert_couldNotFindEPackageForNamespaceURI$0;
+ public static String assert_couldNotFindEPackageInterfaceOfEPackageClass$0;
+ public static String assert_couldNotFindFeature$0InEClass$1;
+ public static String assert_featureMustBeNonVolatileFeatureMapEntryType;
+ public static String assert_featureMustBeNonVolatileListItemType;
+ public static String assert_featureMustBeNonVolatileMapEntryType;
+ public static String assert_typeOfEClassifier$0InEPackage$1IsNotEClass;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
diff --git a/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/internal/messages/messages.properties b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/internal/messages/messages.properties
new file mode 100755
index 000000000..1232decfd
--- /dev/null
+++ b/eclipselink/org.eclipse.emf.teneo.eclipselink.elistfactory/src/org/eclipse/emf/teneo/eclipselink/elistfactory/internal/messages/messages.properties
@@ -0,0 +1,8 @@
+assert_couldNotFindEClassifier$0InEPackage$1=Could not find Ecore classifier named "{0}" in Ecore package "{1}".
+assert_couldNotFindEPackageForNamespaceURI$0=Could not find Ecore package for namespace URI "{0}".
+assert_couldNotFindEPackageInterfaceOfEPackageClass$0=Could not find Ecore package interface of Ecore package class "{0}".
+assert_couldNotFindFeature$0InEClass$1=Could not find Ecore feature named "{0}" on Ecore class "{1}".
+assert_featureMustBeNonVolatileFeatureMapEntryType=Argument for parameter "eStructuralFeature" must be configured as non-volatile and has to be a feature map entry type
+assert_featureMustBeNonVolatileListItemType=Argument for parameter "eStructuralFeature" must be configured as non-volatile and has to be a list item type
+assert_featureMustBeNonVolatileMapEntryType=Argument for parameter "eStructuralFeature" must be configured as non-volatile and has to be a map entry type
+assert_typeOfEClassifier$0InEPackage$1IsNotEClass=Type of Ecore classifier "{0}" in Ecore package "{1}" is not "EClass".

Back to the top