diff options
author | Quentin Le Menez | 2018-01-09 10:09:46 +0000 |
---|---|---|
committer | Quentin Le Menez | 2018-01-09 13:18:15 +0000 |
commit | d98116b5b376f18b6cf626ba4158a35fe9a4a64e (patch) | |
tree | 4458c9c5ada0a216b385813a56ea9a9b8c7b6509 /tests/junit/plugins/uml | |
parent | 453e99bc2dcbd5fabad100f9d0d5f682013c3b19 (diff) | |
download | org.eclipse.papyrus-d98116b5b376f18b6cf626ba4158a35fe9a4a64e.tar.gz org.eclipse.papyrus-d98116b5b376f18b6cf626ba4158a35fe9a4a64e.tar.xz org.eclipse.papyrus-d98116b5b376f18b6cf626ba4158a35fe9a4a64e.zip |
Bug 515367 - [releng] Uniformization of the end of lines to Unix standard
- Format the EOL of all the files matched by: grep -rIUs . | xargs -Ifile dos2unix -k 'file'
Change-Id: I5c41d540a9a67b50de9b912ab35e16cc9a912961
Signed-off-by: Quentin Le Menez <quentin.lemenez@cea.fr>
Diffstat (limited to 'tests/junit/plugins/uml')
744 files changed, 67650 insertions, 67650 deletions
diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.classpath b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.classpath index b1dabee3829..098194ca4b7 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.classpath +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.classpath @@ -1,7 +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/JavaSE-1.7"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?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/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.project b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.project index f0f5cd74caf..1f60e10c575 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.project +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.project @@ -1,28 +1,28 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.uml.alf.backend.tests</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>
+<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.papyrus.uml.alf.backend.tests</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/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.settings/org.eclipse.jdt.core.prefs b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.settings/org.eclipse.jdt.core.prefs index 9ca8e68231b..f08be2b06c4 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.settings/org.eclipse.jdt.core.prefs +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/.settings/org.eclipse.jdt.core.prefs @@ -1,291 +1,291 @@ -eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
-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_annotation=0
-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_method_declaration=0
-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_resources_in_try=80
-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.alignment_for_union_type_in_multicatch=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_lambda_body=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=260
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-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.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-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_field=insert
-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_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=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_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=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_after_type_annotation=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_lambda_arrow=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_try=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_semicolon_in_try_resources=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_try=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_lambda_arrow=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_try=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_semicolon_in_try_resources=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=false
-org.eclipse.jdt.core.formatter.join_wrapped_lines=false
-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=260
-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=5
-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_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 +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_annotation=0 +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_method_declaration=0 +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_resources_in_try=80 +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.alignment_for_union_type_in_multicatch=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_lambda_body=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=260 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +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.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +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_field=insert +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_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=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_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=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_after_type_annotation=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_lambda_arrow=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_try=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_semicolon_in_try_resources=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_try=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_lambda_arrow=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_try=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_semicolon_in_try_resources=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=false +org.eclipse.jdt.core.formatter.join_wrapped_lines=false +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=260 +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=5 +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_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/META-INF/MANIFEST.MF index a65c98de860..263ced7a771 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/META-INF/MANIFEST.MF @@ -1,25 +1,25 @@ -Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: ALF Backend Tests
-Bundle-SymbolicName: org.eclipse.papyrus.uml.alf.backend.tests;singleton:=true
-Bundle-Version: 1.1.0.qualifier
-Bundle-Activator: org.eclipse.papyrus.uml.alf.backend.tests.Activator
-Require-Bundle: org.eclipse.core.runtime,
- org.junit,
- org.eclipse.papyrus.junit.utils;bundle-version="[2.0.0,3.0.0)",
- org.eclipse.emf.ecore;bundle-version="2.11.0",
- org.eclipse.uml2.uml;bundle-version="[5.3.0,6.0.0)",
- org.eclipse.emf.edit;bundle-version="2.11.0",
- org.eclipse.core.commands;bundle-version="3.7.0",
- org.eclipse.papyrus.infra.core;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.emf.transaction;bundle-version="1.9.0",
- org.eclipse.papyrus.junit.framework;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.uml.alf.libraries;bundle-version="[2.0.0,3.0.0)",
- org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.gmf.common;bundle-version="1.3.0",
- org.eclipse.gmf.runtime.common.core;bundle-version="1.7.0",
- org.eclipse.gmf.runtime.emf.commands.core;bundle-version="1.7.0",
- org.eclipse.papyrus.uml.extensionpoints;bundle-version="[1.2.0,2.0.0)"
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
-Bundle-ActivationPolicy: lazy
-Bundle-Vendor: Eclipse Modeling Project
+Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: ALF Backend Tests +Bundle-SymbolicName: org.eclipse.papyrus.uml.alf.backend.tests;singleton:=true +Bundle-Version: 1.1.0.qualifier +Bundle-Activator: org.eclipse.papyrus.uml.alf.backend.tests.Activator +Require-Bundle: org.eclipse.core.runtime, + org.junit, + org.eclipse.papyrus.junit.utils;bundle-version="[2.0.0,3.0.0)", + org.eclipse.emf.ecore;bundle-version="2.11.0", + org.eclipse.uml2.uml;bundle-version="[5.3.0,6.0.0)", + org.eclipse.emf.edit;bundle-version="2.11.0", + org.eclipse.core.commands;bundle-version="3.7.0", + org.eclipse.papyrus.infra.core;bundle-version="[3.0.0,4.0.0)", + org.eclipse.emf.transaction;bundle-version="1.9.0", + org.eclipse.papyrus.junit.framework;bundle-version="[1.2.0,2.0.0)", + org.eclipse.papyrus.uml.alf.libraries;bundle-version="[2.0.0,3.0.0)", + org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="[3.0.0,4.0.0)", + org.eclipse.gmf.common;bundle-version="1.3.0", + org.eclipse.gmf.runtime.common.core;bundle-version="1.7.0", + org.eclipse.gmf.runtime.emf.commands.core;bundle-version="1.7.0", + org.eclipse.papyrus.uml.extensionpoints;bundle-version="[1.2.0,2.0.0)" +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-ActivationPolicy: lazy +Bundle-Vendor: Eclipse Modeling Project diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/about.html b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/about.html index 209103075a7..dd3c089a94c 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/about.html +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/about.html @@ -1,28 +1,28 @@ -<!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>November 14, 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>
+<!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>November 14, 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/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/build.properties b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/build.properties index 783f3733b01..00342acaf66 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/build.properties +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/build.properties @@ -1,7 +1,7 @@ -source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- test-models/,\
- about.html
-src.includes = about.html
+source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + test-models/,\ + about.html +src.includes = about.html diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/Activator.java b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/Activator.java index 411fb99eaf8..f9d8d397629 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/Activator.java +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/Activator.java @@ -1,30 +1,30 @@ -package org.eclipse.papyrus.uml.alf.backend.tests;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-public class Activator implements BundleActivator {
-
- private static BundleContext context;
-
- static BundleContext getContext() {
- return context;
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext bundleContext) throws Exception {
- Activator.context = bundleContext;
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext bundleContext) throws Exception {
- Activator.context = null;
- }
-
-}
+package org.eclipse.papyrus.uml.alf.backend.tests; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class Activator implements BundleActivator { + + private static BundleContext context; + + static BundleContext getContext() { + return context; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext bundleContext) throws Exception { + Activator.context = bundleContext; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext bundleContext) throws Exception { + Activator.context = null; + } + +} diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/AlfUtilTests.java b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/AlfUtilTests.java index 51dbaee89e7..2d01b4527d1 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/AlfUtilTests.java +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/AlfUtilTests.java @@ -1,162 +1,162 @@ -package org.eclipse.papyrus.uml.alf.backend.tests;
-
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.transaction.util.TransactionUtil;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
-import org.eclipse.papyrus.infra.emf.gmf.command.GMFtoEMFCommandWrapper;
-import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest;
-import org.eclipse.papyrus.junit.utils.rules.ModelSetFixture;
-import org.eclipse.papyrus.junit.utils.rules.PluginResource;
-import org.eclipse.papyrus.uml.alf.libraries.helper.AlfUtil;
-import org.eclipse.papyrus.uml.extensionpoints.profile.IRegisteredProfile;
-import org.eclipse.papyrus.uml.extensionpoints.profile.RegisteredProfile;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.Profile;
-import org.junit.Assert;
-import org.junit.Rule;
-import org.junit.Test;
-
-public class AlfUtilTests extends AbstractPapyrusTest {
-
- @Rule
- public final ModelSetFixture modelSetFixture = new ModelSetFixture();
-
- @Test
- @PluginResource({ "test-models/empty-model.di" })
- public void testActionLanguageNotApplied() {
- Assert.assertFalse(AlfUtil.getInstance().isActionLanguageProfileApplied(this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/empty-model.di" })
- public void testStandardProfileNotapplied() {
- Assert.assertFalse(AlfUtil.getInstance().isStandardProfileApplied(this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/empty-model.di" })
- public void testActionLanguageProfileApplication() {
- AlfUtil.getInstance().applyActionLanguageProfile(
- this.modelSetFixture.getModel());
- List<Profile> appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles();
- Assert.assertEquals("Unexpected number of applied profiles",
- 1, appliedProfiles.size());
- Assert.assertTrue(appliedProfiles.get(0).getName().equals("ActionLanguage"));
- AlfUtil.getInstance().applyActionLanguageProfile(
- this.modelSetFixture.getModel());
- appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles();
- Assert.assertEquals("Unexpected number of applied profiles",
- 1, appliedProfiles.size());
- Assert.assertTrue("The action language profile should detected as applied", AlfUtil.getInstance().isActionLanguageProfileApplied(this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/empty-model.di" })
- public void testStandardProfileApplication() {
- AlfUtil.getInstance().applyStandardProfile(
- this.modelSetFixture.getModel());
- List<Profile> appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles();
- Assert.assertEquals("Unexpected number of applied profiles",
- 1, appliedProfiles.size());
- AlfUtil.getInstance().applyStandardProfile(
- this.modelSetFixture.getModel());
- appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles();
- Assert.assertEquals("Unexpected number of applied profiles",
- 1, appliedProfiles.size());
- Assert.assertTrue("The standard profile should detected as applied", AlfUtil.getInstance().
- isStandardProfileApplied(this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/empty-model.di" })
- public void testProfileLoading() {
- Iterator<Resource> resourcesIterator = this.modelSetFixture.getResourceSet().getResources().iterator();
- IRegisteredProfile registeredProfile = RegisteredProfile.getRegisteredProfile("ActionLanguage");
- if (registeredProfile == null) {
- Assert.fail("The Action language profile should a registered profile of Papyrus");
- }
- while (resourcesIterator.hasNext()) {
- if (resourcesIterator.next().getURI().equals(registeredProfile.getUri())) {
- Assert.fail("The Action language profile should not already be loaded");
- }
- }
- /* A. The profile must be loaded in a Resource located in the resource set of the current model */
- Profile actionLanguageProfileRef1 = AlfUtil.getInstance().loadProfile((Model) this.modelSetFixture.getModel(), "ActionLanguage");
- resourcesIterator = this.modelSetFixture.getResourceSet().getResources().iterator();
- Resource foundResource = null;
- while (foundResource == null && resourcesIterator.hasNext()) {
- Resource current = resourcesIterator.next();
- if (current.getURI().equals(registeredProfile.getUri())) {
- foundResource = current;
- }
- }
- Assert.assertNotNull("The action language profile was not loaded", foundResource);
- /* B. If we retry to load the profile the number of loaded resource does not vary */
- int sizeBeforeLoading = this.modelSetFixture.getResourceSet().getResources().size();
- Profile actionLanguageProfileRef2 = AlfUtil.getInstance().loadProfile((Model) this.modelSetFixture.getModel(), "ActionLanguage");
- int sizeAfterLoading = this.modelSetFixture.getResourceSet().getResources().size();
- Assert.assertEquals("The number of loaded resources must be the same", sizeBeforeLoading,
- sizeAfterLoading);
- Assert.assertTrue("Both references should point on the same profile instance",
- actionLanguageProfileRef1==actionLanguageProfileRef2);
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testDetectTextualRepresentationStereotype() {
- Class testClass1 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass1");
- Class testClass2 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass2");
- final Class testClass3 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass3");
- Assert.assertNotNull(testClass1);
- Assert.assertNotNull(testClass2);
- Assert.assertNotNull(testClass3);
- /* A. TestClass1 must have a textual representation comment */
- Assert.assertNotNull(AlfUtil.getInstance().getTextualRepresentationComment(testClass1));
- /* B. TestClass2 must have a textual representation comment */
- Assert.assertNotNull(AlfUtil.getInstance().getTextualRepresentationComment(testClass2));
- /* C. TestClass3 must not have a textual representation comment */
- Assert.assertNull(AlfUtil.getInstance().getTextualRepresentationComment(testClass3));
- /* D. TestClass3 must now have a textual representation comment */
- TransactionalEditingDomain domain = TransactionUtil.getEditingDomain(this.modelSetFixture.getModel());
- GMFtoEMFCommandWrapper command = new GMFtoEMFCommandWrapper(
- new AbstractTransactionalCommand(domain, "", Collections.EMPTY_LIST) {
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- AlfUtil.getInstance().applyTextualRepresentation(testClass3.getOwnedComments().get(0));
- return CommandResult.newOKCommandResult();
- }
- });
- domain.getCommandStack().execute(command);
- Assert.assertNotNull(AlfUtil.getInstance().getTextualRepresentationComment(testClass3));
- /*E. Another attempt to apply the textual representation stereotype should not result in an error*/
- try{
- domain.getCommandStack().execute(command);
- }catch(Exception e){
- Assert.fail(e.getMessage());
- }
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testRetrieveActionLanguageProfileReference(){
- Assert.assertNotNull("It should be possible to obtain a reference on the action language profile",
- AlfUtil.getInstance().getActionLanguageProfile((Model)this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testRetrieveStandardProfileReference(){
- Assert.assertNotNull("It should be possible to obtain a reference on the standard profile",
- AlfUtil.getInstance().getStandardProfile((Model)this.modelSetFixture.getModel()));
- }
-}
+package org.eclipse.papyrus.uml.alf.backend.tests; + +import java.util.Collections; +import java.util.Iterator; +import java.util.List; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.emf.transaction.util.TransactionUtil; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; +import org.eclipse.papyrus.infra.emf.gmf.command.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest; +import org.eclipse.papyrus.junit.utils.rules.ModelSetFixture; +import org.eclipse.papyrus.junit.utils.rules.PluginResource; +import org.eclipse.papyrus.uml.alf.libraries.helper.AlfUtil; +import org.eclipse.papyrus.uml.extensionpoints.profile.IRegisteredProfile; +import org.eclipse.papyrus.uml.extensionpoints.profile.RegisteredProfile; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Model; +import org.eclipse.uml2.uml.Profile; +import org.junit.Assert; +import org.junit.Rule; +import org.junit.Test; + +public class AlfUtilTests extends AbstractPapyrusTest { + + @Rule + public final ModelSetFixture modelSetFixture = new ModelSetFixture(); + + @Test + @PluginResource({ "test-models/empty-model.di" }) + public void testActionLanguageNotApplied() { + Assert.assertFalse(AlfUtil.getInstance().isActionLanguageProfileApplied(this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/empty-model.di" }) + public void testStandardProfileNotapplied() { + Assert.assertFalse(AlfUtil.getInstance().isStandardProfileApplied(this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/empty-model.di" }) + public void testActionLanguageProfileApplication() { + AlfUtil.getInstance().applyActionLanguageProfile( + this.modelSetFixture.getModel()); + List<Profile> appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles(); + Assert.assertEquals("Unexpected number of applied profiles", + 1, appliedProfiles.size()); + Assert.assertTrue(appliedProfiles.get(0).getName().equals("ActionLanguage")); + AlfUtil.getInstance().applyActionLanguageProfile( + this.modelSetFixture.getModel()); + appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles(); + Assert.assertEquals("Unexpected number of applied profiles", + 1, appliedProfiles.size()); + Assert.assertTrue("The action language profile should detected as applied", AlfUtil.getInstance().isActionLanguageProfileApplied(this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/empty-model.di" }) + public void testStandardProfileApplication() { + AlfUtil.getInstance().applyStandardProfile( + this.modelSetFixture.getModel()); + List<Profile> appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles(); + Assert.assertEquals("Unexpected number of applied profiles", + 1, appliedProfiles.size()); + AlfUtil.getInstance().applyStandardProfile( + this.modelSetFixture.getModel()); + appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles(); + Assert.assertEquals("Unexpected number of applied profiles", + 1, appliedProfiles.size()); + Assert.assertTrue("The standard profile should detected as applied", AlfUtil.getInstance(). + isStandardProfileApplied(this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/empty-model.di" }) + public void testProfileLoading() { + Iterator<Resource> resourcesIterator = this.modelSetFixture.getResourceSet().getResources().iterator(); + IRegisteredProfile registeredProfile = RegisteredProfile.getRegisteredProfile("ActionLanguage"); + if (registeredProfile == null) { + Assert.fail("The Action language profile should a registered profile of Papyrus"); + } + while (resourcesIterator.hasNext()) { + if (resourcesIterator.next().getURI().equals(registeredProfile.getUri())) { + Assert.fail("The Action language profile should not already be loaded"); + } + } + /* A. The profile must be loaded in a Resource located in the resource set of the current model */ + Profile actionLanguageProfileRef1 = AlfUtil.getInstance().loadProfile((Model) this.modelSetFixture.getModel(), "ActionLanguage"); + resourcesIterator = this.modelSetFixture.getResourceSet().getResources().iterator(); + Resource foundResource = null; + while (foundResource == null && resourcesIterator.hasNext()) { + Resource current = resourcesIterator.next(); + if (current.getURI().equals(registeredProfile.getUri())) { + foundResource = current; + } + } + Assert.assertNotNull("The action language profile was not loaded", foundResource); + /* B. If we retry to load the profile the number of loaded resource does not vary */ + int sizeBeforeLoading = this.modelSetFixture.getResourceSet().getResources().size(); + Profile actionLanguageProfileRef2 = AlfUtil.getInstance().loadProfile((Model) this.modelSetFixture.getModel(), "ActionLanguage"); + int sizeAfterLoading = this.modelSetFixture.getResourceSet().getResources().size(); + Assert.assertEquals("The number of loaded resources must be the same", sizeBeforeLoading, + sizeAfterLoading); + Assert.assertTrue("Both references should point on the same profile instance", + actionLanguageProfileRef1==actionLanguageProfileRef2); + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testDetectTextualRepresentationStereotype() { + Class testClass1 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass1"); + Class testClass2 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass2"); + final Class testClass3 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass3"); + Assert.assertNotNull(testClass1); + Assert.assertNotNull(testClass2); + Assert.assertNotNull(testClass3); + /* A. TestClass1 must have a textual representation comment */ + Assert.assertNotNull(AlfUtil.getInstance().getTextualRepresentationComment(testClass1)); + /* B. TestClass2 must have a textual representation comment */ + Assert.assertNotNull(AlfUtil.getInstance().getTextualRepresentationComment(testClass2)); + /* C. TestClass3 must not have a textual representation comment */ + Assert.assertNull(AlfUtil.getInstance().getTextualRepresentationComment(testClass3)); + /* D. TestClass3 must now have a textual representation comment */ + TransactionalEditingDomain domain = TransactionUtil.getEditingDomain(this.modelSetFixture.getModel()); + GMFtoEMFCommandWrapper command = new GMFtoEMFCommandWrapper( + new AbstractTransactionalCommand(domain, "", Collections.EMPTY_LIST) { + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + AlfUtil.getInstance().applyTextualRepresentation(testClass3.getOwnedComments().get(0)); + return CommandResult.newOKCommandResult(); + } + }); + domain.getCommandStack().execute(command); + Assert.assertNotNull(AlfUtil.getInstance().getTextualRepresentationComment(testClass3)); + /*E. Another attempt to apply the textual representation stereotype should not result in an error*/ + try{ + domain.getCommandStack().execute(command); + }catch(Exception e){ + Assert.fail(e.getMessage()); + } + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testRetrieveActionLanguageProfileReference(){ + Assert.assertNotNull("It should be possible to obtain a reference on the action language profile", + AlfUtil.getInstance().getActionLanguageProfile((Model)this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testRetrieveStandardProfileReference(){ + Assert.assertNotNull("It should be possible to obtain a reference on the standard profile", + AlfUtil.getInstance().getStandardProfile((Model)this.modelSetFixture.getModel())); + } +} diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/AllTests.java b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/AllTests.java index b4e4e90f078..cbd870fc80a 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/AllTests.java +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/AllTests.java @@ -1,11 +1,11 @@ -package org.eclipse.papyrus.uml.alf.backend.tests;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-import org.junit.runners.Suite.SuiteClasses;
-
-@RunWith(Suite.class)
-@SuiteClasses({AlfUtilTests.class, BackupUtilTests.class})
-public class AllTests {
-
-}
+package org.eclipse.papyrus.uml.alf.backend.tests; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({AlfUtilTests.class, BackupUtilTests.class}) +public class AllTests { + +} diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/BackupUtilTests.java b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/BackupUtilTests.java index 767ac96106d..e1868a4eeea 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/BackupUtilTests.java +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/src/org/eclipse/papyrus/uml/alf/backend/tests/BackupUtilTests.java @@ -1,144 +1,144 @@ -package org.eclipse.papyrus.uml.alf.backend.tests;
-
-import java.sql.Timestamp;
-import java.util.Calendar;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.transaction.util.TransactionUtil;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
-import org.eclipse.papyrus.infra.emf.gmf.command.GMFtoEMFCommandWrapper;
-import org.eclipse.papyrus.junit.utils.rules.ModelSetFixture;
-import org.eclipse.papyrus.junit.utils.rules.PluginResource;
-import org.eclipse.papyrus.uml.alf.libraries.helper.BackupState;
-import org.eclipse.papyrus.uml.alf.libraries.helper.BackupState.EditionStatus;
-import org.eclipse.papyrus.uml.alf.libraries.helper.BackupUtil;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.Profile;
-import org.eclipse.uml2.uml.Enumeration;
-import org.eclipse.uml2.uml.Stereotype;
-import org.junit.Assert;
-import org.junit.Rule;
-import org.junit.Test;
-
-public class BackupUtilTests {
-
- @Rule
- public final ModelSetFixture modelSetFixture = new ModelSetFixture();
-
- @Test
- @PluginResource({ "test-models/empty-model.di" })
- public void testBackupProfileNotApplied(){
- Assert.assertFalse(BackupUtil.getInstance().
- isBackupProfileApplied(this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testBackupProfileIsApplied(){
- Assert.assertTrue("The backup profile should be applied", BackupUtil.getInstance().
- isBackupProfileApplied(this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testRetrieveBackupProfileReference(){
- Assert.assertNotNull("It should be possible to obtain a reference on the backup profile",
- BackupUtil.getInstance().getBackupProfile((Model)this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/empty-model.di" })
- public void testBackupProfileApplication(){
- BackupUtil.getInstance().applyBackupProfile(
- this.modelSetFixture.getModel());
- List<Profile> appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles();
- Assert.assertEquals("Unexpected number of applied profiles",
- 1, appliedProfiles.size());
- BackupUtil.getInstance().applyBackupProfile(
- this.modelSetFixture.getModel());
- appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles();
- Assert.assertEquals("Unexpected number of applied profiles",
- 1, appliedProfiles.size());
- Assert.assertTrue("The backup profile should be detected as being applied",
- BackupUtil.getInstance().isBackupProfileApplied(this.modelSetFixture.getModel()));
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testRetrievalOfBackupStereotype(){
- Class testClass1 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass1");
- Stereotype backupStereotype = BackupUtil.getInstance().getBackupStereotype(testClass1);
- Assert.assertNotNull("In this context the Backup stereotype should be accessible", backupStereotype);
- Assert.assertTrue(BackupUtil.getInstance().getBackupProfile((Model)this.modelSetFixture.getModel())
- == backupStereotype.getProfile());
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testRetrievalOfBackupStateDefinition(){
- Class testClass1 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass1");
- Enumeration backupState = BackupUtil.getInstance().getBackupStateDefinition(testClass1);
- Assert.assertNotNull("In this context the BackupState type should be accessible", backupState);
- Assert.assertTrue(BackupUtil.getInstance().getBackupProfile((Model)this.modelSetFixture.getModel())
- == backupState.getOwner());
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testDetectBackupStereotype(){
- Class testClass1 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass1");
- Class testClass2 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass2");
- final Class testClass3 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass3");
- Assert.assertNotNull(testClass1);
- Assert.assertNotNull(testClass2);
- Assert.assertNotNull(testClass3);
- /*A. The backup stereotype must be applied on a comment owned by TestClass1*/
- Assert.assertNotNull(BackupUtil.getInstance().getBackupComment(testClass1));
- /*B. The backup stereotype must be applied on a comment owned by TestClass2*/
- Assert.assertNotNull(BackupUtil.getInstance().getBackupComment(testClass2));
- /*C. The backup stereotype must not be applied on comment owned by TestClass3*/
- Assert.assertNull(BackupUtil.getInstance().getBackupComment(testClass3));
- }
-
- @Test
- @PluginResource({ "test-models/model-with-alf.di" })
- public void testBackupStereotypeApplication(){
- final Class testClass3 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass3");
- Assert.assertNotNull(testClass3);
- /*A.Apply the stereotype and set the properties values*/
- final Timestamp timestamp = new Timestamp(Calendar.getInstance().getTimeInMillis());
- TransactionalEditingDomain domain = TransactionUtil.getEditingDomain(this.modelSetFixture.getModel());
- GMFtoEMFCommandWrapper command = new GMFtoEMFCommandWrapper(
- new AbstractTransactionalCommand(domain, "", Collections.EMPTY_LIST) {
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- BackupState state = new BackupState();
- state.timestamp = timestamp;
- state.status = EditionStatus.MERGED;
- BackupUtil.getInstance().applyBackup(testClass3.getOwnedComments().get(0), state);
- return CommandResult.newOKCommandResult();
- }
- });
- domain.getCommandStack().execute(command);
- /*B. Ensure it was correctly applied (i.e., check properties values)*/
- Comment stereotypedComment = BackupUtil.getInstance().getBackupComment(testClass3);
- Assert.assertNotNull(stereotypedComment);
- BackupState state = BackupUtil.getInstance().getBackupState(stereotypedComment);
- Assert.assertEquals("Timestamps should be equivalent", timestamp, state.timestamp);
- Assert.assertEquals("Edition status should be equivalent", EditionStatus.MERGED, state.status);
- /*C. Another attempt to apply the stereotype should not result in an error*/
- try{
- domain.getCommandStack().execute(command);
- }catch(Exception e){
- Assert.fail(e.getMessage());
- }
- }
-}
+package org.eclipse.papyrus.uml.alf.backend.tests; + +import java.sql.Timestamp; +import java.util.Calendar; +import java.util.Collections; +import java.util.List; + +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.emf.transaction.util.TransactionUtil; +import org.eclipse.gmf.runtime.common.core.command.CommandResult; +import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand; +import org.eclipse.papyrus.infra.emf.gmf.command.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.junit.utils.rules.ModelSetFixture; +import org.eclipse.papyrus.junit.utils.rules.PluginResource; +import org.eclipse.papyrus.uml.alf.libraries.helper.BackupState; +import org.eclipse.papyrus.uml.alf.libraries.helper.BackupState.EditionStatus; +import org.eclipse.papyrus.uml.alf.libraries.helper.BackupUtil; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Comment; +import org.eclipse.uml2.uml.Model; +import org.eclipse.uml2.uml.Profile; +import org.eclipse.uml2.uml.Enumeration; +import org.eclipse.uml2.uml.Stereotype; +import org.junit.Assert; +import org.junit.Rule; +import org.junit.Test; + +public class BackupUtilTests { + + @Rule + public final ModelSetFixture modelSetFixture = new ModelSetFixture(); + + @Test + @PluginResource({ "test-models/empty-model.di" }) + public void testBackupProfileNotApplied(){ + Assert.assertFalse(BackupUtil.getInstance(). + isBackupProfileApplied(this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testBackupProfileIsApplied(){ + Assert.assertTrue("The backup profile should be applied", BackupUtil.getInstance(). + isBackupProfileApplied(this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testRetrieveBackupProfileReference(){ + Assert.assertNotNull("It should be possible to obtain a reference on the backup profile", + BackupUtil.getInstance().getBackupProfile((Model)this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/empty-model.di" }) + public void testBackupProfileApplication(){ + BackupUtil.getInstance().applyBackupProfile( + this.modelSetFixture.getModel()); + List<Profile> appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles(); + Assert.assertEquals("Unexpected number of applied profiles", + 1, appliedProfiles.size()); + BackupUtil.getInstance().applyBackupProfile( + this.modelSetFixture.getModel()); + appliedProfiles = this.modelSetFixture.getModel().getAppliedProfiles(); + Assert.assertEquals("Unexpected number of applied profiles", + 1, appliedProfiles.size()); + Assert.assertTrue("The backup profile should be detected as being applied", + BackupUtil.getInstance().isBackupProfileApplied(this.modelSetFixture.getModel())); + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testRetrievalOfBackupStereotype(){ + Class testClass1 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass1"); + Stereotype backupStereotype = BackupUtil.getInstance().getBackupStereotype(testClass1); + Assert.assertNotNull("In this context the Backup stereotype should be accessible", backupStereotype); + Assert.assertTrue(BackupUtil.getInstance().getBackupProfile((Model)this.modelSetFixture.getModel()) + == backupStereotype.getProfile()); + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testRetrievalOfBackupStateDefinition(){ + Class testClass1 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass1"); + Enumeration backupState = BackupUtil.getInstance().getBackupStateDefinition(testClass1); + Assert.assertNotNull("In this context the BackupState type should be accessible", backupState); + Assert.assertTrue(BackupUtil.getInstance().getBackupProfile((Model)this.modelSetFixture.getModel()) + == backupState.getOwner()); + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testDetectBackupStereotype(){ + Class testClass1 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass1"); + Class testClass2 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass2"); + final Class testClass3 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass3"); + Assert.assertNotNull(testClass1); + Assert.assertNotNull(testClass2); + Assert.assertNotNull(testClass3); + /*A. The backup stereotype must be applied on a comment owned by TestClass1*/ + Assert.assertNotNull(BackupUtil.getInstance().getBackupComment(testClass1)); + /*B. The backup stereotype must be applied on a comment owned by TestClass2*/ + Assert.assertNotNull(BackupUtil.getInstance().getBackupComment(testClass2)); + /*C. The backup stereotype must not be applied on comment owned by TestClass3*/ + Assert.assertNull(BackupUtil.getInstance().getBackupComment(testClass3)); + } + + @Test + @PluginResource({ "test-models/model-with-alf.di" }) + public void testBackupStereotypeApplication(){ + final Class testClass3 = (Class) this.modelSetFixture.getModel().getOwnedType("TestClass3"); + Assert.assertNotNull(testClass3); + /*A.Apply the stereotype and set the properties values*/ + final Timestamp timestamp = new Timestamp(Calendar.getInstance().getTimeInMillis()); + TransactionalEditingDomain domain = TransactionUtil.getEditingDomain(this.modelSetFixture.getModel()); + GMFtoEMFCommandWrapper command = new GMFtoEMFCommandWrapper( + new AbstractTransactionalCommand(domain, "", Collections.EMPTY_LIST) { + @Override + protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { + BackupState state = new BackupState(); + state.timestamp = timestamp; + state.status = EditionStatus.MERGED; + BackupUtil.getInstance().applyBackup(testClass3.getOwnedComments().get(0), state); + return CommandResult.newOKCommandResult(); + } + }); + domain.getCommandStack().execute(command); + /*B. Ensure it was correctly applied (i.e., check properties values)*/ + Comment stereotypedComment = BackupUtil.getInstance().getBackupComment(testClass3); + Assert.assertNotNull(stereotypedComment); + BackupState state = BackupUtil.getInstance().getBackupState(stereotypedComment); + Assert.assertEquals("Timestamps should be equivalent", timestamp, state.timestamp); + Assert.assertEquals("Edition status should be equivalent", EditionStatus.MERGED, state.status); + /*C. Another attempt to apply the stereotype should not result in an error*/ + try{ + domain.getCommandStack().execute(command); + }catch(Exception e){ + Assert.fail(e.getMessage()); + } + } +} diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.di b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.di index 8634d4c00e0..bf9abab340f 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.di +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.di @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.notation b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.notation index 8634d4c00e0..bf9abab340f 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.notation +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.notation @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.uml index 6d376f3b610..23cd8cc800e 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/empty-model.uml @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_HorksDBkEeWIG7E3TDTNig" name="RootElement">
- <packageImport xmi:type="uml:PackageImport" xmi:id="_IJ6CcDBkEeWIG7E3TDTNig">
- <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
- </packageImport>
-</uml:Model>
+<?xml version="1.0" encoding="UTF-8"?> +<uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_HorksDBkEeWIG7E3TDTNig" name="RootElement"> + <packageImport xmi:type="uml:PackageImport" xmi:id="_IJ6CcDBkEeWIG7E3TDTNig"> + <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/> + </packageImport> +</uml:Model> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.di b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.di index 8634d4c00e0..bf9abab340f 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.di +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.di @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.notation b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.notation index 8634d4c00e0..bf9abab340f 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.notation +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.notation @@ -1,2 +1,2 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.uml index 5d62b70cfc2..6323362d747 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.backend.tests/test-models/model-with-alf.uml @@ -1,75 +1,75 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:BackupProfile="http:///schemas/BackupProfile/_J7IFgKInEeS_KNX0nfvIVQ/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ http:///schemas/BackupProfile/_J7IFgKInEeS_KNX0nfvIVQ/1 pathmap://PAPYRUS_BACKUP_PROFILE/backup-profile.profile.uml#_J7IFgaInEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_s4hsMDB0EeWIG7E3TDTNig" name="RootElement">
- <packageImport xmi:type="uml:PackageImport" xmi:id="_s_FAIDB0EeWIG7E3TDTNig">
- <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
- </packageImport>
- <packagedElement xmi:type="uml:Class" xmi:id="_z7R9QDB0EeWIG7E3TDTNig" name="TestClass1">
- <ownedComment xmi:type="uml:Comment" xmi:id="_9LJmIDB0EeWIG7E3TDTNig">
- <body>namespace RootElement;
-
-class TestClass{
-
-}</body>
- </ownedComment>
- </packagedElement>
- <packagedElement xmi:type="uml:Class" xmi:id="_TIpYMDB1EeWIG7E3TDTNig" name="TestClass2">
- <ownedComment xmi:type="uml:Comment" xmi:id="_VSvRMDB1EeWIG7E3TDTNig">
- <body>This is a test class
-</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_XFaIsDB1EeWIG7E3TDTNig">
- <body>namespace RootElement;
-
-class TestClass2{
-
-}</body>
- </ownedComment>
- </packagedElement>
- <packagedElement xmi:type="uml:Class" xmi:id="_pybBcDB1EeWIG7E3TDTNig" name="TestClass3">
- <ownedComment xmi:type="uml:Comment" xmi:id="_Kx-rYDB5EeWIG7E3TDTNig">
- <body>namespace RootElement;
-
-class TestClass3{
-
-}</body>
- </ownedComment>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_4vMYMDB0EeWIG7E3TDTNig">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vQpoDB0EeWIG7E3TDTNig" source="PapyrusVersion">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQpoTB0EeWIG7E3TDTNig" key="Version" value="0.1.1"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQpojB0EeWIG7E3TDTNig" key="Comment" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQpozB0EeWIG7E3TDTNig" key="Copyright" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQppDB0EeWIG7E3TDTNig" key="Date" value="2015-01-21"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQppTB0EeWIG7E3TDTNig" key="Author" value=""/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vNmUDB0EeWIG7E3TDTNig" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_4vRQsDB0EeWIG7E3TDTNig">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vR3wDB0EeWIG7E3TDTNig" source="PapyrusVersion">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3wTB0EeWIG7E3TDTNig" key="Version" value="0.0.2"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3wjB0EeWIG7E3TDTNig" key="Comment" value=""/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3wzB0EeWIG7E3TDTNig" key="Copyright" value="CEA LIST"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3xDB0EeWIG7E3TDTNig" key="Date" value="2015-01-22"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3xTB0EeWIG7E3TDTNig" key="Author" value=""/>
- </eAnnotations>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vRQsTB0EeWIG7E3TDTNig" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_BACKUP_PROFILE/backup-profile.profile.uml#_J7IFgaInEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_BACKUP_PROFILE/backup-profile.profile.uml#_74TbUKFzEeS_KNX0nfvIVQ"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7fcSQDB0EeWIG7E3TDTNig">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7fc5UDB0EeWIG7E3TDTNig" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- </uml:Model>
- <BackupProfile:Backup xmi:id="_-QwjUDB0EeWIG7E3TDTNig" timestamp="2015-07-21 16:17:47.476" base_Comment="_9LJmIDB0EeWIG7E3TDTNig"/>
- <ActionLanguage:TextualRepresentation xmi:id="_-RHIoDB0EeWIG7E3TDTNig" base_Comment="_9LJmIDB0EeWIG7E3TDTNig" language="Alf"/>
- <BackupProfile:Backup xmi:id="_YNaSkDB1EeWIG7E3TDTNig" timestamp="2015-07-21 16:17:47.476" base_Comment="_XFaIsDB1EeWIG7E3TDTNig"/>
- <ActionLanguage:TextualRepresentation xmi:id="_YNhnUDB1EeWIG7E3TDTNig" base_Comment="_XFaIsDB1EeWIG7E3TDTNig" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:BackupProfile="http:///schemas/BackupProfile/_J7IFgKInEeS_KNX0nfvIVQ/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ http:///schemas/BackupProfile/_J7IFgKInEeS_KNX0nfvIVQ/1 pathmap://PAPYRUS_BACKUP_PROFILE/backup-profile.profile.uml#_J7IFgaInEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_s4hsMDB0EeWIG7E3TDTNig" name="RootElement"> + <packageImport xmi:type="uml:PackageImport" xmi:id="_s_FAIDB0EeWIG7E3TDTNig"> + <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/> + </packageImport> + <packagedElement xmi:type="uml:Class" xmi:id="_z7R9QDB0EeWIG7E3TDTNig" name="TestClass1"> + <ownedComment xmi:type="uml:Comment" xmi:id="_9LJmIDB0EeWIG7E3TDTNig"> + <body>namespace RootElement;
 +
 +class TestClass{
 +
 +}</body> + </ownedComment> + </packagedElement> + <packagedElement xmi:type="uml:Class" xmi:id="_TIpYMDB1EeWIG7E3TDTNig" name="TestClass2"> + <ownedComment xmi:type="uml:Comment" xmi:id="_VSvRMDB1EeWIG7E3TDTNig"> + <body>This is a test class
 +</body> + </ownedComment> + <ownedComment xmi:type="uml:Comment" xmi:id="_XFaIsDB1EeWIG7E3TDTNig"> + <body>namespace RootElement;
 +
 +class TestClass2{
 +
 +}</body> + </ownedComment> + </packagedElement> + <packagedElement xmi:type="uml:Class" xmi:id="_pybBcDB1EeWIG7E3TDTNig" name="TestClass3"> + <ownedComment xmi:type="uml:Comment" xmi:id="_Kx-rYDB5EeWIG7E3TDTNig"> + <body>namespace RootElement;
 +
 +class TestClass3{
 +
 +}</body> + </ownedComment> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_4vMYMDB0EeWIG7E3TDTNig"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vQpoDB0EeWIG7E3TDTNig" source="PapyrusVersion"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQpoTB0EeWIG7E3TDTNig" key="Version" value="0.1.1"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQpojB0EeWIG7E3TDTNig" key="Comment" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQpozB0EeWIG7E3TDTNig" key="Copyright" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQppDB0EeWIG7E3TDTNig" key="Date" value="2015-01-21"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vQppTB0EeWIG7E3TDTNig" key="Author" value=""/> + </eAnnotations> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vNmUDB0EeWIG7E3TDTNig" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_4vRQsDB0EeWIG7E3TDTNig"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vR3wDB0EeWIG7E3TDTNig" source="PapyrusVersion"> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3wTB0EeWIG7E3TDTNig" key="Version" value="0.0.2"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3wjB0EeWIG7E3TDTNig" key="Comment" value=""/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3wzB0EeWIG7E3TDTNig" key="Copyright" value="CEA LIST"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3xDB0EeWIG7E3TDTNig" key="Date" value="2015-01-22"/> + <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4vR3xTB0EeWIG7E3TDTNig" key="Author" value=""/> + </eAnnotations> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4vRQsTB0EeWIG7E3TDTNig" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_BACKUP_PROFILE/backup-profile.profile.uml#_J7IFgaInEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_BACKUP_PROFILE/backup-profile.profile.uml#_74TbUKFzEeS_KNX0nfvIVQ"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7fcSQDB0EeWIG7E3TDTNig"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7fc5UDB0EeWIG7E3TDTNig" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + </uml:Model> + <BackupProfile:Backup xmi:id="_-QwjUDB0EeWIG7E3TDTNig" timestamp="2015-07-21 16:17:47.476" base_Comment="_9LJmIDB0EeWIG7E3TDTNig"/> + <ActionLanguage:TextualRepresentation xmi:id="_-RHIoDB0EeWIG7E3TDTNig" base_Comment="_9LJmIDB0EeWIG7E3TDTNig" language="Alf"/> + <BackupProfile:Backup xmi:id="_YNaSkDB1EeWIG7E3TDTNig" timestamp="2015-07-21 16:17:47.476" base_Comment="_XFaIsDB1EeWIG7E3TDTNig"/> + <ActionLanguage:TextualRepresentation xmi:id="_YNhnUDB1EeWIG7E3TDTNig" base_Comment="_XFaIsDB1EeWIG7E3TDTNig" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/.classpath b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/.classpath index c76b7dcedf7..1bfb4f7a60c 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/.classpath +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/.classpath @@ -1,9 +1,9 @@ -<?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/JavaSE-1.7"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins" />
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="src-gen"/>
- <classpathentry kind="src" path="xtend-gen"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?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/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins" /> + <classpathentry kind="src" path="src"/> + <classpathentry kind="src" path="src-gen"/> + <classpathentry kind="src" path="xtend-gen"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/ALF Tests.launch b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/ALF Tests.launch index 0753fd01661..5a7a656522a 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/ALF Tests.launch +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/ALF Tests.launch @@ -1,43 +1,43 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="false"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="true"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/AllTests.java"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
-<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
-<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
-<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.uml.alf.tests.AllTests"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.alf.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx2048m"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.platform.ide"/>
-<booleanAttribute key="run_in_ui_thread" value="true"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="false"/>
-<booleanAttribute key="useProduct" value="true"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig"> +<booleanAttribute key="append.args" value="true"/> +<booleanAttribute key="askclear" value="false"/> +<booleanAttribute key="automaticAdd" value="true"/> +<booleanAttribute key="automaticValidate" value="false"/> +<stringAttribute key="bootstrap" value=""/> +<stringAttribute key="checked" value="[NONE]"/> +<booleanAttribute key="clearConfig" value="true"/> +<booleanAttribute key="clearws" value="true"/> +<booleanAttribute key="clearwslog" value="false"/> +<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/> +<booleanAttribute key="default" value="true"/> +<booleanAttribute key="includeOptional" value="true"/> +<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> +<listEntry value="/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/AllTests.java"/> +</listAttribute> +<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> +<listEntry value="1"/> +</listAttribute> +<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/> +<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/> +<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/> +<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/> +<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/> +<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> +<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.uml.alf.tests.AllTests"/> +<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/> +<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.alf.tests"/> +<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/> +<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx2048m"/> +<stringAttribute key="pde.version" value="3.3"/> +<stringAttribute key="product" value="org.eclipse.platform.ide"/> +<booleanAttribute key="run_in_ui_thread" value="true"/> +<booleanAttribute key="show_selected_only" value="false"/> +<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/> +<booleanAttribute key="tracing" value="false"/> +<booleanAttribute key="useCustomFeatures" value="false"/> +<booleanAttribute key="useDefaultConfig" value="true"/> +<booleanAttribute key="useDefaultConfigArea" value="false"/> +<booleanAttribute key="useProduct" value="true"/> +</launchConfiguration> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment.alf index fb3d48bff53..afc8f274aa6 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment.alf @@ -1,5 +1,5 @@ -/**
- * Test non-indexed assignment expressions.
+/** + * Test non-indexed assignment expressions. **/ active class Expressions_Assignment { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Feature.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Feature.alf index a64400062e8..f7b3f4ebc5a 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Feature.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Feature.alf @@ -1,5 +1,5 @@ -/**
- * Test non-indexed feature assignment expressions
+/** + * Test non-indexed feature assignment expressions **/ active class Expressions_Assignment_Feature { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Feature_Indexed.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Feature_Indexed.alf index 2c48a0890de..93fc0696194 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Feature_Indexed.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Feature_Indexed.alf @@ -1,5 +1,5 @@ -/**
- * Test indexed feature assignment expressions
+/** + * Test indexed feature assignment expressions **/ active class Expressions_Assignment_Feature_Indexed { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Indexed.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Indexed.alf index 3e1060d0afe..939029c5087 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Indexed.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Assignment_Indexed.alf @@ -1,5 +1,5 @@ -/**
- * Test indexed assignment expressions.
+/** + * Test indexed assignment expressions. **/ active class Expressions_Assignment_Indexed { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Association.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Association.alf index e802d25843a..92a3a6678ed 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Association.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Association.alf @@ -1,5 +1,5 @@ -/**
- * Test association-related expressions.
+/** + * Test association-related expressions. **/ active class Expressions_Association { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Constructor_Destructor.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Constructor_Destructor.alf index 92bcfecec46..3ccc0329353 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Constructor_Destructor.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Constructor_Destructor.alf @@ -1,5 +1,5 @@ -/**
- * Test constructor and destructor expressions.
+/** + * Test constructor and destructor expressions. **/ active class Expressions_Constructor_Destructor { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Increment_Decrement.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Increment_Decrement.alf index 75d09aceac9..f6813b67f2b 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Increment_Decrement.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Increment_Decrement.alf @@ -1,5 +1,5 @@ -/**
- * Test increment and decrement expressions.
+/** + * Test increment and decrement expressions. **/ active class Expressions_Increment_Decrement { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Invocation.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Invocation.alf index c37f2e529c7..daa70020f13 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Invocation.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Invocation.alf @@ -1,8 +1,8 @@ private import FoundationalModelLibrary::PrimitiveBehaviors::IntegerFunctions::ToString; -/**
- * Test behavior, operation and super invocation expressions.
+/** + * Test behavior, operation and super invocation expressions. **/ active class Expressions_Invocation { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Literal_Name.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Literal_Name.alf index 8c78a2eac93..17d8abdce06 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Literal_Name.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Literal_Name.alf @@ -1,5 +1,5 @@ -/**
- * Test literal and name expressions.
+/** + * Test literal and name expressions. **/ active class Expressions_Literal_Name { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Object.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Object.alf index e2499a47a89..9acb3ef26d4 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Object.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Object.alf @@ -1,5 +1,5 @@ -/**
- * Test object structure expressions.
+/** + * Test object structure expressions. **/ active class Expressions_Object { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Operator.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Operator.alf index 935d1555812..3d2f323c2e4 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Operator.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Operator.alf @@ -1,5 +1,5 @@ -/**
- * Test various operator expressions.
+/** + * Test various operator expressions. **/ active class Expressions_Operator { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Construction.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Construction.alf index 83fb9c602ca..9249b479e2d 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Construction.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Construction.alf @@ -1,5 +1,5 @@ -/**
- * Test sequence construction expressions.
+/** + * Test sequence construction expressions. **/ active class Expressions_Sequence_Construction { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Expansion_Reduction.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Expansion_Reduction.alf index ec2a8b47a9d..5f87775b788 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Expansion_Reduction.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Expansion_Reduction.alf @@ -1,7 +1,7 @@ private import Alf::Library::PrimitiveBehaviors::IntegerFunctions::*; -/**
- * Test sequence expansion and reduction expressions.
+/** + * Test sequence expansion and reduction expressions. **/ active class Expressions_Sequence_Expansion_Reduction { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Operation.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Operation.alf index 41cdc27c1f9..95e45ad8288 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Operation.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Sequence_Operation.alf @@ -1,5 +1,5 @@ -/**
- * Test sequence operation expressions.
+/** + * Test sequence operation expressions. **/ active class Expressions_Sequence_Operation { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Template.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Template.alf index 68b9286fc3d..ce4457d6577 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Template.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Expressions_Template.alf @@ -1,5 +1,5 @@ -/**
- * Test expressions involving templates.
+/** + * Test expressions involving templates. **/ active class Expressions_Template { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Accept.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Accept.alf index 4f055e98296..6d6c755fa8d 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Accept.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Accept.alf @@ -1,5 +1,5 @@ -/**
- * Test accept statements.
+/** + * Test accept statements. **/ active class Statements_Accept { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Classify.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Classify.alf index bd0541d8540..a01b4fc1cdd 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Classify.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Classify.alf @@ -1,5 +1,5 @@ -/**
- * Test classify statements.
+/** + * Test classify statements. **/ active class Statements_Classify { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Conditional.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Conditional.alf index b0b11f07338..e7e8efbbef2 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Conditional.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Conditional.alf @@ -1,5 +1,5 @@ -/**
- * Test if and switch statements.
+/** + * Test if and switch statements. **/ active class Statements_Conditional { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_For_Looping.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_For_Looping.alf index 7ac166dcb38..a151a559e14 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_For_Looping.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_For_Looping.alf @@ -1,5 +1,5 @@ -/**
- * Test for statements.
+/** + * Test for statements. **/ active class Statements_For_Looping { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Return.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Return.alf index 01a07d3fdc4..5432f160c5b 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Return.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Return.alf @@ -1,5 +1,5 @@ -/**
- * Test return statements.
+/** + * Test return statements. **/ active class Statements_Return { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Simple.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Simple.alf index 74c533c969a..20ad4cea2c6 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Simple.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_Simple.alf @@ -1,5 +1,5 @@ -/**
- * Test block, empty and local name declaration statements.
+/** + * Test block, empty and local name declaration statements. **/ active class Statements_Simple { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_While_Do_Looping.alf b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_While_Do_Looping.alf index c64a543a5ad..060c9e6ec84 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_While_Do_Looping.alf +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/Alf/Statements_While_Do_Looping.alf @@ -1,5 +1,5 @@ -/**
- * Test while and do statements.
+/** + * Test while and do statements. **/ active class Statements_While_Do_Looping { diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/META-INF/MANIFEST.MF index f9949debc42..5de2ef512c4 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/META-INF/MANIFEST.MF +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/META-INF/MANIFEST.MF @@ -1,49 +1,49 @@ -Manifest-Version: 1.0
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.xtext.junit4,
- org.eclipse.ui.workbench;resolution:=optional,
- org.eclipse.m2m.qvt.oml;bundle-version="3.3.0",
- org.eclipse.emf.common,
- org.eclipse.emf.ecore,
- org.eclipse.m2m.qvt.oml.common;bundle-version="3.3.0",
- org.eclipse.m2m.qvt.oml.emf.util;bundle-version="3.3.0",
- org.eclipse.m2m.qvt.oml.ocl;bundle-version="3.3.0",
- org.eclipse.m2m.qvt.oml.runtime;bundle-version="3.3.0",
- org.eclipse.xtend.lib,
- org.eclipse.xtext.xbase.lib,
- org.eclipse.xtend;bundle-version="1.4.0",
- org.eclipse.emf.ecore.xmi;visibility:=reexport,
- org.junit;visibility:=reexport,
- org.eclipse.uml2.uml;bundle-version="[5.3.0,6.0.0)",
- org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional,
- org.eclipse.ocl.uml;bundle-version="5.0.0",
- org.eclipse.uml2.uml.resources;bundle-version="[5.3.0,6.0.0)",
- org.eclipse.papyrus.uml.alf;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.uml.alf.ui;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.uml.alf.to.fuml;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.uml.extensionpoints;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.xtext,
- org.eclipse.ocl.pivot,
- org.eclipse.ocl,
- org.eclipse.papyrus.junit.framework;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.infra.core.log
-Export-Package: org.eclipse.papyrus.uml.alf,
- org.eclipse.papyrus.uml.alf.tests
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .,
- Alf/,
- UML/
-Bundle-Version: 1.2.0.qualifier
-Bundle-Name: ALF Tests
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.uml.alf.tests;singleton:=true
-Import-Package: org.apache.log4j,
- org.hamcrest.core,
- org.junit;version="4.5.0",
- org.junit.runner;version="4.5.0",
- org.junit.runner.manipulation;version="4.5.0",
- org.junit.runner.notification;version="4.5.0",
- org.junit.runners;version="4.5.0",
- org.junit.runners.model;version="4.5.0"
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Manifest-Version: 1.0 +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.xtext.junit4, + org.eclipse.ui.workbench;resolution:=optional, + org.eclipse.m2m.qvt.oml;bundle-version="3.3.0", + org.eclipse.emf.common, + org.eclipse.emf.ecore, + org.eclipse.m2m.qvt.oml.common;bundle-version="3.3.0", + org.eclipse.m2m.qvt.oml.emf.util;bundle-version="3.3.0", + org.eclipse.m2m.qvt.oml.ocl;bundle-version="3.3.0", + org.eclipse.m2m.qvt.oml.runtime;bundle-version="3.3.0", + org.eclipse.xtend.lib, + org.eclipse.xtext.xbase.lib, + org.eclipse.xtend;bundle-version="1.4.0", + org.eclipse.emf.ecore.xmi;visibility:=reexport, + org.junit;visibility:=reexport, + org.eclipse.uml2.uml;bundle-version="[5.3.0,6.0.0)", + org.objectweb.asm;bundle-version="[5.0.1,6.0.0)";resolution:=optional, + org.eclipse.ocl.uml;bundle-version="5.0.0", + org.eclipse.uml2.uml.resources;bundle-version="[5.3.0,6.0.0)", + org.eclipse.papyrus.uml.alf;bundle-version="[3.0.0,4.0.0)", + org.eclipse.papyrus.uml.alf.ui;bundle-version="[3.0.0,4.0.0)", + org.eclipse.papyrus.uml.alf.to.fuml;bundle-version="[1.2.0,2.0.0)", + org.eclipse.papyrus.uml.extensionpoints;bundle-version="[1.2.0,2.0.0)", + org.eclipse.xtext, + org.eclipse.ocl.pivot, + org.eclipse.ocl, + org.eclipse.papyrus.junit.framework;bundle-version="[1.2.0,2.0.0)", + org.eclipse.papyrus.infra.core.log +Export-Package: org.eclipse.papyrus.uml.alf, + org.eclipse.papyrus.uml.alf.tests +Bundle-Vendor: Eclipse Modeling Project +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: ., + Alf/, + UML/ +Bundle-Version: 1.2.0.qualifier +Bundle-Name: ALF Tests +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.papyrus.uml.alf.tests;singleton:=true +Import-Package: org.apache.log4j, + org.hamcrest.core, + org.junit;version="4.5.0", + org.junit.runner;version="4.5.0", + org.junit.runner.manipulation;version="4.5.0", + org.junit.runner.notification;version="4.5.0", + org.junit.runners;version="4.5.0", + org.junit.runners.model;version="4.5.0" +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/AssertFalse.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/AssertFalse.uml index 7439f55620a..81d61d5df36 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/AssertFalse.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/AssertFalse.uml @@ -1,40 +1,40 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_q8QTYIKGEeSFEt9m3bH63A" name="Model">
- <packageImport xmi:type="uml:PackageImport" xmi:id="_tTJUgLeHEeS7pqPIgMux2Q">
- <importedPackage xmi:type="uml:Model" href="pathmap://PAPYRUS_ALF_LIBRARY/Alf.library.uml#Alf"/>
- </packageImport>
- <packagedElement xmi:type="uml:Activity" xmi:id="_rHG4gIKGEeSFEt9m3bH63A" name="AssertFalse" visibility="protected">
- <ownedComment xmi:type="uml:Comment" xmi:id="_rHG4iIKGEeSFEt9m3bH63A" annotatedElement="_rHG4gIKGEeSFEt9m3bH63A">
- <body>activity AssertFalse(in label: String, in condition: Boolean[0..1]) { AssertTrue("! " + label, condition == false);
-}</body>
- </ownedComment>
- <elementImport xmi:type="uml:ElementImport" xmi:id="_rHG4h4KGEeSFEt9m3bH63A" alias="" visibility="private">
- <importedElement xmi:type="uml:FunctionBehavior" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#PrimitiveBehaviors-BooleanFunctions-ToString"/>
- </elementImport>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_rHG4gYKGEeSFEt9m3bH63A" name="label">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rHG4goKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rHG4g4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_rHG4hIKGEeSFEt9m3bH63A" name="condition">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rHG4hYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rHG4hoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_q8QTYYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_q8QTYoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_TAijYLeHEeS7pqPIgMux2Q">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TAjKcLeHEeS7pqPIgMux2Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_rHG4iYKGEeSFEt9m3bH63A" base_Comment="_rHG4iIKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_q8QTYIKGEeSFEt9m3bH63A" name="Model"> + <packageImport xmi:type="uml:PackageImport" xmi:id="_tTJUgLeHEeS7pqPIgMux2Q"> + <importedPackage xmi:type="uml:Model" href="pathmap://PAPYRUS_ALF_LIBRARY/Alf.library.uml#Alf"/> + </packageImport> + <packagedElement xmi:type="uml:Activity" xmi:id="_rHG4gIKGEeSFEt9m3bH63A" name="AssertFalse" visibility="protected"> + <ownedComment xmi:type="uml:Comment" xmi:id="_rHG4iIKGEeSFEt9m3bH63A" annotatedElement="_rHG4gIKGEeSFEt9m3bH63A"> + <body>activity AssertFalse(in label: String, in condition: Boolean[0..1]) { AssertTrue("! " + label, condition == false); +}</body> + </ownedComment> + <elementImport xmi:type="uml:ElementImport" xmi:id="_rHG4h4KGEeSFEt9m3bH63A" alias="" visibility="private"> + <importedElement xmi:type="uml:FunctionBehavior" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#PrimitiveBehaviors-BooleanFunctions-ToString"/> + </elementImport> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_rHG4gYKGEeSFEt9m3bH63A" name="label"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rHG4goKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rHG4g4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_rHG4hIKGEeSFEt9m3bH63A" name="condition"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rHG4hYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rHG4hoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_q8QTYYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_q8QTYoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_TAijYLeHEeS7pqPIgMux2Q"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_TAjKcLeHEeS7pqPIgMux2Q" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <ActionLanguage:TextualRepresentation xmi:id="_rHG4iYKGEeSFEt9m3bH63A" base_Comment="_rHG4iIKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/AssertTrue.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/AssertTrue.uml index a62a79177c8..294eeeb54ab 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/AssertTrue.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/AssertTrue.uml @@ -1,34 +1,34 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_rSykEIKGEeSFEt9m3bH63A" name="Model">
- <packagedElement xmi:type="uml:Activity" xmi:id="_rao4gIKGEeSFEt9m3bH63A" name="AssertTrue" visibility="protected">
- <ownedComment xmi:type="uml:Comment" xmi:id="_rapflYKGEeSFEt9m3bH63A" annotatedElement="_rao4gIKGEeSFEt9m3bH63A">
- <body>activity AssertTrue(in label: String, in condition: Boolean[0..1]) { if (condition != true) { WriteLine("FAILED: " + label);
-} }</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_rao4gYKGEeSFEt9m3bH63A" name="label">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rapfkIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rapfkYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_rapfkoKGEeSFEt9m3bH63A" name="condition">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rapfk4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rapflIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_rSykEYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_rSykEoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Eu0p4LeKEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Eu1Q8LeKEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_rapfloKGEeSFEt9m3bH63A" base_Comment="_rapflYKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_rSykEIKGEeSFEt9m3bH63A" name="Model"> + <packagedElement xmi:type="uml:Activity" xmi:id="_rao4gIKGEeSFEt9m3bH63A" name="AssertTrue" visibility="protected"> + <ownedComment xmi:type="uml:Comment" xmi:id="_rapflYKGEeSFEt9m3bH63A" annotatedElement="_rao4gIKGEeSFEt9m3bH63A"> + <body>activity AssertTrue(in label: String, in condition: Boolean[0..1]) { if (condition != true) { WriteLine("FAILED: " + label); +} }</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_rao4gYKGEeSFEt9m3bH63A" name="label"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rapfkIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rapfkYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_rapfkoKGEeSFEt9m3bH63A" name="condition"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rapfk4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rapflIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_rSykEYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_rSykEoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Eu0p4LeKEeS_zZpc9I-Bsg"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Eu1Q8LeKEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <ActionLanguage:TextualRepresentation xmi:id="_rapfloKGEeSFEt9m3bH63A" base_Comment="_rapflYKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Feature_Indexed.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Feature_Indexed.uml index fb8c99595ca..4196a8d5dea 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Feature_Indexed.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Feature_Indexed.uml @@ -1,235 +1,235 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_sbc1QIKGEeSFEt9m3bH63A" name="Model">
- <packagedElement xmi:type="uml:Class" xmi:id="_s03a0IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed" classifierBehavior="_s04B6YKGEeSFEt9m3bH63A" isActive="true">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B6oKGEeSFEt9m3bH63A" annotatedElement="_s03a0IKGEeSFEt9m3bH63A">
- <body>
- * Test indexed feature assignment expressions
- *</body>
- </ownedComment>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_s03a0YKGEeSFEt9m3bH63A" name="y" visibility="private" isOrdered="true" isUnique="false">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a0oKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a04KGEeSFEt9m3bH63A" value="*"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_s03bGYKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bGoKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bG4KGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03bCYKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_s03a-YKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B64KGEeSFEt9m3bH63A" annotatedElement="_s03bCYKGEeSFEt9m3bH63A">
- <body>activity 'test$method$1'(out c: C, out d: D, out n: Integer, out m: Integer, out self: Expressions_Assignment_Feature_Indexed) { c = new C();
-c.y = new Integer [] { 1, 2, 3 };
-c.y[2] = 4;
-c.y[1] = null;
-c.n[1] = 4;
-n = A::n(c)[1];
-d = new D(new Integer [] { 1, 2, 3 });
-d.y[2] = 4;
-d.y[1] = null;
-d.m[1] = 4;
-m = B::m(d)[1];
-this.y = new Integer [] { 1, 2 };
-this.y[2] = 4;
-this.y[1] = null;
-self = this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bCoKGEeSFEt9m3bH63A" name="c" type="_s03a1IKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bC4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bDIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bDYKGEeSFEt9m3bH63A" name="d" type="_s03a54KGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bDoKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bD4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bEIKGEeSFEt9m3bH63A" name="n" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bEYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bEoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bE4KGEeSFEt9m3bH63A" name="m" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bFIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bFYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bFoKGEeSFEt9m3bH63A" name="self" type="_s03a0IKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bF4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bGIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03bHIKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$initialization$1" visibility="protected" specification="_s03bHYKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B8oKGEeSFEt9m3bH63A" annotatedElement="_s03bHIKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Feature_Indexed$initialization$1'(){
- if (this.'Expressions_Assignment_Feature_Indexed$initializationFlag$1' == null) {
- this.'Expressions_Assignment_Feature_Indexed$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03bHoKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$method$1" specification="_s04B44KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B7oKGEeSFEt9m3bH63A" annotatedElement="_s03bHoKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Feature_Indexed$method$1'(): Expressions_Assignment_Feature_Indexed {
- this.'Expressions_Assignment_Feature_Indexed$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s04B4IKGEeSFEt9m3bH63A" type="_s03a0IKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s04B4YKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s04B4oKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_s04B54KGEeSFEt9m3bH63A" name="destroy$method$1" specification="_s04B6IKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B7YKGEeSFEt9m3bH63A" annotatedElement="_s04B54KGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_s04B6YKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B8YKGEeSFEt9m3bH63A" annotatedElement="_s04B6YKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Feature_Indexed$behavior$1'() { this.test(c, d, n, m, self);
-AssertEqual("c.y[1]", c.y[1], 4);
-AssertEqual("c.n[1]", c.n[1], 4);
-AssertEqual("d.y[1]", d.y[1], 4);
-AssertEqual("d.m[1]", d.m[1], 4);
-AssertEqual("n", n, 4);
-AssertEqual("m", m, 4);
-AssertEqual("self.y[1]", self.y[1], 4);
-WriteLine("Done");
-}</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_s03a-YKGEeSFEt9m3bH63A" name="test" visibility="public" method="_s03bCYKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03a-oKGEeSFEt9m3bH63A" name="c" type="_s03a1IKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a-4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a_IKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03a_YKGEeSFEt9m3bH63A" name="d" type="_s03a54KGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a_oKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a_4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bAIKGEeSFEt9m3bH63A" name="n" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bAYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bAoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bA4KGEeSFEt9m3bH63A" name="m" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bBIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bBYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bBoKGEeSFEt9m3bH63A" name="self" type="_s03a0IKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bB4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bCIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_s03bHYKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$initialization$1" visibility="protected" method="_s03bHIKGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_s04B44KGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed" method="_s03bHoKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s04B5IKGEeSFEt9m3bH63A" type="_s03a0IKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s04B5YKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s04B5oKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_s04B6IKGEeSFEt9m3bH63A" name="destroy" method="_s04B54KGEeSFEt9m3bH63A"/>
- <nestedClassifier xmi:type="uml:Class" xmi:id="_s03a1IKGEeSFEt9m3bH63A" name="C" visibility="private">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_s03a1YKGEeSFEt9m3bH63A" name="y" visibility="public" isOrdered="true" isUnique="false">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a1oKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a14KGEeSFEt9m3bH63A" value="*"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_s03a2IKGEeSFEt9m3bH63A" name="C$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a2YKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a2oKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03a24KGEeSFEt9m3bH63A" name="C$initialization$1" visibility="protected" specification="_s03a3IKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B8IKGEeSFEt9m3bH63A" annotatedElement="_s03a24KGEeSFEt9m3bH63A">
- <body>activity 'C$initialization$1'(){
- if (this.'C$initializationFlag$1' == null) {
- this.'C$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03a3YKGEeSFEt9m3bH63A" name="C$method$1" specification="_s03a4YKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B7IKGEeSFEt9m3bH63A" annotatedElement="_s03a3YKGEeSFEt9m3bH63A">
- <body>activity 'C$method$1'(): C {
- this.'C$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03a3oKGEeSFEt9m3bH63A" type="_s03a1IKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a34KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a4IKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03a5YKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_s03a5oKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_s04B74KGEeSFEt9m3bH63A" annotatedElement="_s03a5YKGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_s03a3IKGEeSFEt9m3bH63A" name="C$initialization$1" visibility="protected" method="_s03a24KGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_s03a4YKGEeSFEt9m3bH63A" name="C" method="_s03a3YKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03a4oKGEeSFEt9m3bH63A" type="_s03a1IKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a44KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a5IKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_s03a5oKGEeSFEt9m3bH63A" name="destroy" method="_s03a5YKGEeSFEt9m3bH63A"/>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:DataType" xmi:id="_s03a54KGEeSFEt9m3bH63A" name="D" visibility="private">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_s03a6IKGEeSFEt9m3bH63A" name="y" visibility="public" isOrdered="true" isUnique="false">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a6YKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a6oKGEeSFEt9m3bH63A" value="*"/>
- </ownedAttribute>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:Association" xmi:id="_s03a64KGEeSFEt9m3bH63A" name="A" visibility="private" memberEnd="_s03a7IKGEeSFEt9m3bH63A _s03a74KGEeSFEt9m3bH63A">
- <ownedEnd xmi:type="uml:Property" xmi:id="_s03a7IKGEeSFEt9m3bH63A" name="c" visibility="public" type="_s03a1IKGEeSFEt9m3bH63A" association="_s03a64KGEeSFEt9m3bH63A">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a7YKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a7oKGEeSFEt9m3bH63A" value="1"/>
- </ownedEnd>
- <ownedEnd xmi:type="uml:Property" xmi:id="_s03a74KGEeSFEt9m3bH63A" name="n" visibility="public" isOrdered="true" isUnique="false" association="_s03a64KGEeSFEt9m3bH63A">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a8IKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a8YKGEeSFEt9m3bH63A" value="*"/>
- </ownedEnd>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:Association" xmi:id="_s03a8oKGEeSFEt9m3bH63A" name="B" visibility="private" memberEnd="_s03a84KGEeSFEt9m3bH63A _s03a9oKGEeSFEt9m3bH63A">
- <ownedEnd xmi:type="uml:Property" xmi:id="_s03a84KGEeSFEt9m3bH63A" name="d" visibility="public" type="_s03a54KGEeSFEt9m3bH63A" association="_s03a8oKGEeSFEt9m3bH63A">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a9IKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a9YKGEeSFEt9m3bH63A" value="1"/>
- </ownedEnd>
- <ownedEnd xmi:type="uml:Property" xmi:id="_s03a9oKGEeSFEt9m3bH63A" name="m" visibility="public" isOrdered="true" isUnique="false" association="_s03a8oKGEeSFEt9m3bH63A">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a94KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a-IKGEeSFEt9m3bH63A" value="*"/>
- </ownedEnd>
- </nestedClassifier>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sbc1QYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sbc1QoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="__kKtd7eKEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__kL7kLeKEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_s04B84KGEeSFEt9m3bH63A" base_Comment="_s04B74KGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_s04B9IKGEeSFEt9m3bH63A" base_BehavioralFeature="_s04B44KGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_s04B9YKGEeSFEt9m3bH63A" base_Comment="_s04B7oKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_s04B9oKGEeSFEt9m3bH63A" base_BehavioralFeature="_s03a4YKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_s04B94KGEeSFEt9m3bH63A" base_Comment="_s04B7YKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_s04B-IKGEeSFEt9m3bH63A" base_Comment="_s04B64KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_s04B-YKGEeSFEt9m3bH63A" base_Comment="_s04B8IKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Destroy xmi:id="_s04B-oKGEeSFEt9m3bH63A" base_BehavioralFeature="_s03a5oKGEeSFEt9m3bH63A"/>
- <standard:Destroy xmi:id="_s04B-4KGEeSFEt9m3bH63A" base_BehavioralFeature="_s04B6IKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_s04B_IKGEeSFEt9m3bH63A" base_Comment="_s04B7IKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_s04B_YKGEeSFEt9m3bH63A" base_Comment="_s04B8oKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_s04B_oKGEeSFEt9m3bH63A" base_Comment="_s04B8YKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_sbc1QIKGEeSFEt9m3bH63A" name="Model"> + <packagedElement xmi:type="uml:Class" xmi:id="_s03a0IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed" classifierBehavior="_s04B6YKGEeSFEt9m3bH63A" isActive="true"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B6oKGEeSFEt9m3bH63A" annotatedElement="_s03a0IKGEeSFEt9m3bH63A"> + <body>
 + * Test indexed feature assignment expressions
 + *</body> + </ownedComment> + <ownedAttribute xmi:type="uml:Property" xmi:id="_s03a0YKGEeSFEt9m3bH63A" name="y" visibility="private" isOrdered="true" isUnique="false"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a0oKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a04KGEeSFEt9m3bH63A" value="*"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_s03bGYKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bGoKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bG4KGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03bCYKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_s03a-YKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B64KGEeSFEt9m3bH63A" annotatedElement="_s03bCYKGEeSFEt9m3bH63A"> + <body>activity 'test$method$1'(out c: C, out d: D, out n: Integer, out m: Integer, out self: Expressions_Assignment_Feature_Indexed) { c = new C(); +c.y = new Integer [] { 1, 2, 3 }; +c.y[2] = 4; +c.y[1] = null; +c.n[1] = 4; +n = A::n(c)[1]; +d = new D(new Integer [] { 1, 2, 3 }); +d.y[2] = 4; +d.y[1] = null; +d.m[1] = 4; +m = B::m(d)[1]; +this.y = new Integer [] { 1, 2 }; +this.y[2] = 4; +this.y[1] = null; +self = this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bCoKGEeSFEt9m3bH63A" name="c" type="_s03a1IKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bC4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bDIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bDYKGEeSFEt9m3bH63A" name="d" type="_s03a54KGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bDoKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bD4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bEIKGEeSFEt9m3bH63A" name="n" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bEYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bEoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bE4KGEeSFEt9m3bH63A" name="m" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bFIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bFYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bFoKGEeSFEt9m3bH63A" name="self" type="_s03a0IKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bF4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bGIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03bHIKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$initialization$1" visibility="protected" specification="_s03bHYKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B8oKGEeSFEt9m3bH63A" annotatedElement="_s03bHIKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Feature_Indexed$initialization$1'(){ + if (this.'Expressions_Assignment_Feature_Indexed$initializationFlag$1' == null) { + this.'Expressions_Assignment_Feature_Indexed$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03bHoKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$method$1" specification="_s04B44KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B7oKGEeSFEt9m3bH63A" annotatedElement="_s03bHoKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Feature_Indexed$method$1'(): Expressions_Assignment_Feature_Indexed { + this.'Expressions_Assignment_Feature_Indexed$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s04B4IKGEeSFEt9m3bH63A" type="_s03a0IKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s04B4YKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s04B4oKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_s04B54KGEeSFEt9m3bH63A" name="destroy$method$1" specification="_s04B6IKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B7YKGEeSFEt9m3bH63A" annotatedElement="_s04B54KGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_s04B6YKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$behavior$1" visibility="private"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B8YKGEeSFEt9m3bH63A" annotatedElement="_s04B6YKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Feature_Indexed$behavior$1'() { this.test(c, d, n, m, self); +AssertEqual("c.y[1]", c.y[1], 4); +AssertEqual("c.n[1]", c.n[1], 4); +AssertEqual("d.y[1]", d.y[1], 4); +AssertEqual("d.m[1]", d.m[1], 4); +AssertEqual("n", n, 4); +AssertEqual("m", m, 4); +AssertEqual("self.y[1]", self.y[1], 4); +WriteLine("Done"); +}</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_s03a-YKGEeSFEt9m3bH63A" name="test" visibility="public" method="_s03bCYKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03a-oKGEeSFEt9m3bH63A" name="c" type="_s03a1IKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a-4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a_IKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03a_YKGEeSFEt9m3bH63A" name="d" type="_s03a54KGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a_oKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a_4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bAIKGEeSFEt9m3bH63A" name="n" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bAYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bAoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bA4KGEeSFEt9m3bH63A" name="m" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bBIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bBYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03bBoKGEeSFEt9m3bH63A" name="self" type="_s03a0IKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03bB4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03bCIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_s03bHYKGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed$initialization$1" visibility="protected" method="_s03bHIKGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_s04B44KGEeSFEt9m3bH63A" name="Expressions_Assignment_Feature_Indexed" method="_s03bHoKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s04B5IKGEeSFEt9m3bH63A" type="_s03a0IKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s04B5YKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s04B5oKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_s04B6IKGEeSFEt9m3bH63A" name="destroy" method="_s04B54KGEeSFEt9m3bH63A"/> + <nestedClassifier xmi:type="uml:Class" xmi:id="_s03a1IKGEeSFEt9m3bH63A" name="C" visibility="private"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_s03a1YKGEeSFEt9m3bH63A" name="y" visibility="public" isOrdered="true" isUnique="false"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a1oKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a14KGEeSFEt9m3bH63A" value="*"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_s03a2IKGEeSFEt9m3bH63A" name="C$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a2YKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a2oKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03a24KGEeSFEt9m3bH63A" name="C$initialization$1" visibility="protected" specification="_s03a3IKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B8IKGEeSFEt9m3bH63A" annotatedElement="_s03a24KGEeSFEt9m3bH63A"> + <body>activity 'C$initialization$1'(){ + if (this.'C$initializationFlag$1' == null) { + this.'C$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03a3YKGEeSFEt9m3bH63A" name="C$method$1" specification="_s03a4YKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B7IKGEeSFEt9m3bH63A" annotatedElement="_s03a3YKGEeSFEt9m3bH63A"> + <body>activity 'C$method$1'(): C { + this.'C$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03a3oKGEeSFEt9m3bH63A" type="_s03a1IKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a34KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a4IKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_s03a5YKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_s03a5oKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_s04B74KGEeSFEt9m3bH63A" annotatedElement="_s03a5YKGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_s03a3IKGEeSFEt9m3bH63A" name="C$initialization$1" visibility="protected" method="_s03a24KGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_s03a4YKGEeSFEt9m3bH63A" name="C" method="_s03a3YKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_s03a4oKGEeSFEt9m3bH63A" type="_s03a1IKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a44KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a5IKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_s03a5oKGEeSFEt9m3bH63A" name="destroy" method="_s03a5YKGEeSFEt9m3bH63A"/> + </nestedClassifier> + <nestedClassifier xmi:type="uml:DataType" xmi:id="_s03a54KGEeSFEt9m3bH63A" name="D" visibility="private"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_s03a6IKGEeSFEt9m3bH63A" name="y" visibility="public" isOrdered="true" isUnique="false"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a6YKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a6oKGEeSFEt9m3bH63A" value="*"/> + </ownedAttribute> + </nestedClassifier> + <nestedClassifier xmi:type="uml:Association" xmi:id="_s03a64KGEeSFEt9m3bH63A" name="A" visibility="private" memberEnd="_s03a7IKGEeSFEt9m3bH63A _s03a74KGEeSFEt9m3bH63A"> + <ownedEnd xmi:type="uml:Property" xmi:id="_s03a7IKGEeSFEt9m3bH63A" name="c" visibility="public" type="_s03a1IKGEeSFEt9m3bH63A" association="_s03a64KGEeSFEt9m3bH63A"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a7YKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a7oKGEeSFEt9m3bH63A" value="1"/> + </ownedEnd> + <ownedEnd xmi:type="uml:Property" xmi:id="_s03a74KGEeSFEt9m3bH63A" name="n" visibility="public" isOrdered="true" isUnique="false" association="_s03a64KGEeSFEt9m3bH63A"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a8IKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a8YKGEeSFEt9m3bH63A" value="*"/> + </ownedEnd> + </nestedClassifier> + <nestedClassifier xmi:type="uml:Association" xmi:id="_s03a8oKGEeSFEt9m3bH63A" name="B" visibility="private" memberEnd="_s03a84KGEeSFEt9m3bH63A _s03a9oKGEeSFEt9m3bH63A"> + <ownedEnd xmi:type="uml:Property" xmi:id="_s03a84KGEeSFEt9m3bH63A" name="d" visibility="public" type="_s03a54KGEeSFEt9m3bH63A" association="_s03a8oKGEeSFEt9m3bH63A"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a9IKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a9YKGEeSFEt9m3bH63A" value="1"/> + </ownedEnd> + <ownedEnd xmi:type="uml:Property" xmi:id="_s03a9oKGEeSFEt9m3bH63A" name="m" visibility="public" isOrdered="true" isUnique="false" association="_s03a8oKGEeSFEt9m3bH63A"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_s03a94KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_s03a-IKGEeSFEt9m3bH63A" value="*"/> + </ownedEnd> + </nestedClassifier> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sbc1QYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sbc1QoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="__kKtd7eKEeS_zZpc9I-Bsg"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__kL7kLeKEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <ActionLanguage:TextualRepresentation xmi:id="_s04B84KGEeSFEt9m3bH63A" base_Comment="_s04B74KGEeSFEt9m3bH63A" language="Alf"/> + <standard:Create xmi:id="_s04B9IKGEeSFEt9m3bH63A" base_BehavioralFeature="_s04B44KGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_s04B9YKGEeSFEt9m3bH63A" base_Comment="_s04B7oKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Create xmi:id="_s04B9oKGEeSFEt9m3bH63A" base_BehavioralFeature="_s03a4YKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_s04B94KGEeSFEt9m3bH63A" base_Comment="_s04B7YKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_s04B-IKGEeSFEt9m3bH63A" base_Comment="_s04B64KGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_s04B-YKGEeSFEt9m3bH63A" base_Comment="_s04B8IKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Destroy xmi:id="_s04B-oKGEeSFEt9m3bH63A" base_BehavioralFeature="_s03a5oKGEeSFEt9m3bH63A"/> + <standard:Destroy xmi:id="_s04B-4KGEeSFEt9m3bH63A" base_BehavioralFeature="_s04B6IKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_s04B_IKGEeSFEt9m3bH63A" base_Comment="_s04B7IKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_s04B_YKGEeSFEt9m3bH63A" base_Comment="_s04B8oKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_s04B_oKGEeSFEt9m3bH63A" base_Comment="_s04B8YKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Indexed.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Indexed.uml index 18993c39566..bafecb92999 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Indexed.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Indexed.uml @@ -1,122 +1,122 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_s1u9gIKGEeSFEt9m3bH63A" name="Model">
- <packagedElement xmi:type="uml:Class" xmi:id="_tKYX0IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed" classifierBehavior="_tKYX7oKGEeSFEt9m3bH63A" isActive="true">
- <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX74KGEeSFEt9m3bH63A" annotatedElement="_tKYX0IKGEeSFEt9m3bH63A">
- <body>
- * Test indexed assignment expressions.
- *</body>
- </ownedComment>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_tKYX34KGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX4IKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX4YKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX2IKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_tKYX0YKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX9IKGEeSFEt9m3bH63A" annotatedElement="_tKYX2IKGEeSFEt9m3bH63A">
- <body>activity 'test$method$1'(out i: Integer[0..*], out a: Integer[0..*]) { i = new Integer [] { 1..4 };
-i[1] = 0;
-i[2] += i[3];
-a = i;
-a[3] = 5;
-test::a[3] = 5;
-test.a[3] = 5;
-a[4] += 1;
-test::a[4] += 1;
-test.a[4] += 1;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX2YKGEeSFEt9m3bH63A" name="i" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX2oKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX24KGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX3IKGEeSFEt9m3bH63A" name="a" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX3YKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX3oKGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX4oKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$initialization$1" visibility="protected" specification="_tKYX44KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX84KGEeSFEt9m3bH63A" annotatedElement="_tKYX4oKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Indexed$initialization$1'(){
- if (this.'Expressions_Assignment_Indexed$initializationFlag$1' == null) {
- this.'Expressions_Assignment_Indexed$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX5IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$method$1" specification="_tKYX6IKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX8YKGEeSFEt9m3bH63A" annotatedElement="_tKYX5IKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Indexed$method$1'(): Expressions_Assignment_Indexed {
- this.'Expressions_Assignment_Indexed$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX5YKGEeSFEt9m3bH63A" type="_tKYX0IKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX5oKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX54KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX7IKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_tKYX7YKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX8oKGEeSFEt9m3bH63A" annotatedElement="_tKYX7IKGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX7oKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX8IKGEeSFEt9m3bH63A" annotatedElement="_tKYX7oKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Indexed$behavior$1'() { this.test(i, a);
-AssertEqual("i[1]", i[1], 0);
-AssertEqual("i[2]", i[2], 5);
-AssertEqual("i[3]", i[3], 3);
-AssertEqual("i[4]", i[4], 4);
-AssertEqual("a[1]", a[1], 0);
-AssertEqual("a[2]", a[2], 5);
-AssertEqual("a[3]", a[3], 5);
-AssertEqual("a[4]", a[4], 7);
-WriteLine("Done");
-}</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_tKYX0YKGEeSFEt9m3bH63A" name="test" visibility="public" method="_tKYX2IKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX0oKGEeSFEt9m3bH63A" name="i" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX04KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX1IKGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX1YKGEeSFEt9m3bH63A" name="a" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX1oKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX14KGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_tKYX44KGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$initialization$1" visibility="protected" method="_tKYX4oKGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_tKYX6IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed" method="_tKYX5IKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX6YKGEeSFEt9m3bH63A" type="_tKYX0IKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX6oKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX64KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_tKYX7YKGEeSFEt9m3bH63A" name="destroy" method="_tKYX7IKGEeSFEt9m3bH63A"/>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_s1u9gYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s1u9goKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_QqvM0LeLEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_QqvM0beLEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_tKYX9YKGEeSFEt9m3bH63A" base_Comment="_tKYX84KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_tKYX9oKGEeSFEt9m3bH63A" base_Comment="_tKYX8IKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_tKYX94KGEeSFEt9m3bH63A" base_Comment="_tKYX8oKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Destroy xmi:id="_tKYX-IKGEeSFEt9m3bH63A" base_BehavioralFeature="_tKYX7YKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_tKYX-YKGEeSFEt9m3bH63A" base_Comment="_tKYX9IKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_tKYX-oKGEeSFEt9m3bH63A" base_BehavioralFeature="_tKYX6IKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_tKYX-4KGEeSFEt9m3bH63A" base_Comment="_tKYX8YKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_s1u9gIKGEeSFEt9m3bH63A" name="Model"> + <packagedElement xmi:type="uml:Class" xmi:id="_tKYX0IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed" classifierBehavior="_tKYX7oKGEeSFEt9m3bH63A" isActive="true"> + <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX74KGEeSFEt9m3bH63A" annotatedElement="_tKYX0IKGEeSFEt9m3bH63A"> + <body>
 + * Test indexed assignment expressions.
 + *</body> + </ownedComment> + <ownedAttribute xmi:type="uml:Property" xmi:id="_tKYX34KGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX4IKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX4YKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX2IKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_tKYX0YKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX9IKGEeSFEt9m3bH63A" annotatedElement="_tKYX2IKGEeSFEt9m3bH63A"> + <body>activity 'test$method$1'(out i: Integer[0..*], out a: Integer[0..*]) { i = new Integer [] { 1..4 }; +i[1] = 0; +i[2] += i[3]; +a = i; +a[3] = 5; +test::a[3] = 5; +test.a[3] = 5; +a[4] += 1; +test::a[4] += 1; +test.a[4] += 1; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX2YKGEeSFEt9m3bH63A" name="i" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX2oKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX24KGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX3IKGEeSFEt9m3bH63A" name="a" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX3YKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX3oKGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX4oKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$initialization$1" visibility="protected" specification="_tKYX44KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX84KGEeSFEt9m3bH63A" annotatedElement="_tKYX4oKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Indexed$initialization$1'(){ + if (this.'Expressions_Assignment_Indexed$initializationFlag$1' == null) { + this.'Expressions_Assignment_Indexed$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX5IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$method$1" specification="_tKYX6IKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX8YKGEeSFEt9m3bH63A" annotatedElement="_tKYX5IKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Indexed$method$1'(): Expressions_Assignment_Indexed { + this.'Expressions_Assignment_Indexed$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX5YKGEeSFEt9m3bH63A" type="_tKYX0IKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX5oKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX54KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX7IKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_tKYX7YKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX8oKGEeSFEt9m3bH63A" annotatedElement="_tKYX7IKGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_tKYX7oKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$behavior$1" visibility="private"> + <ownedComment xmi:type="uml:Comment" xmi:id="_tKYX8IKGEeSFEt9m3bH63A" annotatedElement="_tKYX7oKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Indexed$behavior$1'() { this.test(i, a); +AssertEqual("i[1]", i[1], 0); +AssertEqual("i[2]", i[2], 5); +AssertEqual("i[3]", i[3], 3); +AssertEqual("i[4]", i[4], 4); +AssertEqual("a[1]", a[1], 0); +AssertEqual("a[2]", a[2], 5); +AssertEqual("a[3]", a[3], 5); +AssertEqual("a[4]", a[4], 7); +WriteLine("Done"); +}</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_tKYX0YKGEeSFEt9m3bH63A" name="test" visibility="public" method="_tKYX2IKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX0oKGEeSFEt9m3bH63A" name="i" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX04KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX1IKGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX1YKGEeSFEt9m3bH63A" name="a" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX1oKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX14KGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_tKYX44KGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed$initialization$1" visibility="protected" method="_tKYX4oKGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_tKYX6IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Indexed" method="_tKYX5IKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_tKYX6YKGEeSFEt9m3bH63A" type="_tKYX0IKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_tKYX6oKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_tKYX64KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_tKYX7YKGEeSFEt9m3bH63A" name="destroy" method="_tKYX7IKGEeSFEt9m3bH63A"/> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_s1u9gYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_s1u9goKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_QqvM0LeLEeS_zZpc9I-Bsg"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_QqvM0beLEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <ActionLanguage:TextualRepresentation xmi:id="_tKYX9YKGEeSFEt9m3bH63A" base_Comment="_tKYX84KGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_tKYX9oKGEeSFEt9m3bH63A" base_Comment="_tKYX8IKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_tKYX94KGEeSFEt9m3bH63A" base_Comment="_tKYX8oKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Destroy xmi:id="_tKYX-IKGEeSFEt9m3bH63A" base_BehavioralFeature="_tKYX7YKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_tKYX-YKGEeSFEt9m3bH63A" base_Comment="_tKYX9IKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Create xmi:id="_tKYX-oKGEeSFEt9m3bH63A" base_BehavioralFeature="_tKYX6IKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_tKYX-4KGEeSFEt9m3bH63A" base_Comment="_tKYX8YKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Null.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Null.uml index 78c3d9231a2..8ccc9e486df 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Null.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Assignment_Null.uml @@ -1,305 +1,305 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_tLlRsIKGEeSFEt9m3bH63A" name="Model">
- <packagedElement xmi:type="uml:Class" xmi:id="_t5p4oIKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null" classifierBehavior="_t5qf2oKGEeSFEt9m3bH63A" isActive="true">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf24KGEeSFEt9m3bH63A" annotatedElement="_t5p4oIKGEeSFEt9m3bH63A">
- <body>
- * Test non-literal assignment of null.
- *</body>
- </ownedComment>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_t5p4oYKGEeSFEt9m3bH63A" name="i" visibility="private">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4ooKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4o4KGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_t5p4pIKGEeSFEt9m3bH63A" name="j" visibility="private" isOrdered="true" isUnique="false">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4pYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4poKGEeSFEt9m3bH63A" value="*"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_t5p4p4KGEeSFEt9m3bH63A" name="d" visibility="private" type="_t5p4qoKGEeSFEt9m3bH63A">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4qIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4qYKGEeSFEt9m3bH63A" value="1"/>
- <defaultValue xmi:type="uml:OpaqueExpression" xmi:id="_t5p4roKGEeSFEt9m3bH63A" behavior="_t5p4r4KGEeSFEt9m3bH63A"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_t5qfy4KGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfzIKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfzYKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p4t4KGEeSFEt9m3bH63A" name="set$method$1" visibility="protected" specification="_t5p4s4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf44KGEeSFEt9m3bH63A" annotatedElement="_t5p4t4KGEeSFEt9m3bH63A">
- <body>activity 'set$method$1'(in i: Integer[0..1]) { this.i = i;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4uIKGEeSFEt9m3bH63A" name="i">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4uYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4uoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p4v4KGEeSFEt9m3bH63A" name="get$method$1" visibility="protected" specification="_t5p4u4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf5oKGEeSFEt9m3bH63A" annotatedElement="_t5p4v4KGEeSFEt9m3bH63A">
- <body>activity 'get$method$1'(): Integer[0..1] { return this.i;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4wIKGEeSFEt9m3bH63A" direction="return">
- <name xsi:nil="true"/>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4wYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4woKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p4yoKGEeSFEt9m3bH63A" name="setAt$method$1" visibility="protected" specification="_t5p4w4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf5YKGEeSFEt9m3bH63A" annotatedElement="_t5p4yoKGEeSFEt9m3bH63A">
- <body>activity 'setAt$method$1'(in j: Integer[0..1], in index: Integer) { this.j[index] = j;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4y4KGEeSFEt9m3bH63A" name="j">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4zIKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4zYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4zoKGEeSFEt9m3bH63A" name="index">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4z4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p40IKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p42IKGEeSFEt9m3bH63A" name="getAt$method$1" visibility="protected" specification="_t5p40YKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf54KGEeSFEt9m3bH63A" annotatedElement="_t5p42IKGEeSFEt9m3bH63A">
- <body>activity 'getAt$method$1'(in index: Integer): Integer[0..1] { return this.j[index];
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p42YKGEeSFEt9m3bH63A" name="index">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p42oKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p424KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p43IKGEeSFEt9m3bH63A" direction="return">
- <name xsi:nil="true"/>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p43YKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p43oKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p444KGEeSFEt9m3bH63A" name="setData$method$1" visibility="protected" specification="_t5p434KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf4YKGEeSFEt9m3bH63A" annotatedElement="_t5p444KGEeSFEt9m3bH63A">
- <body>activity 'setData$method$1'(in k: Integer[0..1]) { d = this.d;
-d.k = k;
-this.d = d;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p45IKGEeSFEt9m3bH63A" name="k">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p45YKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p45oKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qfs4KGEeSFEt9m3bH63A" name="getData$method$1" visibility="protected" specification="_t5p454KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf3oKGEeSFEt9m3bH63A" annotatedElement="_t5qfs4KGEeSFEt9m3bH63A">
- <body>activity 'getData$method$1'(): Integer { return this.d.k;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qftIKGEeSFEt9m3bH63A" direction="return">
- <name xsi:nil="true"/>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qftYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qftoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qfwYKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_t5qft4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf34KGEeSFEt9m3bH63A" annotatedElement="_t5qfwYKGEeSFEt9m3bH63A">
- <body>activity 'test$method$1'(out i: Integer[0..1], out j: Integer[0..1], out k: Integer[0..1]) { this.set(5);
-this.set(null);
-i = this.get();
-this.j = new Integer [] { 1, 2 };
-this.setAt(5, 1);
-this.setAt(null, 1);
-j = this.getAt(1);
-this.setData(5);
-this.setData(null);
-k = this.getData();
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfwoKGEeSFEt9m3bH63A" name="i" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfw4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfxIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfxYKGEeSFEt9m3bH63A" name="j" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfxoKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfx4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfyIKGEeSFEt9m3bH63A" name="k" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfyYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfyoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p4r4KGEeSFEt9m3bH63A" name="d$defaultValue$1">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf5IKGEeSFEt9m3bH63A" annotatedElement="_t5p4r4KGEeSFEt9m3bH63A">
- <body>activity 'd$defaultValue$1'(): D {
- return new D();
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4sIKGEeSFEt9m3bH63A" type="_t5p4qoKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4sYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4soKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qfzoKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$initialization$1" visibility="protected" specification="_t5qfz4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf3YKGEeSFEt9m3bH63A" annotatedElement="_t5qfzoKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Null$initialization$1'(){
- if (this.'Expressions_Assignment_Null$initializationFlag$1' == null) {
- this.d = 'd$defaultValue$1'();
- this.'Expressions_Assignment_Null$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qf0IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$method$1" specification="_t5qf1IKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf3IKGEeSFEt9m3bH63A" annotatedElement="_t5qf0IKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Null$method$1'(): Expressions_Assignment_Null {
- this.'Expressions_Assignment_Null$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qf0YKGEeSFEt9m3bH63A" type="_t5p4oIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qf0oKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qf04KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qf2IKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_t5qf2YKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf4IKGEeSFEt9m3bH63A" annotatedElement="_t5qf2IKGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qf2oKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf4oKGEeSFEt9m3bH63A" annotatedElement="_t5qf2oKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Assignment_Null$behavior$1'() { this.test(i, j, k);
-AssertEqual("i", i, null);
-AssertEqual("j", j, 2);
-AssertEqual("k", k, null);
-AssertTrue("this.d->notEmpty()", this.d->notEmpty());
-WriteLine("Done");
-}</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p4s4KGEeSFEt9m3bH63A" name="set" visibility="public" method="_t5p4t4KGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4tIKGEeSFEt9m3bH63A" name="i">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4tYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4toKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p4u4KGEeSFEt9m3bH63A" name="get" visibility="public" method="_t5p4v4KGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4vIKGEeSFEt9m3bH63A" direction="return">
- <name xsi:nil="true"/>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4vYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4voKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p4w4KGEeSFEt9m3bH63A" name="setAt" visibility="public" method="_t5p4yoKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4xIKGEeSFEt9m3bH63A" name="j">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4xYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4xoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4x4KGEeSFEt9m3bH63A" name="index">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4yIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4yYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p40YKGEeSFEt9m3bH63A" name="getAt" visibility="public" method="_t5p42IKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p40oKGEeSFEt9m3bH63A" name="index">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p404KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p41IKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p41YKGEeSFEt9m3bH63A" direction="return">
- <name xsi:nil="true"/>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p41oKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p414KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p434KGEeSFEt9m3bH63A" name="setData" visibility="public" method="_t5p444KGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p44IKGEeSFEt9m3bH63A" name="k">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p44YKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p44oKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p454KGEeSFEt9m3bH63A" name="getData" visibility="public" method="_t5qfs4KGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfsIKGEeSFEt9m3bH63A" direction="return">
- <name xsi:nil="true"/>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfsYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfsoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5qft4KGEeSFEt9m3bH63A" name="test" visibility="public" method="_t5qfwYKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfuIKGEeSFEt9m3bH63A" name="i" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfuYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfuoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfu4KGEeSFEt9m3bH63A" name="j" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfvIKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfvYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfvoKGEeSFEt9m3bH63A" name="k" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfv4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfwIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5qfz4KGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$initialization$1" visibility="protected" method="_t5qfzoKGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5qf1IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null" method="_t5qf0IKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qf1YKGEeSFEt9m3bH63A" type="_t5p4oIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qf1oKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qf14KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_t5qf2YKGEeSFEt9m3bH63A" name="destroy" method="_t5qf2IKGEeSFEt9m3bH63A"/>
- <nestedClassifier xmi:type="uml:DataType" xmi:id="_t5p4qoKGEeSFEt9m3bH63A" name="D" visibility="package">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_t5p4q4KGEeSFEt9m3bH63A" name="k" visibility="public">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4rIKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4rYKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- </nestedClassifier>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_tLlRsYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tLlRsoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_XSAbybeLEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_XSBC0LeLEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf6IKGEeSFEt9m3bH63A" base_Comment="_t5qf5IKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf6YKGEeSFEt9m3bH63A" base_Comment="_t5qf3YKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf6oKGEeSFEt9m3bH63A" base_Comment="_t5qf4oKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf64KGEeSFEt9m3bH63A" base_Comment="_t5qf5oKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf7IKGEeSFEt9m3bH63A" base_Comment="_t5qf54KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf7YKGEeSFEt9m3bH63A" base_Comment="_t5qf3IKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf7oKGEeSFEt9m3bH63A" base_Comment="_t5qf44KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf74KGEeSFEt9m3bH63A" base_Comment="_t5qf5YKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf8IKGEeSFEt9m3bH63A" base_Comment="_t5qf3oKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Destroy xmi:id="_t5qf8YKGEeSFEt9m3bH63A" base_BehavioralFeature="_t5qf2YKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf8oKGEeSFEt9m3bH63A" base_Comment="_t5qf34KGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_t5qf84KGEeSFEt9m3bH63A" base_BehavioralFeature="_t5qf1IKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf9IKGEeSFEt9m3bH63A" base_Comment="_t5qf4YKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_t5qf9YKGEeSFEt9m3bH63A" base_Comment="_t5qf4IKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_tLlRsIKGEeSFEt9m3bH63A" name="Model"> + <packagedElement xmi:type="uml:Class" xmi:id="_t5p4oIKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null" classifierBehavior="_t5qf2oKGEeSFEt9m3bH63A" isActive="true"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf24KGEeSFEt9m3bH63A" annotatedElement="_t5p4oIKGEeSFEt9m3bH63A"> + <body> + * Test non-literal assignment of null. + *</body> + </ownedComment> + <ownedAttribute xmi:type="uml:Property" xmi:id="_t5p4oYKGEeSFEt9m3bH63A" name="i" visibility="private"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4ooKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4o4KGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_t5p4pIKGEeSFEt9m3bH63A" name="j" visibility="private" isOrdered="true" isUnique="false"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4pYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4poKGEeSFEt9m3bH63A" value="*"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_t5p4p4KGEeSFEt9m3bH63A" name="d" visibility="private" type="_t5p4qoKGEeSFEt9m3bH63A"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4qIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4qYKGEeSFEt9m3bH63A" value="1"/> + <defaultValue xmi:type="uml:OpaqueExpression" xmi:id="_t5p4roKGEeSFEt9m3bH63A" behavior="_t5p4r4KGEeSFEt9m3bH63A"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_t5qfy4KGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfzIKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfzYKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p4t4KGEeSFEt9m3bH63A" name="set$method$1" visibility="protected" specification="_t5p4s4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf44KGEeSFEt9m3bH63A" annotatedElement="_t5p4t4KGEeSFEt9m3bH63A"> + <body>activity 'set$method$1'(in i: Integer[0..1]) { this.i = i; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4uIKGEeSFEt9m3bH63A" name="i"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4uYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4uoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p4v4KGEeSFEt9m3bH63A" name="get$method$1" visibility="protected" specification="_t5p4u4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf5oKGEeSFEt9m3bH63A" annotatedElement="_t5p4v4KGEeSFEt9m3bH63A"> + <body>activity 'get$method$1'(): Integer[0..1] { return this.i; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4wIKGEeSFEt9m3bH63A" direction="return"> + <name xsi:nil="true"/> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4wYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4woKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p4yoKGEeSFEt9m3bH63A" name="setAt$method$1" visibility="protected" specification="_t5p4w4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf5YKGEeSFEt9m3bH63A" annotatedElement="_t5p4yoKGEeSFEt9m3bH63A"> + <body>activity 'setAt$method$1'(in j: Integer[0..1], in index: Integer) { this.j[index] = j; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4y4KGEeSFEt9m3bH63A" name="j"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4zIKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4zYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4zoKGEeSFEt9m3bH63A" name="index"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4z4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p40IKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p42IKGEeSFEt9m3bH63A" name="getAt$method$1" visibility="protected" specification="_t5p40YKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf54KGEeSFEt9m3bH63A" annotatedElement="_t5p42IKGEeSFEt9m3bH63A"> + <body>activity 'getAt$method$1'(in index: Integer): Integer[0..1] { return this.j[index]; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p42YKGEeSFEt9m3bH63A" name="index"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p42oKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p424KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p43IKGEeSFEt9m3bH63A" direction="return"> + <name xsi:nil="true"/> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p43YKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p43oKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p444KGEeSFEt9m3bH63A" name="setData$method$1" visibility="protected" specification="_t5p434KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf4YKGEeSFEt9m3bH63A" annotatedElement="_t5p444KGEeSFEt9m3bH63A"> + <body>activity 'setData$method$1'(in k: Integer[0..1]) { d = this.d; +d.k = k; +this.d = d; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p45IKGEeSFEt9m3bH63A" name="k"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p45YKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p45oKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qfs4KGEeSFEt9m3bH63A" name="getData$method$1" visibility="protected" specification="_t5p454KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf3oKGEeSFEt9m3bH63A" annotatedElement="_t5qfs4KGEeSFEt9m3bH63A"> + <body>activity 'getData$method$1'(): Integer { return this.d.k; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qftIKGEeSFEt9m3bH63A" direction="return"> + <name xsi:nil="true"/> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qftYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qftoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qfwYKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_t5qft4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf34KGEeSFEt9m3bH63A" annotatedElement="_t5qfwYKGEeSFEt9m3bH63A"> + <body>activity 'test$method$1'(out i: Integer[0..1], out j: Integer[0..1], out k: Integer[0..1]) { this.set(5); +this.set(null); +i = this.get(); +this.j = new Integer [] { 1, 2 }; +this.setAt(5, 1); +this.setAt(null, 1); +j = this.getAt(1); +this.setData(5); +this.setData(null); +k = this.getData(); +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfwoKGEeSFEt9m3bH63A" name="i" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfw4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfxIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfxYKGEeSFEt9m3bH63A" name="j" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfxoKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfx4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfyIKGEeSFEt9m3bH63A" name="k" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfyYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfyoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5p4r4KGEeSFEt9m3bH63A" name="d$defaultValue$1"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf5IKGEeSFEt9m3bH63A" annotatedElement="_t5p4r4KGEeSFEt9m3bH63A"> + <body>activity 'd$defaultValue$1'(): D { + return new D(); +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4sIKGEeSFEt9m3bH63A" type="_t5p4qoKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4sYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4soKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qfzoKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$initialization$1" visibility="protected" specification="_t5qfz4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf3YKGEeSFEt9m3bH63A" annotatedElement="_t5qfzoKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Null$initialization$1'(){ + if (this.'Expressions_Assignment_Null$initializationFlag$1' == null) { + this.d = 'd$defaultValue$1'(); + this.'Expressions_Assignment_Null$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qf0IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$method$1" specification="_t5qf1IKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf3IKGEeSFEt9m3bH63A" annotatedElement="_t5qf0IKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Null$method$1'(): Expressions_Assignment_Null { + this.'Expressions_Assignment_Null$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qf0YKGEeSFEt9m3bH63A" type="_t5p4oIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qf0oKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qf04KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qf2IKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_t5qf2YKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf4IKGEeSFEt9m3bH63A" annotatedElement="_t5qf2IKGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_t5qf2oKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$behavior$1" visibility="private"> + <ownedComment xmi:type="uml:Comment" xmi:id="_t5qf4oKGEeSFEt9m3bH63A" annotatedElement="_t5qf2oKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Assignment_Null$behavior$1'() { this.test(i, j, k); +AssertEqual("i", i, null); +AssertEqual("j", j, 2); +AssertEqual("k", k, null); +AssertTrue("this.d->notEmpty()", this.d->notEmpty()); +WriteLine("Done"); +}</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p4s4KGEeSFEt9m3bH63A" name="set" visibility="public" method="_t5p4t4KGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4tIKGEeSFEt9m3bH63A" name="i"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4tYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4toKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p4u4KGEeSFEt9m3bH63A" name="get" visibility="public" method="_t5p4v4KGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4vIKGEeSFEt9m3bH63A" direction="return"> + <name xsi:nil="true"/> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4vYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4voKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p4w4KGEeSFEt9m3bH63A" name="setAt" visibility="public" method="_t5p4yoKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4xIKGEeSFEt9m3bH63A" name="j"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4xYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4xoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p4x4KGEeSFEt9m3bH63A" name="index"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4yIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4yYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p40YKGEeSFEt9m3bH63A" name="getAt" visibility="public" method="_t5p42IKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p40oKGEeSFEt9m3bH63A" name="index"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p404KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p41IKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p41YKGEeSFEt9m3bH63A" direction="return"> + <name xsi:nil="true"/> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p41oKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p414KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p434KGEeSFEt9m3bH63A" name="setData" visibility="public" method="_t5p444KGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5p44IKGEeSFEt9m3bH63A" name="k"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p44YKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p44oKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5p454KGEeSFEt9m3bH63A" name="getData" visibility="public" method="_t5qfs4KGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfsIKGEeSFEt9m3bH63A" direction="return"> + <name xsi:nil="true"/> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfsYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfsoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5qft4KGEeSFEt9m3bH63A" name="test" visibility="public" method="_t5qfwYKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfuIKGEeSFEt9m3bH63A" name="i" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfuYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfuoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfu4KGEeSFEt9m3bH63A" name="j" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfvIKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfvYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qfvoKGEeSFEt9m3bH63A" name="k" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qfv4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qfwIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5qfz4KGEeSFEt9m3bH63A" name="Expressions_Assignment_Null$initialization$1" visibility="protected" method="_t5qfzoKGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5qf1IKGEeSFEt9m3bH63A" name="Expressions_Assignment_Null" method="_t5qf0IKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_t5qf1YKGEeSFEt9m3bH63A" type="_t5p4oIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5qf1oKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5qf14KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_t5qf2YKGEeSFEt9m3bH63A" name="destroy" method="_t5qf2IKGEeSFEt9m3bH63A"/> + <nestedClassifier xmi:type="uml:DataType" xmi:id="_t5p4qoKGEeSFEt9m3bH63A" name="D" visibility="package"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_t5p4q4KGEeSFEt9m3bH63A" name="k" visibility="public"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_t5p4rIKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_t5p4rYKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + </nestedClassifier> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_tLlRsYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tLlRsoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_XSAbybeLEeS_zZpc9I-Bsg"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_XSBC0LeLEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf6IKGEeSFEt9m3bH63A" base_Comment="_t5qf5IKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf6YKGEeSFEt9m3bH63A" base_Comment="_t5qf3YKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf6oKGEeSFEt9m3bH63A" base_Comment="_t5qf4oKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf64KGEeSFEt9m3bH63A" base_Comment="_t5qf5oKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf7IKGEeSFEt9m3bH63A" base_Comment="_t5qf54KGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf7YKGEeSFEt9m3bH63A" base_Comment="_t5qf3IKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf7oKGEeSFEt9m3bH63A" base_Comment="_t5qf44KGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf74KGEeSFEt9m3bH63A" base_Comment="_t5qf5YKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf8IKGEeSFEt9m3bH63A" base_Comment="_t5qf3oKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Destroy xmi:id="_t5qf8YKGEeSFEt9m3bH63A" base_BehavioralFeature="_t5qf2YKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf8oKGEeSFEt9m3bH63A" base_Comment="_t5qf34KGEeSFEt9m3bH63A" language="Alf"/> + <standard:Create xmi:id="_t5qf84KGEeSFEt9m3bH63A" base_BehavioralFeature="_t5qf1IKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf9IKGEeSFEt9m3bH63A" base_Comment="_t5qf4YKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_t5qf9YKGEeSFEt9m3bH63A" base_Comment="_t5qf4IKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Increment_Decrement.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Increment_Decrement.uml index 7147e4f393b..f072299765b 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Increment_Decrement.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Increment_Decrement.uml @@ -1,186 +1,186 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_xYhMMIKGEeSFEt9m3bH63A" name="Model">
- <packagedElement xmi:type="uml:Class" xmi:id="_xwPIoIKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement" classifierBehavior="_xwPv5IKGEeSFEt9m3bH63A" isActive="true">
- <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv5YKGEeSFEt9m3bH63A" annotatedElement="_xwPIoIKGEeSFEt9m3bH63A">
- <body>
- * Test increment and decrement expressions.
- *</body>
- </ownedComment>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_xwPIoYKGEeSFEt9m3bH63A" name="x" visibility="private">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPIooKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPIo4KGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_xwPIpIKGEeSFEt9m3bH63A" name="list" visibility="private" isOrdered="true" isUnique="false">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPIpYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPIpoKGEeSFEt9m3bH63A" value="*"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_xwPv1YKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv1oKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv14KGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPvwoKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_xwPIp4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv6YKGEeSFEt9m3bH63A" annotatedElement="_xwPvwoKGEeSFEt9m3bH63A">
- <body>activity 'test$method$1'(out s: Integer[0..*] sequence, out i: Integer, out x: Integer, out list: Integer[0..*] sequence, out j: Integer, out k: Integer) { s = new Integer [] { 1, 2 };
-i = 1;
-this.x = 2;
-this.list = s;
-++ i;
-++ i;
-j = -- i;
-++ s[i];
-++ s[i];
--- s[i];
-++ this.x;
-++ this.x;
--- this.x;
-++ this.list[i];
-++ this.list[i];
--- this.list[i];
-++ i;
-k = -- i;
-++ s[i];
--- s[i];
-++ this.x;
--- this.x;
-++ this.list[i];
--- this.list[i];
-x = this.x;
-list = this.list;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvw4KGEeSFEt9m3bH63A" name="s" isOrdered="true" isUnique="false" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvxIKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvxYKGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvxoKGEeSFEt9m3bH63A" name="i" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvx4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvyIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvyYKGEeSFEt9m3bH63A" name="x" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvyoKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvy4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvzIKGEeSFEt9m3bH63A" name="list" isOrdered="true" isUnique="false" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvzYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvzoKGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvz4KGEeSFEt9m3bH63A" name="j" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv0IKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv0YKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPv0oKGEeSFEt9m3bH63A" name="k" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv04KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv1IKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPv2IKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$initialization$1" visibility="protected" specification="_xwPv2YKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv54KGEeSFEt9m3bH63A" annotatedElement="_xwPv2IKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Increment_Decrement$initialization$1'(){
- if (this.'Expressions_Increment_Decrement$initializationFlag$1' == null) {
- this.'Expressions_Increment_Decrement$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPv2oKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$method$1" specification="_xwPv3oKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv6IKGEeSFEt9m3bH63A" annotatedElement="_xwPv2oKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Increment_Decrement$method$1'(): Expressions_Increment_Decrement {
- this.'Expressions_Increment_Decrement$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPv24KGEeSFEt9m3bH63A" type="_xwPIoIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv3IKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv3YKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPv4oKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_xwPv44KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv5oKGEeSFEt9m3bH63A" annotatedElement="_xwPv4oKGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPv5IKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv6oKGEeSFEt9m3bH63A" annotatedElement="_xwPv5IKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Increment_Decrement$behavior$1'() { this.test(s, i, x, list, j, k);
-AssertList("s", s, new Integer [] { 1, 3 });
-AssertEqual("i", i, 2);
-AssertEqual("x", x, 3);
-AssertList("list", list, new Integer [] { 1, 3 });
-AssertEqual("j", j, 3);
-AssertEqual("k", k, 2);
-WriteLine("Done");
-}</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_xwPIp4KGEeSFEt9m3bH63A" name="test" visibility="public" method="_xwPvwoKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvsIKGEeSFEt9m3bH63A" name="s" isOrdered="true" isUnique="false" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvsYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvsoKGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvs4KGEeSFEt9m3bH63A" name="i" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvtIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvtYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvtoKGEeSFEt9m3bH63A" name="x" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvt4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvuIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvuYKGEeSFEt9m3bH63A" name="list" isOrdered="true" isUnique="false" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvuoKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvu4KGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvvIKGEeSFEt9m3bH63A" name="j" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvvYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvvoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvv4KGEeSFEt9m3bH63A" name="k" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvwIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvwYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_xwPv2YKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$initialization$1" visibility="protected" method="_xwPv2IKGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_xwPv3oKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement" method="_xwPv2oKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPv34KGEeSFEt9m3bH63A" type="_xwPIoIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv4IKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv4YKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_xwPv44KGEeSFEt9m3bH63A" name="destroy" method="_xwPv4oKGEeSFEt9m3bH63A"/>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_xYhMMYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xYhMMoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_r3ZLZLeLEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_r3ZycLeLEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_xwPv64KGEeSFEt9m3bH63A" base_Comment="_xwPv5oKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_xwPv7IKGEeSFEt9m3bH63A" base_Comment="_xwPv54KGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_xwPv7YKGEeSFEt9m3bH63A" base_BehavioralFeature="_xwPv3oKGEeSFEt9m3bH63A"/>
- <standard:Destroy xmi:id="_xwPv7oKGEeSFEt9m3bH63A" base_BehavioralFeature="_xwPv44KGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_xwPv74KGEeSFEt9m3bH63A" base_Comment="_xwPv6IKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_xwPv8IKGEeSFEt9m3bH63A" base_Comment="_xwPv6YKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_xwPv8YKGEeSFEt9m3bH63A" base_Comment="_xwPv6oKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_xYhMMIKGEeSFEt9m3bH63A" name="Model"> + <packagedElement xmi:type="uml:Class" xmi:id="_xwPIoIKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement" classifierBehavior="_xwPv5IKGEeSFEt9m3bH63A" isActive="true"> + <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv5YKGEeSFEt9m3bH63A" annotatedElement="_xwPIoIKGEeSFEt9m3bH63A"> + <body>
 + * Test increment and decrement expressions.
 + *</body> + </ownedComment> + <ownedAttribute xmi:type="uml:Property" xmi:id="_xwPIoYKGEeSFEt9m3bH63A" name="x" visibility="private"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPIooKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPIo4KGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_xwPIpIKGEeSFEt9m3bH63A" name="list" visibility="private" isOrdered="true" isUnique="false"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPIpYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPIpoKGEeSFEt9m3bH63A" value="*"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_xwPv1YKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv1oKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv14KGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPvwoKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_xwPIp4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv6YKGEeSFEt9m3bH63A" annotatedElement="_xwPvwoKGEeSFEt9m3bH63A"> + <body>activity 'test$method$1'(out s: Integer[0..*] sequence, out i: Integer, out x: Integer, out list: Integer[0..*] sequence, out j: Integer, out k: Integer) { s = new Integer [] { 1, 2 }; +i = 1; +this.x = 2; +this.list = s; +++ i; +++ i; +j = -- i; +++ s[i]; +++ s[i]; +-- s[i]; +++ this.x; +++ this.x; +-- this.x; +++ this.list[i]; +++ this.list[i]; +-- this.list[i]; +++ i; +k = -- i; +++ s[i]; +-- s[i]; +++ this.x; +-- this.x; +++ this.list[i]; +-- this.list[i]; +x = this.x; +list = this.list; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvw4KGEeSFEt9m3bH63A" name="s" isOrdered="true" isUnique="false" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvxIKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvxYKGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvxoKGEeSFEt9m3bH63A" name="i" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvx4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvyIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvyYKGEeSFEt9m3bH63A" name="x" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvyoKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvy4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvzIKGEeSFEt9m3bH63A" name="list" isOrdered="true" isUnique="false" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvzYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvzoKGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvz4KGEeSFEt9m3bH63A" name="j" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv0IKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv0YKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPv0oKGEeSFEt9m3bH63A" name="k" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv04KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv1IKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPv2IKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$initialization$1" visibility="protected" specification="_xwPv2YKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv54KGEeSFEt9m3bH63A" annotatedElement="_xwPv2IKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Increment_Decrement$initialization$1'(){ + if (this.'Expressions_Increment_Decrement$initializationFlag$1' == null) { + this.'Expressions_Increment_Decrement$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPv2oKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$method$1" specification="_xwPv3oKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv6IKGEeSFEt9m3bH63A" annotatedElement="_xwPv2oKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Increment_Decrement$method$1'(): Expressions_Increment_Decrement { + this.'Expressions_Increment_Decrement$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPv24KGEeSFEt9m3bH63A" type="_xwPIoIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv3IKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv3YKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPv4oKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_xwPv44KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv5oKGEeSFEt9m3bH63A" annotatedElement="_xwPv4oKGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_xwPv5IKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$behavior$1" visibility="private"> + <ownedComment xmi:type="uml:Comment" xmi:id="_xwPv6oKGEeSFEt9m3bH63A" annotatedElement="_xwPv5IKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Increment_Decrement$behavior$1'() { this.test(s, i, x, list, j, k); +AssertList("s", s, new Integer [] { 1, 3 }); +AssertEqual("i", i, 2); +AssertEqual("x", x, 3); +AssertList("list", list, new Integer [] { 1, 3 }); +AssertEqual("j", j, 3); +AssertEqual("k", k, 2); +WriteLine("Done"); +}</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_xwPIp4KGEeSFEt9m3bH63A" name="test" visibility="public" method="_xwPvwoKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvsIKGEeSFEt9m3bH63A" name="s" isOrdered="true" isUnique="false" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvsYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvsoKGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvs4KGEeSFEt9m3bH63A" name="i" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvtIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvtYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvtoKGEeSFEt9m3bH63A" name="x" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvt4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvuIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvuYKGEeSFEt9m3bH63A" name="list" isOrdered="true" isUnique="false" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvuoKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvu4KGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvvIKGEeSFEt9m3bH63A" name="j" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvvYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvvoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPvv4KGEeSFEt9m3bH63A" name="k" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPvwIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPvwYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_xwPv2YKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement$initialization$1" visibility="protected" method="_xwPv2IKGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_xwPv3oKGEeSFEt9m3bH63A" name="Expressions_Increment_Decrement" method="_xwPv2oKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_xwPv34KGEeSFEt9m3bH63A" type="_xwPIoIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_xwPv4IKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_xwPv4YKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_xwPv44KGEeSFEt9m3bH63A" name="destroy" method="_xwPv4oKGEeSFEt9m3bH63A"/> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_xYhMMYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_xYhMMoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_r3ZLZLeLEeS_zZpc9I-Bsg"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_r3ZycLeLEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <ActionLanguage:TextualRepresentation xmi:id="_xwPv64KGEeSFEt9m3bH63A" base_Comment="_xwPv5oKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_xwPv7IKGEeSFEt9m3bH63A" base_Comment="_xwPv54KGEeSFEt9m3bH63A" language="Alf"/> + <standard:Create xmi:id="_xwPv7YKGEeSFEt9m3bH63A" base_BehavioralFeature="_xwPv3oKGEeSFEt9m3bH63A"/> + <standard:Destroy xmi:id="_xwPv7oKGEeSFEt9m3bH63A" base_BehavioralFeature="_xwPv44KGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_xwPv74KGEeSFEt9m3bH63A" base_Comment="_xwPv6IKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_xwPv8IKGEeSFEt9m3bH63A" base_Comment="_xwPv6YKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_xwPv8YKGEeSFEt9m3bH63A" base_Comment="_xwPv6oKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Object.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Object.uml index f221d6ce741..e0c60e41809 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Object.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Expressions_Object.uml @@ -1,252 +1,252 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_0LrQUIKGEeSFEt9m3bH63A" name="Model">
- <packagedElement xmi:type="uml:Class" xmi:id="_0nS1UIKGEeSFEt9m3bH63A" name="Expressions_Object" classifierBehavior="_0nS1r4KGEeSFEt9m3bH63A" isActive="true">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1sIKGEeSFEt9m3bH63A" annotatedElement="_0nS1UIKGEeSFEt9m3bH63A">
- <body>
- * Test object structure expressions.
- *</body>
- </ownedComment>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1UYKGEeSFEt9m3bH63A" name="members" visibility="package" type="_0nS1VIKGEeSFEt9m3bH63A" isOrdered="true" isUnique="false">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1UoKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1U4KGEeSFEt9m3bH63A" value="*"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1bYKGEeSFEt9m3bH63A" name="principal" visibility="package">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1boKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1b4KGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1cIKGEeSFEt9m3bH63A" name="rate" visibility="package">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1cYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1coKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1c4KGEeSFEt9m3bH63A" name="interest" visibility="package">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1dIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1dYKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1oIKGEeSFEt9m3bH63A" name="Expressions_Object$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1oYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1ooKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1kIKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_0nS1gIKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1s4KGEeSFEt9m3bH63A" annotatedElement="_0nS1kIKGEeSFEt9m3bH63A">
- <body>activity 'test$method$1'(out member: Member, out customer0: Customer, out customer1: Customer, out names: String[0..*], out self: Expressions_Object) { this.members[1] = new Member();
-this.members[2] = new Member();
-this.members[1].name = "A";
-this.members[2].name = "B";
-member = this.members[1];
-member.isActive = true;
-member.address = "Easy Street";
-customer0 = new Customer(name=>"Fred", email=>"fred@blah.com",
-address=>"Unknown");
-customer1 = customer0;
-customer1.address = member.address;
-this.principal = 1000;
-this.rate = 5;
-this.interest = this.principal * this.rate / 100 * 10;
-names = this.members.name;
-self = this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1kYKGEeSFEt9m3bH63A" name="member" type="_0nS1VIKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1koKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1k4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1lIKGEeSFEt9m3bH63A" name="customer0" type="_0nS1doKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1lYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1loKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1l4KGEeSFEt9m3bH63A" name="customer1" type="_0nS1doKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1mIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1mYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1moKGEeSFEt9m3bH63A" name="names" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1m4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1nIKGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1nYKGEeSFEt9m3bH63A" name="self" type="_0nS1UIKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1noKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1n4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1o4KGEeSFEt9m3bH63A" name="Expressions_Object$initialization$1" visibility="protected" specification="_0nS1pIKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1t4KGEeSFEt9m3bH63A" annotatedElement="_0nS1o4KGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Object$initialization$1'(){
- if (this.'Expressions_Object$initializationFlag$1' == null) {
- this.'Expressions_Object$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1pYKGEeSFEt9m3bH63A" name="Expressions_Object$method$1" specification="_0nS1qYKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1sYKGEeSFEt9m3bH63A" annotatedElement="_0nS1pYKGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Object$method$1'(): Expressions_Object {
- this.'Expressions_Object$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1poKGEeSFEt9m3bH63A" type="_0nS1UIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1p4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1qIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1rYKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_0nS1roKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1toKGEeSFEt9m3bH63A" annotatedElement="_0nS1rYKGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1r4KGEeSFEt9m3bH63A" name="Expressions_Object$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1uIKGEeSFEt9m3bH63A" annotatedElement="_0nS1r4KGEeSFEt9m3bH63A">
- <body>activity 'Expressions_Object$behavior$1'() { this.test(member, customer0, customer1, names, self);
-AssertEqual("member.name", member.name, "A");
-AssertTrue("member.isActive", member.isActive);
-AssertEqual("member.address", member.address, "Easy Street");
-AssertEqual("customer0.name", customer0.name, "Fred");
-AssertEqual("customer0.email", customer0.email, "fred@blah.com");
-AssertList("customer0.address", customer0.address, "Unknown");
-AssertEqual("customer1.name", customer1.name, "Fred");
-AssertEqual("customer1.email", customer1.email, "fred@blah.com");
-AssertList("customer1.address", customer1.address, "Easy Street");
-AssertEqual("self.principal", self.principal, 1000);
-AssertEqual("self.rate", self.rate, 5);
-AssertEqual("self.interest", self.interest, 500);
-AssertList("names", names, new String [] { "A", "B" });
-WriteLine("Done");
-}</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1gIKGEeSFEt9m3bH63A" name="test" visibility="package" method="_0nS1kIKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1gYKGEeSFEt9m3bH63A" name="member" type="_0nS1VIKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1goKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1g4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1hIKGEeSFEt9m3bH63A" name="customer0" type="_0nS1doKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1hYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1hoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1h4KGEeSFEt9m3bH63A" name="customer1" type="_0nS1doKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1iIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1iYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1ioKGEeSFEt9m3bH63A" name="names" direction="out">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1i4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1jIKGEeSFEt9m3bH63A" value="*"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1jYKGEeSFEt9m3bH63A" name="self" type="_0nS1UIKGEeSFEt9m3bH63A" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1joKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1j4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1pIKGEeSFEt9m3bH63A" name="Expressions_Object$initialization$1" visibility="protected" method="_0nS1o4KGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1qYKGEeSFEt9m3bH63A" name="Expressions_Object" method="_0nS1pYKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1qoKGEeSFEt9m3bH63A" type="_0nS1UIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1q4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1rIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1roKGEeSFEt9m3bH63A" name="destroy" method="_0nS1rYKGEeSFEt9m3bH63A"/>
- <nestedClassifier xmi:type="uml:Class" xmi:id="_0nS1VIKGEeSFEt9m3bH63A" name="Member" visibility="package">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1VYKGEeSFEt9m3bH63A" name="isActive" visibility="public">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1VoKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1V4KGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1WIKGEeSFEt9m3bH63A" name="name" visibility="public">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1WYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1WoKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1W4KGEeSFEt9m3bH63A" name="address" visibility="public">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1XIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1XYKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1XoKGEeSFEt9m3bH63A" name="Member$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1X4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1YIKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1YYKGEeSFEt9m3bH63A" name="Member$initialization$1" visibility="protected" specification="_0nS1YoKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1tYKGEeSFEt9m3bH63A" annotatedElement="_0nS1YYKGEeSFEt9m3bH63A">
- <body>activity 'Member$initialization$1'(){
- if (this.'Member$initializationFlag$1' == null) {
- this.'Member$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1Y4KGEeSFEt9m3bH63A" name="Member$method$1" specification="_0nS1Z4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1tIKGEeSFEt9m3bH63A" annotatedElement="_0nS1Y4KGEeSFEt9m3bH63A">
- <body>activity 'Member$method$1'(): Member {
- this.'Member$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1ZIKGEeSFEt9m3bH63A" type="_0nS1VIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1ZYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1ZoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1a4KGEeSFEt9m3bH63A" name="destroy$method$1" specification="_0nS1bIKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1soKGEeSFEt9m3bH63A" annotatedElement="_0nS1a4KGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1YoKGEeSFEt9m3bH63A" name="Member$initialization$1" visibility="protected" method="_0nS1YYKGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1Z4KGEeSFEt9m3bH63A" name="Member" method="_0nS1Y4KGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1aIKGEeSFEt9m3bH63A" type="_0nS1VIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1aYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1aoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1bIKGEeSFEt9m3bH63A" name="destroy" method="_0nS1a4KGEeSFEt9m3bH63A"/>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:DataType" xmi:id="_0nS1doKGEeSFEt9m3bH63A" name="Customer" visibility="package">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1d4KGEeSFEt9m3bH63A" name="name" visibility="public">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1eIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1eYKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1eoKGEeSFEt9m3bH63A" name="email" visibility="public">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1e4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1fIKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1fYKGEeSFEt9m3bH63A" name="address" visibility="public" isOrdered="true" isUnique="false">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1foKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1f4KGEeSFEt9m3bH63A" value="*"/>
- </ownedAttribute>
- </nestedClassifier>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_0LrQUYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_0LrQUoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="__Di3N7eLEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__DjeQLeLEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <standard:Create xmi:id="_0nS1uYKGEeSFEt9m3bH63A" base_BehavioralFeature="_0nS1qYKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_0nS1uoKGEeSFEt9m3bH63A" base_Comment="_0nS1soKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Destroy xmi:id="_0nS1u4KGEeSFEt9m3bH63A" base_BehavioralFeature="_0nS1roKGEeSFEt9m3bH63A"/>
- <standard:Destroy xmi:id="_0nS1vIKGEeSFEt9m3bH63A" base_BehavioralFeature="_0nS1bIKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_0nS1vYKGEeSFEt9m3bH63A" base_Comment="_0nS1t4KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_0nS1voKGEeSFEt9m3bH63A" base_Comment="_0nS1tYKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_0nS1v4KGEeSFEt9m3bH63A" base_Comment="_0nS1sYKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_0nS1wIKGEeSFEt9m3bH63A" base_Comment="_0nS1s4KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_0nS1wYKGEeSFEt9m3bH63A" base_Comment="_0nS1uIKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_0nS1woKGEeSFEt9m3bH63A" base_Comment="_0nS1tIKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_0nS1w4KGEeSFEt9m3bH63A" base_BehavioralFeature="_0nS1Z4KGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_0nS1xIKGEeSFEt9m3bH63A" base_Comment="_0nS1toKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_0LrQUIKGEeSFEt9m3bH63A" name="Model"> + <packagedElement xmi:type="uml:Class" xmi:id="_0nS1UIKGEeSFEt9m3bH63A" name="Expressions_Object" classifierBehavior="_0nS1r4KGEeSFEt9m3bH63A" isActive="true"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1sIKGEeSFEt9m3bH63A" annotatedElement="_0nS1UIKGEeSFEt9m3bH63A"> + <body>
 + * Test object structure expressions.
 + *</body> + </ownedComment> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1UYKGEeSFEt9m3bH63A" name="members" visibility="package" type="_0nS1VIKGEeSFEt9m3bH63A" isOrdered="true" isUnique="false"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1UoKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1U4KGEeSFEt9m3bH63A" value="*"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1bYKGEeSFEt9m3bH63A" name="principal" visibility="package"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1boKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1b4KGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1cIKGEeSFEt9m3bH63A" name="rate" visibility="package"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1cYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1coKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1c4KGEeSFEt9m3bH63A" name="interest" visibility="package"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1dIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1dYKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1oIKGEeSFEt9m3bH63A" name="Expressions_Object$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1oYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1ooKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1kIKGEeSFEt9m3bH63A" name="test$method$1" visibility="protected" specification="_0nS1gIKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1s4KGEeSFEt9m3bH63A" annotatedElement="_0nS1kIKGEeSFEt9m3bH63A"> + <body>activity 'test$method$1'(out member: Member, out customer0: Customer, out customer1: Customer, out names: String[0..*], out self: Expressions_Object) { this.members[1] = new Member(); +this.members[2] = new Member(); +this.members[1].name = "A"; +this.members[2].name = "B"; +member = this.members[1]; +member.isActive = true; +member.address = "Easy Street"; +customer0 = new Customer(name=>"Fred", email=>"fred@blah.com", +address=>"Unknown"); +customer1 = customer0; +customer1.address = member.address; +this.principal = 1000; +this.rate = 5; +this.interest = this.principal * this.rate / 100 * 10; +names = this.members.name; +self = this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1kYKGEeSFEt9m3bH63A" name="member" type="_0nS1VIKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1koKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1k4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1lIKGEeSFEt9m3bH63A" name="customer0" type="_0nS1doKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1lYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1loKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1l4KGEeSFEt9m3bH63A" name="customer1" type="_0nS1doKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1mIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1mYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1moKGEeSFEt9m3bH63A" name="names" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1m4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1nIKGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1nYKGEeSFEt9m3bH63A" name="self" type="_0nS1UIKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1noKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1n4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1o4KGEeSFEt9m3bH63A" name="Expressions_Object$initialization$1" visibility="protected" specification="_0nS1pIKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1t4KGEeSFEt9m3bH63A" annotatedElement="_0nS1o4KGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Object$initialization$1'(){ + if (this.'Expressions_Object$initializationFlag$1' == null) { + this.'Expressions_Object$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1pYKGEeSFEt9m3bH63A" name="Expressions_Object$method$1" specification="_0nS1qYKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1sYKGEeSFEt9m3bH63A" annotatedElement="_0nS1pYKGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Object$method$1'(): Expressions_Object { + this.'Expressions_Object$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1poKGEeSFEt9m3bH63A" type="_0nS1UIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1p4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1qIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1rYKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_0nS1roKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1toKGEeSFEt9m3bH63A" annotatedElement="_0nS1rYKGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1r4KGEeSFEt9m3bH63A" name="Expressions_Object$behavior$1" visibility="private"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1uIKGEeSFEt9m3bH63A" annotatedElement="_0nS1r4KGEeSFEt9m3bH63A"> + <body>activity 'Expressions_Object$behavior$1'() { this.test(member, customer0, customer1, names, self); +AssertEqual("member.name", member.name, "A"); +AssertTrue("member.isActive", member.isActive); +AssertEqual("member.address", member.address, "Easy Street"); +AssertEqual("customer0.name", customer0.name, "Fred"); +AssertEqual("customer0.email", customer0.email, "fred@blah.com"); +AssertList("customer0.address", customer0.address, "Unknown"); +AssertEqual("customer1.name", customer1.name, "Fred"); +AssertEqual("customer1.email", customer1.email, "fred@blah.com"); +AssertList("customer1.address", customer1.address, "Easy Street"); +AssertEqual("self.principal", self.principal, 1000); +AssertEqual("self.rate", self.rate, 5); +AssertEqual("self.interest", self.interest, 500); +AssertList("names", names, new String [] { "A", "B" }); +WriteLine("Done"); +}</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1gIKGEeSFEt9m3bH63A" name="test" visibility="package" method="_0nS1kIKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1gYKGEeSFEt9m3bH63A" name="member" type="_0nS1VIKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1goKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1g4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1hIKGEeSFEt9m3bH63A" name="customer0" type="_0nS1doKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1hYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1hoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1h4KGEeSFEt9m3bH63A" name="customer1" type="_0nS1doKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1iIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1iYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1ioKGEeSFEt9m3bH63A" name="names" direction="out"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1i4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1jIKGEeSFEt9m3bH63A" value="*"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1jYKGEeSFEt9m3bH63A" name="self" type="_0nS1UIKGEeSFEt9m3bH63A" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1joKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1j4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1pIKGEeSFEt9m3bH63A" name="Expressions_Object$initialization$1" visibility="protected" method="_0nS1o4KGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1qYKGEeSFEt9m3bH63A" name="Expressions_Object" method="_0nS1pYKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1qoKGEeSFEt9m3bH63A" type="_0nS1UIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1q4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1rIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1roKGEeSFEt9m3bH63A" name="destroy" method="_0nS1rYKGEeSFEt9m3bH63A"/> + <nestedClassifier xmi:type="uml:Class" xmi:id="_0nS1VIKGEeSFEt9m3bH63A" name="Member" visibility="package"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1VYKGEeSFEt9m3bH63A" name="isActive" visibility="public"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1VoKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1V4KGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1WIKGEeSFEt9m3bH63A" name="name" visibility="public"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1WYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1WoKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1W4KGEeSFEt9m3bH63A" name="address" visibility="public"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1XIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1XYKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1XoKGEeSFEt9m3bH63A" name="Member$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1X4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1YIKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1YYKGEeSFEt9m3bH63A" name="Member$initialization$1" visibility="protected" specification="_0nS1YoKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1tYKGEeSFEt9m3bH63A" annotatedElement="_0nS1YYKGEeSFEt9m3bH63A"> + <body>activity 'Member$initialization$1'(){ + if (this.'Member$initializationFlag$1' == null) { + this.'Member$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1Y4KGEeSFEt9m3bH63A" name="Member$method$1" specification="_0nS1Z4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1tIKGEeSFEt9m3bH63A" annotatedElement="_0nS1Y4KGEeSFEt9m3bH63A"> + <body>activity 'Member$method$1'(): Member { + this.'Member$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1ZIKGEeSFEt9m3bH63A" type="_0nS1VIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1ZYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1ZoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_0nS1a4KGEeSFEt9m3bH63A" name="destroy$method$1" specification="_0nS1bIKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_0nS1soKGEeSFEt9m3bH63A" annotatedElement="_0nS1a4KGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1YoKGEeSFEt9m3bH63A" name="Member$initialization$1" visibility="protected" method="_0nS1YYKGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1Z4KGEeSFEt9m3bH63A" name="Member" method="_0nS1Y4KGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_0nS1aIKGEeSFEt9m3bH63A" type="_0nS1VIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1aYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1aoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_0nS1bIKGEeSFEt9m3bH63A" name="destroy" method="_0nS1a4KGEeSFEt9m3bH63A"/> + </nestedClassifier> + <nestedClassifier xmi:type="uml:DataType" xmi:id="_0nS1doKGEeSFEt9m3bH63A" name="Customer" visibility="package"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1d4KGEeSFEt9m3bH63A" name="name" visibility="public"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1eIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1eYKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1eoKGEeSFEt9m3bH63A" name="email" visibility="public"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1e4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1fIKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedAttribute xmi:type="uml:Property" xmi:id="_0nS1fYKGEeSFEt9m3bH63A" name="address" visibility="public" isOrdered="true" isUnique="false"> + <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0nS1foKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0nS1f4KGEeSFEt9m3bH63A" value="*"/> + </ownedAttribute> + </nestedClassifier> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_0LrQUYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_0LrQUoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="__Di3N7eLEeS_zZpc9I-Bsg"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__DjeQLeLEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <standard:Create xmi:id="_0nS1uYKGEeSFEt9m3bH63A" base_BehavioralFeature="_0nS1qYKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_0nS1uoKGEeSFEt9m3bH63A" base_Comment="_0nS1soKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Destroy xmi:id="_0nS1u4KGEeSFEt9m3bH63A" base_BehavioralFeature="_0nS1roKGEeSFEt9m3bH63A"/> + <standard:Destroy xmi:id="_0nS1vIKGEeSFEt9m3bH63A" base_BehavioralFeature="_0nS1bIKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_0nS1vYKGEeSFEt9m3bH63A" base_Comment="_0nS1t4KGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_0nS1voKGEeSFEt9m3bH63A" base_Comment="_0nS1tYKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_0nS1v4KGEeSFEt9m3bH63A" base_Comment="_0nS1sYKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_0nS1wIKGEeSFEt9m3bH63A" base_Comment="_0nS1s4KGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_0nS1wYKGEeSFEt9m3bH63A" base_Comment="_0nS1uIKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_0nS1woKGEeSFEt9m3bH63A" base_Comment="_0nS1tIKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Create xmi:id="_0nS1w4KGEeSFEt9m3bH63A" base_BehavioralFeature="_0nS1Z4KGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_0nS1xIKGEeSFEt9m3bH63A" base_Comment="_0nS1toKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_HelloWorld.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_HelloWorld.uml index b0a73ff3943..a59d75e3056 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_HelloWorld.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_HelloWorld.uml @@ -1,24 +1,24 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_7-sgsIKGEeSFEt9m3bH63A" name="Model">
- <packagedElement xmi:type="uml:Activity" xmi:id="_8CIPMIKGEeSFEt9m3bH63A" name="Interactive_HelloWorld" visibility="protected">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8CIPMYKGEeSFEt9m3bH63A" annotatedElement="_8CIPMIKGEeSFEt9m3bH63A">
- <body>activity Interactive_HelloWorld() { WriteLine("Hello World!");
-}</body>
- </ownedComment>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7-sgsYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7-sgsoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_fayEQLeMEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_fazSYLeMEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_8CIPMoKGEeSFEt9m3bH63A" base_Comment="_8CIPMYKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_7-sgsIKGEeSFEt9m3bH63A" name="Model"> + <packagedElement xmi:type="uml:Activity" xmi:id="_8CIPMIKGEeSFEt9m3bH63A" name="Interactive_HelloWorld" visibility="protected"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8CIPMYKGEeSFEt9m3bH63A" annotatedElement="_8CIPMIKGEeSFEt9m3bH63A"> + <body>activity Interactive_HelloWorld() { WriteLine("Hello World!"); +}</body> + </ownedComment> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7-sgsYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7-sgsoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_fayEQLeMEeS_zZpc9I-Bsg"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_fazSYLeMEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <ActionLanguage:TextualRepresentation xmi:id="_8CIPMoKGEeSFEt9m3bH63A" base_Comment="_8CIPMYKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_InputOutput.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_InputOutput.uml index 0d2dd856a45..68269220dde 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_InputOutput.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_InputOutput.uml @@ -1,140 +1,140 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_8CxvcIKGEeSFEt9m3bH63A" name="Model">
- <packageImport xmi:type="uml:PackageImport" xmi:id="_1Sjo0LeMEeS_zZpc9I-Bsg">
- <importedPackage xmi:type="uml:Model" href="pathmap://PAPYRUS_ALF_LIBRARY/Alf.library.uml#Alf"/>
- </packageImport>
- <packageImport xmi:type="uml:PackageImport" xmi:id="_A6bMYLekEeSkqaPlhCzRxg">
- <importedPackage xmi:type="uml:Model" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#_0"/>
- </packageImport>
- <packagedElement xmi:type="uml:Class" xmi:id="_8WWLsIKGEeSFEt9m3bH63A" name="Interactive_InputOutput" classifierBehavior="_8WWL1YKGEeSFEt9m3bH63A" isActive="true">
- <elementImport xmi:type="uml:ElementImport" xmi:id="_8WWL1oKGEeSFEt9m3bH63A" alias="" visibility="private">
- <importedElement xmi:type="uml:Package" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#BasicInputOutput"/>
- </elementImport>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_8WWLxoKGEeSFEt9m3bH63A" name="Interactive_InputOutput$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLx4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLyIKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8WWLyYKGEeSFEt9m3bH63A" name="Interactive_InputOutput$initialization$1" visibility="protected" specification="_8WWLyoKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL2oKGEeSFEt9m3bH63A" annotatedElement="_8WWLyYKGEeSFEt9m3bH63A">
- <body>activity 'Interactive_InputOutput$initialization$1'(){
- if (this.'Interactive_InputOutput$initializationFlag$1' == null) {
- this.'Interactive_InputOutput$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8WWLy4KGEeSFEt9m3bH63A" name="Interactive_InputOutput$method$1" specification="_8WWLz4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL2YKGEeSFEt9m3bH63A" annotatedElement="_8WWLy4KGEeSFEt9m3bH63A">
- <body>activity 'Interactive_InputOutput$method$1'(): Interactive_InputOutput {
- this.'Interactive_InputOutput$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLzIKGEeSFEt9m3bH63A" type="_8WWLsIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLzYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLzoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8WWL04KGEeSFEt9m3bH63A" name="destroy$method$1" specification="_8WWL1IKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL3IKGEeSFEt9m3bH63A" annotatedElement="_8WWL04KGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8WWL1YKGEeSFEt9m3bH63A" name="Interactive_InputOutput$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL24KGEeSFEt9m3bH63A" annotatedElement="_8WWL1YKGEeSFEt9m3bH63A">
- <body>activity 'Interactive_InputOutput$behavior$1'() { WriteLine("Enter two characters.");
-A(char1, char2, s1, s2);
-Output().write("char1=");
-Output().write(char1);
-Output().write(" status1=" + s1.description);
-Output().writeNewLine();
-Output().write("char2=");
-Output().write(char2);
-Output().write(" status2=" + s2.description);
-Output().writeNewLine();
-}</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8WWLyoKGEeSFEt9m3bH63A" name="Interactive_InputOutput$initialization$1" visibility="protected" method="_8WWLyYKGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8WWLz4KGEeSFEt9m3bH63A" name="Interactive_InputOutput" method="_8WWLy4KGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWL0IKGEeSFEt9m3bH63A" type="_8WWLsIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWL0YKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWL0oKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8WWL1IKGEeSFEt9m3bH63A" name="destroy" method="_8WWL04KGEeSFEt9m3bH63A"/>
- <nestedClassifier xmi:type="uml:Activity" xmi:id="_8WWLsYKGEeSFEt9m3bH63A" name="Input" visibility="package">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL3YKGEeSFEt9m3bH63A" annotatedElement="_8WWLsYKGEeSFEt9m3bH63A">
- <body>activity Input(): StandardInputChannel { return StandardInputChannel.allInstances ()[1];
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLsoKGEeSFEt9m3bH63A" direction="return">
- <name xsi:nil="true"/>
- <type xmi:type="uml:Class" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#BasicInputOutput-StandardInputChannel"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLs4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLtIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:Activity" xmi:id="_8WWLtYKGEeSFEt9m3bH63A" name="Output" visibility="package">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL2IKGEeSFEt9m3bH63A" annotatedElement="_8WWLtYKGEeSFEt9m3bH63A">
- <body>activity Output(): StandardOutputChannel { return StandardOutputChannel.allInstances ()[1];
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLtoKGEeSFEt9m3bH63A" direction="return">
- <name xsi:nil="true"/>
- <type xmi:type="uml:Class" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#BasicInputOutput-StandardOutputChannel"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLt4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLuIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:Activity" xmi:id="_8WWLuYKGEeSFEt9m3bH63A" name="A" visibility="package">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL14KGEeSFEt9m3bH63A" annotatedElement="_8WWLuYKGEeSFEt9m3bH63A">
- <body>activity A(out x: any[0..1], out y: any[0..1], out status1: Status[0..1], out status2: Status[0..1]) { Input().read(x, status1);
-Input().read(y, status2);
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLuoKGEeSFEt9m3bH63A" name="x" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLu4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLvIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLvYKGEeSFEt9m3bH63A" name="y" direction="out">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLvoKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLv4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLwIKGEeSFEt9m3bH63A" name="status1" direction="out">
- <type xmi:type="uml:DataType" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#Common-Status"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLwYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLwoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLw4KGEeSFEt9m3bH63A" name="status2" direction="out">
- <type xmi:type="uml:DataType" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#Common-Status"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLxIKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLxYKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </nestedClassifier>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_8CxvcYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_8CxvcoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_jvsPBbeMEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_jvs2ELeMEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_8WWL3oKGEeSFEt9m3bH63A" base_Comment="_8WWL24KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8WWL34KGEeSFEt9m3bH63A" base_Comment="_8WWL2YKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Destroy xmi:id="_8WWL4IKGEeSFEt9m3bH63A" base_BehavioralFeature="_8WWL1IKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8WWL4YKGEeSFEt9m3bH63A" base_Comment="_8WWL2IKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8WWL4oKGEeSFEt9m3bH63A" base_Comment="_8WWL14KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8WWL44KGEeSFEt9m3bH63A" base_Comment="_8WWL2oKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_8WWL5IKGEeSFEt9m3bH63A" base_BehavioralFeature="_8WWLz4KGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8WWL5YKGEeSFEt9m3bH63A" base_Comment="_8WWL3YKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8WWL5oKGEeSFEt9m3bH63A" base_Comment="_8WWL3IKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_8CxvcIKGEeSFEt9m3bH63A" name="Model"> + <packageImport xmi:type="uml:PackageImport" xmi:id="_1Sjo0LeMEeS_zZpc9I-Bsg"> + <importedPackage xmi:type="uml:Model" href="pathmap://PAPYRUS_ALF_LIBRARY/Alf.library.uml#Alf"/> + </packageImport> + <packageImport xmi:type="uml:PackageImport" xmi:id="_A6bMYLekEeSkqaPlhCzRxg"> + <importedPackage xmi:type="uml:Model" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#_0"/> + </packageImport> + <packagedElement xmi:type="uml:Class" xmi:id="_8WWLsIKGEeSFEt9m3bH63A" name="Interactive_InputOutput" classifierBehavior="_8WWL1YKGEeSFEt9m3bH63A" isActive="true"> + <elementImport xmi:type="uml:ElementImport" xmi:id="_8WWL1oKGEeSFEt9m3bH63A" alias="" visibility="private"> + <importedElement xmi:type="uml:Package" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#BasicInputOutput"/> + </elementImport> + <ownedAttribute xmi:type="uml:Property" xmi:id="_8WWLxoKGEeSFEt9m3bH63A" name="Interactive_InputOutput$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLx4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLyIKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8WWLyYKGEeSFEt9m3bH63A" name="Interactive_InputOutput$initialization$1" visibility="protected" specification="_8WWLyoKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL2oKGEeSFEt9m3bH63A" annotatedElement="_8WWLyYKGEeSFEt9m3bH63A"> + <body>activity 'Interactive_InputOutput$initialization$1'(){ + if (this.'Interactive_InputOutput$initializationFlag$1' == null) { + this.'Interactive_InputOutput$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8WWLy4KGEeSFEt9m3bH63A" name="Interactive_InputOutput$method$1" specification="_8WWLz4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL2YKGEeSFEt9m3bH63A" annotatedElement="_8WWLy4KGEeSFEt9m3bH63A"> + <body>activity 'Interactive_InputOutput$method$1'(): Interactive_InputOutput { + this.'Interactive_InputOutput$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLzIKGEeSFEt9m3bH63A" type="_8WWLsIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLzYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLzoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8WWL04KGEeSFEt9m3bH63A" name="destroy$method$1" specification="_8WWL1IKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL3IKGEeSFEt9m3bH63A" annotatedElement="_8WWL04KGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8WWL1YKGEeSFEt9m3bH63A" name="Interactive_InputOutput$behavior$1" visibility="private"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL24KGEeSFEt9m3bH63A" annotatedElement="_8WWL1YKGEeSFEt9m3bH63A"> + <body>activity 'Interactive_InputOutput$behavior$1'() { WriteLine("Enter two characters."); +A(char1, char2, s1, s2); +Output().write("char1="); +Output().write(char1); +Output().write(" status1=" + s1.description); +Output().writeNewLine(); +Output().write("char2="); +Output().write(char2); +Output().write(" status2=" + s2.description); +Output().writeNewLine(); +}</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8WWLyoKGEeSFEt9m3bH63A" name="Interactive_InputOutput$initialization$1" visibility="protected" method="_8WWLyYKGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8WWLz4KGEeSFEt9m3bH63A" name="Interactive_InputOutput" method="_8WWLy4KGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWL0IKGEeSFEt9m3bH63A" type="_8WWLsIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWL0YKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWL0oKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8WWL1IKGEeSFEt9m3bH63A" name="destroy" method="_8WWL04KGEeSFEt9m3bH63A"/> + <nestedClassifier xmi:type="uml:Activity" xmi:id="_8WWLsYKGEeSFEt9m3bH63A" name="Input" visibility="package"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL3YKGEeSFEt9m3bH63A" annotatedElement="_8WWLsYKGEeSFEt9m3bH63A"> + <body>activity Input(): StandardInputChannel { return StandardInputChannel.allInstances ()[1]; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLsoKGEeSFEt9m3bH63A" direction="return"> + <name xsi:nil="true"/> + <type xmi:type="uml:Class" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#BasicInputOutput-StandardInputChannel"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLs4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLtIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </nestedClassifier> + <nestedClassifier xmi:type="uml:Activity" xmi:id="_8WWLtYKGEeSFEt9m3bH63A" name="Output" visibility="package"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL2IKGEeSFEt9m3bH63A" annotatedElement="_8WWLtYKGEeSFEt9m3bH63A"> + <body>activity Output(): StandardOutputChannel { return StandardOutputChannel.allInstances ()[1]; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLtoKGEeSFEt9m3bH63A" direction="return"> + <name xsi:nil="true"/> + <type xmi:type="uml:Class" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#BasicInputOutput-StandardOutputChannel"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLt4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLuIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </nestedClassifier> + <nestedClassifier xmi:type="uml:Activity" xmi:id="_8WWLuYKGEeSFEt9m3bH63A" name="A" visibility="package"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8WWL14KGEeSFEt9m3bH63A" annotatedElement="_8WWLuYKGEeSFEt9m3bH63A"> + <body>activity A(out x: any[0..1], out y: any[0..1], out status1: Status[0..1], out status2: Status[0..1]) { Input().read(x, status1); +Input().read(y, status2); +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLuoKGEeSFEt9m3bH63A" name="x" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLu4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLvIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLvYKGEeSFEt9m3bH63A" name="y" direction="out"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLvoKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLv4KGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLwIKGEeSFEt9m3bH63A" name="status1" direction="out"> + <type xmi:type="uml:DataType" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#Common-Status"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLwYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLwoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8WWLw4KGEeSFEt9m3bH63A" name="status2" direction="out"> + <type xmi:type="uml:DataType" href="pathmap://PAPYRUS_fUML_LIBRARY/fUML_Library.uml#Common-Status"/> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8WWLxIKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8WWLxYKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </nestedClassifier> + </packagedElement> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_8CxvcYKGEeSFEt9m3bH63A"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_8CxvcoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/> + </profileApplication> + <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_jvsPBbeMEeS_zZpc9I-Bsg"> + <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_jvs2ELeMEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML"> + <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/> + </eAnnotations> + <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/> + </profileApplication> + </uml:Model> + <ActionLanguage:TextualRepresentation xmi:id="_8WWL3oKGEeSFEt9m3bH63A" base_Comment="_8WWL24KGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_8WWL34KGEeSFEt9m3bH63A" base_Comment="_8WWL2YKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Destroy xmi:id="_8WWL4IKGEeSFEt9m3bH63A" base_BehavioralFeature="_8WWL1IKGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_8WWL4YKGEeSFEt9m3bH63A" base_Comment="_8WWL2IKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_8WWL4oKGEeSFEt9m3bH63A" base_Comment="_8WWL14KGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_8WWL44KGEeSFEt9m3bH63A" base_Comment="_8WWL2oKGEeSFEt9m3bH63A" language="Alf"/> + <standard:Create xmi:id="_8WWL5IKGEeSFEt9m3bH63A" base_BehavioralFeature="_8WWLz4KGEeSFEt9m3bH63A"/> + <ActionLanguage:TextualRepresentation xmi:id="_8WWL5YKGEeSFEt9m3bH63A" base_Comment="_8WWL3YKGEeSFEt9m3bH63A" language="Alf"/> + <ActionLanguage:TextualRepresentation xmi:id="_8WWL5oKGEeSFEt9m3bH63A" base_Comment="_8WWL3IKGEeSFEt9m3bH63A" language="Alf"/> +</xmi:XMI> diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_PingPong.uml b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_PingPong.uml index 678d77a0b85..81989bc8d48 100644 --- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_PingPong.uml +++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/UML/Interactive_PingPong.uml @@ -1,215 +1,215 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ">
- <uml:Model xmi:id="_8XXfYIKGEeSFEt9m3bH63A" name="Model">
- <packagedElement xmi:type="uml:Class" xmi:id="_8oAjcIKGEeSFEt9m3bH63A" name="Interactive_PingPong" classifierBehavior="_8oAjs4KGEeSFEt9m3bH63A" isActive="true">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAjpIKGEeSFEt9m3bH63A" name="Interactive_PingPong$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjpYKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjpoKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjp4KGEeSFEt9m3bH63A" name="Interactive_PingPong$initialization$1" visibility="protected" specification="_8oAjqIKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjv4KGEeSFEt9m3bH63A" annotatedElement="_8oAjp4KGEeSFEt9m3bH63A">
- <body>activity 'Interactive_PingPong$initialization$1'(){
- if (this.'Interactive_PingPong$initializationFlag$1' == null) {
- this.'Interactive_PingPong$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjqYKGEeSFEt9m3bH63A" name="Interactive_PingPong$method$1" specification="_8oAjrYKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAju4KGEeSFEt9m3bH63A" annotatedElement="_8oAjqYKGEeSFEt9m3bH63A">
- <body>activity 'Interactive_PingPong$method$1'(): Interactive_PingPong {
- this.'Interactive_PingPong$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjqoKGEeSFEt9m3bH63A" type="_8oAjcIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjq4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjrIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjsYKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_8oAjsoKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjuYKGEeSFEt9m3bH63A" annotatedElement="_8oAjsYKGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjs4KGEeSFEt9m3bH63A" name="Interactive_PingPong$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjuoKGEeSFEt9m3bH63A" annotatedElement="_8oAjs4KGEeSFEt9m3bH63A">
- <body>activity 'Interactive_PingPong$behavior$1'() { a = new A();
-b = new B();
-Write("Enter n: ");
-n = IntegerFunctions::ToInteger(ReadLine(error));
-if (n->notEmpty()) { a.Start(b);
-b.Start(a, n);
-} }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjqIKGEeSFEt9m3bH63A" name="Interactive_PingPong$initialization$1" visibility="protected" method="_8oAjp4KGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjrYKGEeSFEt9m3bH63A" name="Interactive_PingPong" method="_8oAjqYKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjroKGEeSFEt9m3bH63A" type="_8oAjcIKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjr4KGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjsIKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjsoKGEeSFEt9m3bH63A" name="destroy" method="_8oAjsYKGEeSFEt9m3bH63A"/>
- <nestedClassifier xmi:type="uml:Class" xmi:id="_8oAjcYKGEeSFEt9m3bH63A" name="A" visibility="package" classifierBehavior="_8oAjo4KGEeSFEt9m3bH63A" isActive="true">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAjkoKGEeSFEt9m3bH63A" name="A$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjk4KGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjlIKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjlYKGEeSFEt9m3bH63A" name="A$initialization$1" visibility="protected" specification="_8oAjloKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjt4KGEeSFEt9m3bH63A" annotatedElement="_8oAjlYKGEeSFEt9m3bH63A">
- <body>activity 'A$initialization$1'(){
- if (this.'A$initializationFlag$1' == null) {
- this.'A$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjl4KGEeSFEt9m3bH63A" name="A$method$1" specification="_8oAjm4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjvYKGEeSFEt9m3bH63A" annotatedElement="_8oAjl4KGEeSFEt9m3bH63A">
- <body>activity 'A$method$1'(): A {
- this.'A$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjmIKGEeSFEt9m3bH63A" type="_8oAjcYKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjmYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjmoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjn4KGEeSFEt9m3bH63A" name="destroy$method$1" specification="_8oAjoIKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjvoKGEeSFEt9m3bH63A" annotatedElement="_8oAjn4KGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjo4KGEeSFEt9m3bH63A" name="A$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjuIKGEeSFEt9m3bH63A" annotatedElement="_8oAjo4KGEeSFEt9m3bH63A">
- <body>activity 'A$behavior$1'() { accept (start: Start);
-WriteLine("Starting A");
-b = start.b;
-while (true) { accept (Ping);
-WriteLine("Ping!");
-b.Pong();
-} }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjloKGEeSFEt9m3bH63A" name="A$initialization$1" visibility="protected" method="_8oAjlYKGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjm4KGEeSFEt9m3bH63A" name="A" method="_8oAjl4KGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjnIKGEeSFEt9m3bH63A" type="_8oAjcYKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjnYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjnoKGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjoIKGEeSFEt9m3bH63A" name="destroy" method="_8oAjn4KGEeSFEt9m3bH63A"/>
- <nestedClassifier xmi:type="uml:Signal" xmi:id="_8oAjcoKGEeSFEt9m3bH63A" name="Start" visibility="package">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAjc4KGEeSFEt9m3bH63A" name="b" visibility="public" type="_8oAjdoKGEeSFEt9m3bH63A">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjdIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjdYKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:Signal" xmi:id="_8oAjkYKGEeSFEt9m3bH63A" name="Ping" visibility="package"/>
- <ownedReception xmi:type="uml:Reception" xmi:id="_8oAjoYKGEeSFEt9m3bH63A" name="Start" visibility="package" signal="_8oAjcoKGEeSFEt9m3bH63A"/>
- <ownedReception xmi:type="uml:Reception" xmi:id="_8oAjooKGEeSFEt9m3bH63A" name="Ping" visibility="package" signal="_8oAjkYKGEeSFEt9m3bH63A"/>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:Class" xmi:id="_8oAjdoKGEeSFEt9m3bH63A" name="B" visibility="package" classifierBehavior="_8oAjkIKGEeSFEt9m3bH63A" isActive="true">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAjf4KGEeSFEt9m3bH63A" name="B$initializationFlag$1" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjgIKGEeSFEt9m3bH63A"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjgYKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjgoKGEeSFEt9m3bH63A" name="B$initialization$1" visibility="protected" specification="_8oAjg4KGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjtYKGEeSFEt9m3bH63A" annotatedElement="_8oAjgoKGEeSFEt9m3bH63A">
- <body>activity 'B$initialization$1'(){
- if (this.'B$initializationFlag$1' == null) {
- this.'B$initializationFlag$1' = true;
- }
-}
-</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjhIKGEeSFEt9m3bH63A" name="B$method$1" specification="_8oAjiIKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjtoKGEeSFEt9m3bH63A" annotatedElement="_8oAjhIKGEeSFEt9m3bH63A">
- <body>activity 'B$method$1'(): B {
- this.'B$initialization$1'();
- return this;
-}</body>
- </ownedComment>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjhYKGEeSFEt9m3bH63A" type="_8oAjdoKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjhoKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjh4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjjIKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_8oAjjYKGEeSFEt9m3bH63A">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjvIKGEeSFEt9m3bH63A" annotatedElement="_8oAjjIKGEeSFEt9m3bH63A">
- <body>activity 'destroy$method$1'() { }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjkIKGEeSFEt9m3bH63A" name="B$behavior$1" visibility="private">
- <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjtIKGEeSFEt9m3bH63A" annotatedElement="_8oAjkIKGEeSFEt9m3bH63A">
- <body>activity 'B$behavior$1'() { accept (start: Start);
-WriteLine("Starting B");
-a = start.a;
-for (i in 1..start.n) { WriteLine("i = " + IntegerFunctions::ToString(i));
-a.Ping();
-accept (Pong);
-WriteLine("Pong!");
-} }</body>
- </ownedComment>
- </ownedBehavior>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjg4KGEeSFEt9m3bH63A" name="B$initialization$1" visibility="protected" method="_8oAjgoKGEeSFEt9m3bH63A"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjiIKGEeSFEt9m3bH63A" name="B" method="_8oAjhIKGEeSFEt9m3bH63A">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjiYKGEeSFEt9m3bH63A" type="_8oAjdoKGEeSFEt9m3bH63A" direction="return">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjioKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAji4KGEeSFEt9m3bH63A" value="1"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjjYKGEeSFEt9m3bH63A" name="destroy" method="_8oAjjIKGEeSFEt9m3bH63A"/>
- <nestedClassifier xmi:type="uml:Signal" xmi:id="_8oAjd4KGEeSFEt9m3bH63A" name="Start" visibility="package">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAjeIKGEeSFEt9m3bH63A" name="a" visibility="public" type="_8oAjcYKGEeSFEt9m3bH63A">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjeYKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjeoKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAje4KGEeSFEt9m3bH63A" name="n" visibility="public">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjfIKGEeSFEt9m3bH63A" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjfYKGEeSFEt9m3bH63A" value="1"/>
- </ownedAttribute>
- </nestedClassifier>
- <nestedClassifier xmi:type="uml:Signal" xmi:id="_8oAjfoKGEeSFEt9m3bH63A" name="Pong" visibility="package"/>
- <ownedReception xmi:type="uml:Reception" xmi:id="_8oAjjoKGEeSFEt9m3bH63A" name="Start" visibility="package" signal="_8oAjd4KGEeSFEt9m3bH63A"/>
- <ownedReception xmi:type="uml:Reception" xmi:id="_8oAjj4KGEeSFEt9m3bH63A" name="Pong" visibility="package" signal="_8oAjfoKGEeSFEt9m3bH63A"/>
- </nestedClassifier>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_8XXfYYKGEeSFEt9m3bH63A">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_8XXfYoKGEeSFEt9m3bH63A" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_FGSASbeNEeS_zZpc9I-Bsg">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_FGSnULeNEeS_zZpc9I-Bsg" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
- </uml:Model>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjwIKGEeSFEt9m3bH63A" base_Comment="_8oAjv4KGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_8oAjwYKGEeSFEt9m3bH63A" base_BehavioralFeature="_8oAjm4KGEeSFEt9m3bH63A"/>
- <standard:Create xmi:id="_8oAjwoKGEeSFEt9m3bH63A" base_BehavioralFeature="_8oAjrYKGEeSFEt9m3bH63A"/>
- <standard:Destroy xmi:id="_8oAjw4KGEeSFEt9m3bH63A" base_BehavioralFeature="_8oAjjYKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjxIKGEeSFEt9m3bH63A" base_Comment="_8oAju4KGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjxYKGEeSFEt9m3bH63A" base_Comment="_8oAjuIKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjxoKGEeSFEt9m3bH63A" base_Comment="_8oAjtoKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjx4KGEeSFEt9m3bH63A" base_Comment="_8oAjuYKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Create xmi:id="_8oAjyIKGEeSFEt9m3bH63A" base_BehavioralFeature="_8oAjiIKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjyYKGEeSFEt9m3bH63A" base_Comment="_8oAjtIKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjyoKGEeSFEt9m3bH63A" base_Comment="_8oAjt4KGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Destroy xmi:id="_8oAjy4KGEeSFEt9m3bH63A" base_BehavioralFeature="_8oAjoIKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjzIKGEeSFEt9m3bH63A" base_Comment="_8oAjvIKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjzYKGEeSFEt9m3bH63A" base_Comment="_8oAjvoKGEeSFEt9m3bH63A" language="Alf"/>
- <standard:Destroy xmi:id="_8oAjzoKGEeSFEt9m3bH63A" base_BehavioralFeature="_8oAjsoKGEeSFEt9m3bH63A"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAjz4KGEeSFEt9m3bH63A" base_Comment="_8oAjvYKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAj0IKGEeSFEt9m3bH63A" base_Comment="_8oAjtYKGEeSFEt9m3bH63A" language="Alf"/>
- <ActionLanguage:TextualRepresentation xmi:id="_8oAj0YKGEeSFEt9m3bH63A" base_Comment="_8oAjuoKGEeSFEt9m3bH63A" language="Alf"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?> +<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ActionLanguage="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.omg.org/spec/ALF/20120827/ActionLanguage-Profile pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"> + <uml:Model xmi:id="_8XXfYIKGEeSFEt9m3bH63A" name="Model"> + <packagedElement xmi:type="uml:Class" xmi:id="_8oAjcIKGEeSFEt9m3bH63A" name="Interactive_PingPong" classifierBehavior="_8oAjs4KGEeSFEt9m3bH63A" isActive="true"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAjpIKGEeSFEt9m3bH63A" name="Interactive_PingPong$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjpYKGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjpoKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjp4KGEeSFEt9m3bH63A" name="Interactive_PingPong$initialization$1" visibility="protected" specification="_8oAjqIKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjv4KGEeSFEt9m3bH63A" annotatedElement="_8oAjp4KGEeSFEt9m3bH63A"> + <body>activity 'Interactive_PingPong$initialization$1'(){ + if (this.'Interactive_PingPong$initializationFlag$1' == null) { + this.'Interactive_PingPong$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjqYKGEeSFEt9m3bH63A" name="Interactive_PingPong$method$1" specification="_8oAjrYKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8oAju4KGEeSFEt9m3bH63A" annotatedElement="_8oAjqYKGEeSFEt9m3bH63A"> + <body>activity 'Interactive_PingPong$method$1'(): Interactive_PingPong { + this.'Interactive_PingPong$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjqoKGEeSFEt9m3bH63A" type="_8oAjcIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjq4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjrIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjsYKGEeSFEt9m3bH63A" name="destroy$method$1" specification="_8oAjsoKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjuYKGEeSFEt9m3bH63A" annotatedElement="_8oAjsYKGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjs4KGEeSFEt9m3bH63A" name="Interactive_PingPong$behavior$1" visibility="private"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjuoKGEeSFEt9m3bH63A" annotatedElement="_8oAjs4KGEeSFEt9m3bH63A"> + <body>activity 'Interactive_PingPong$behavior$1'() { a = new A(); +b = new B(); +Write("Enter n: "); +n = IntegerFunctions::ToInteger(ReadLine(error)); +if (n->notEmpty()) { a.Start(b); +b.Start(a, n); +} }</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjqIKGEeSFEt9m3bH63A" name="Interactive_PingPong$initialization$1" visibility="protected" method="_8oAjp4KGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjrYKGEeSFEt9m3bH63A" name="Interactive_PingPong" method="_8oAjqYKGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjroKGEeSFEt9m3bH63A" type="_8oAjcIKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjr4KGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjsIKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjsoKGEeSFEt9m3bH63A" name="destroy" method="_8oAjsYKGEeSFEt9m3bH63A"/> + <nestedClassifier xmi:type="uml:Class" xmi:id="_8oAjcYKGEeSFEt9m3bH63A" name="A" visibility="package" classifierBehavior="_8oAjo4KGEeSFEt9m3bH63A" isActive="true"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAjkoKGEeSFEt9m3bH63A" name="A$initializationFlag$1" visibility="protected"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjk4KGEeSFEt9m3bH63A"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjlIKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjlYKGEeSFEt9m3bH63A" name="A$initialization$1" visibility="protected" specification="_8oAjloKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjt4KGEeSFEt9m3bH63A" annotatedElement="_8oAjlYKGEeSFEt9m3bH63A"> + <body>activity 'A$initialization$1'(){ + if (this.'A$initializationFlag$1' == null) { + this.'A$initializationFlag$1' = true; + } +} +</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjl4KGEeSFEt9m3bH63A" name="A$method$1" specification="_8oAjm4KGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjvYKGEeSFEt9m3bH63A" annotatedElement="_8oAjl4KGEeSFEt9m3bH63A"> + <body>activity 'A$method$1'(): A { + this.'A$initialization$1'(); + return this; +}</body> + </ownedComment> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjmIKGEeSFEt9m3bH63A" type="_8oAjcYKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjmYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjmoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjn4KGEeSFEt9m3bH63A" name="destroy$method$1" specification="_8oAjoIKGEeSFEt9m3bH63A"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjvoKGEeSFEt9m3bH63A" annotatedElement="_8oAjn4KGEeSFEt9m3bH63A"> + <body>activity 'destroy$method$1'() { }</body> + </ownedComment> + </ownedBehavior> + <ownedBehavior xmi:type="uml:Activity" xmi:id="_8oAjo4KGEeSFEt9m3bH63A" name="A$behavior$1" visibility="private"> + <ownedComment xmi:type="uml:Comment" xmi:id="_8oAjuIKGEeSFEt9m3bH63A" annotatedElement="_8oAjo4KGEeSFEt9m3bH63A"> + <body>activity 'A$behavior$1'() { accept (start: Start); +WriteLine("Starting A"); +b = start.b; +while (true) { accept (Ping); +WriteLine("Ping!"); +b.Pong(); +} }</body> + </ownedComment> + </ownedBehavior> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjloKGEeSFEt9m3bH63A" name="A$initialization$1" visibility="protected" method="_8oAjlYKGEeSFEt9m3bH63A"/> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjm4KGEeSFEt9m3bH63A" name="A" method="_8oAjl4KGEeSFEt9m3bH63A"> + <ownedParameter xmi:type="uml:Parameter" xmi:id="_8oAjnIKGEeSFEt9m3bH63A" type="_8oAjcYKGEeSFEt9m3bH63A" direction="return"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjnYKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjnoKGEeSFEt9m3bH63A" value="1"/> + </ownedParameter> + </ownedOperation> + <ownedOperation xmi:type="uml:Operation" xmi:id="_8oAjoIKGEeSFEt9m3bH63A" name="destroy" method="_8oAjn4KGEeSFEt9m3bH63A"/> + <nestedClassifier xmi:type="uml:Signal" xmi:id="_8oAjcoKGEeSFEt9m3bH63A" name="Start" visibility="package"> + <ownedAttribute xmi:type="uml:Property" xmi:id="_8oAjc4KGEeSFEt9m3bH63A" name="b" visibility="public" type="_8oAjdoKGEeSFEt9m3bH63A"> + <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_8oAjdIKGEeSFEt9m3bH63A" value="1"/> + <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_8oAjdYKGEeSFEt9m3bH63A" value="1"/> + </ownedAttribute> + </nestedClassifier> + <nestedClassifier xmi:type="uml:Signal" xmi:id="_8oAjkYKGEeSFEt9m3bH63A" name="Ping" visibility="package"/> + <ownedReception xmi:type="uml:Reception" xmi:id="_8oAjoYKGEeSFEt9m3bH63A" name="Start" visibility="package" signal="_8oAjcoKGEeSFEt9m3bH63A"/> + <ownedReception xmi:type="uml:Reception" xmi:id="_8oAjooKGEeSFEt9m3bH63A" name="Ping" visibility="package" signal="_8oAjkYKGEeSFEt9m3bH63A"/> + </nestedClassifier> + & |