Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Maggi2017-03-03 12:33:06 +0000
committerBenoit Maggi2017-04-10 13:55:32 +0000
commit41e1c785d4ef6a5f5f9e827d492e86a54af00ed9 (patch)
treed7c1b6a33d8d8827494807e08170de5ff511e551 /extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model
parenta1caa9538848d2fa00418624a47482c2eaf6a671 (diff)
downloadorg.eclipse.papyrus-41e1c785d4ef6a5f5f9e827d492e86a54af00ed9.tar.gz
org.eclipse.papyrus-41e1c785d4ef6a5f5f9e827d492e86a54af00ed9.tar.xz
org.eclipse.papyrus-41e1c785d4ef6a5f5f9e827d492e86a54af00ed9.zip
Bug 512989 - [DSML Validation] The dsml validation extra should be moved
to incubation repository - remove all the code related to dsml.validation (except the documentation) - the code is now available in org.eclipse.papyrus.incubation - remove unused dependency in rsa migration and soaml Change-Id: Id87206bd516a2cc064c05b036d56714b5e369b6c Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>
Diffstat (limited to 'extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model')
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.classpath7
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.project28
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/META-INF/MANIFEST.MF22
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/about.html28
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/build.properties7
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/plugin.properties12
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/pom.xml14
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/Activator.java71
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/CategoryImpl.java105
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintCategoryImpl.java72
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintManagerImpl.java223
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintProviderImpl.java78
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ValidationRuleImpl.java231
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/WrongStereotypeException.java33
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Category.java64
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintProvider.java55
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintsCategory.java44
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintsManager.java55
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IValidationRule.java108
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Mode.java26
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Severity.java24
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/profilenames/Utils.java255
24 files changed, 0 insertions, 1921 deletions
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.classpath b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.classpath
deleted file mode 100644
index 2d1a4302f04..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.project b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.project
deleted file mode 100644
index 6c5407a32ac..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.dsml.validation.model</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/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.settings/org.eclipse.jdt.core.prefs b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 4759947300a..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,291 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_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/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.settings/org.eclipse.jdt.ui.prefs b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 954281dbc31..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,68 +0,0 @@
-cleanup.add_default_serial_version_id=true
-cleanup.add_generated_serial_version_id=false
-cleanup.add_missing_annotations=true
-cleanup.add_missing_deprecated_annotations=true
-cleanup.add_missing_methods=false
-cleanup.add_missing_nls_tags=false
-cleanup.add_missing_override_annotations=true
-cleanup.add_missing_override_annotations_interface_methods=true
-cleanup.add_serial_version_id=false
-cleanup.always_use_blocks=true
-cleanup.always_use_parentheses_in_expressions=false
-cleanup.always_use_this_for_non_static_field_access=false
-cleanup.always_use_this_for_non_static_method_access=false
-cleanup.convert_functional_interfaces=false
-cleanup.convert_to_enhanced_for_loop=false
-cleanup.correct_indentation=false
-cleanup.format_source_code=false
-cleanup.format_source_code_changes_only=false
-cleanup.insert_inferred_type_arguments=false
-cleanup.make_local_variable_final=true
-cleanup.make_parameters_final=false
-cleanup.make_private_fields_final=true
-cleanup.make_type_abstract_if_missing_method=false
-cleanup.make_variable_declarations_final=false
-cleanup.never_use_blocks=false
-cleanup.never_use_parentheses_in_expressions=true
-cleanup.organize_imports=false
-cleanup.qualify_static_field_accesses_with_declaring_class=false
-cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
-cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
-cleanup.qualify_static_member_accesses_with_declaring_class=true
-cleanup.qualify_static_method_accesses_with_declaring_class=false
-cleanup.remove_private_constructors=true
-cleanup.remove_redundant_type_arguments=true
-cleanup.remove_trailing_whitespaces=true
-cleanup.remove_trailing_whitespaces_all=true
-cleanup.remove_trailing_whitespaces_ignore_empty=false
-cleanup.remove_unnecessary_casts=true
-cleanup.remove_unnecessary_nls_tags=true
-cleanup.remove_unused_imports=true
-cleanup.remove_unused_local_variables=false
-cleanup.remove_unused_private_fields=true
-cleanup.remove_unused_private_members=false
-cleanup.remove_unused_private_methods=true
-cleanup.remove_unused_private_types=true
-cleanup.sort_members=false
-cleanup.sort_members_all=false
-cleanup.use_anonymous_class_creation=false
-cleanup.use_blocks=true
-cleanup.use_blocks_only_for_return_and_throw=false
-cleanup.use_lambda=true
-cleanup.use_parentheses_in_expressions=false
-cleanup.use_this_for_non_static_field_access=false
-cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-cleanup.use_this_for_non_static_method_access=false
-cleanup.use_this_for_non_static_method_access_only_if_necessary=true
-cleanup.use_type_arguments=false
-cleanup_profile=_Papyrus
-cleanup_settings_version=2
-eclipse.preferences.version=1
-formatter_profile=_Papyrus
-formatter_settings_version=12
-org.eclipse.jdt.ui.ignorelowercasenames=true
-org.eclipse.jdt.ui.importorder=java;javax;org;com;
-org.eclipse.jdt.ui.javadoc=true
-org.eclipse.jdt.ui.ondemandthreshold=99
-org.eclipse.jdt.ui.staticondemandthreshold=99
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * Constructor.\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*****************************************************************************\n * Copyright (c) ${year} CEA LIST and others.\n * \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * CEA LIST - Initial API and implementation\n * \n *****************************************************************************/\n</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/**\n * ${see_to_overridden}\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${see_to_target}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/META-INF/MANIFEST.MF b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/META-INF/MANIFEST.MF
deleted file mode 100644
index e293ef5472e..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,22 +0,0 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.dsml.validation.model,
- org.eclipse.papyrus.dsml.validation.model.elements.impl,
- org.eclipse.papyrus.dsml.validation.model.elements.interfaces,
- org.eclipse.papyrus.dsml.validation.model.profilenames
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.uml2.uml;bundle-version="3.2.100",
- org.eclipse.emf.transaction;bundle-version="1.4.0",
- org.eclipse.gmf.runtime.emf.commands.core;bundle-version="1.4.0",
- org.eclipse.papyrus.infra.core;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.dsml.validation;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.uml.tools.utils;bundle-version="[3.0.0,4.0.0)"
-Bundle-Vendor: %pluginProvider
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Bundle-Localization: plugin
-Bundle-Name: %pluginName
-Bundle-Activator: org.eclipse.papyrus.dsml.validation.model.Activator
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.dsml.validation.model;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/about.html b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/about.html
deleted file mode 100644
index 209103075a7..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!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 (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). 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, &quot;Program&quot; 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 (&quot;Redistributor&quot;) 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/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/build.properties b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/build.properties
deleted file mode 100644
index 1b08f841b5e..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- about.html,\
- plugin.properties
-src.includes = about.html
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/plugin.properties b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/plugin.properties
deleted file mode 100644
index cf8a9575e7f..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-###############################################################################
-# Copyright (c) 2010 CEA LIST.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# CEA LIST - initial API and implementation
-###############################################################################
-pluginName=Papyrus DSML Validation model (Incubation)
-pluginProvider=Eclipse Modeling Project
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/pom.xml b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/pom.xml
deleted file mode 100644
index 1f6cfc352e4..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/pom.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>org.eclipse.papyrus.extra.releng</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>3.0.0-SNAPSHOT</version>
- <relativePath>../../../releng/extra</relativePath>
- </parent>
- <artifactId>org.eclipse.papyrus.dsml.validation.model</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.2.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
-</project> \ No newline at end of file
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/Activator.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/Activator.java
deleted file mode 100644
index c66ddb9e9dd..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/Activator.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- /**
- * PluginID
- * */
- public static final String PLUGIN_ID = "org.eclipse.papyrus.dsml.validation.model"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
- * )
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
- * )
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/CategoryImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/CategoryImpl.java
deleted file mode 100644
index 9d40c238d94..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/CategoryImpl.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) patrick.Tessuier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.impl;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category;
-
-/**
- * Implementation of a category interface.
- *
- *
- */
-public class CategoryImpl implements Category {
-
-
- private List<Category> subCategories = new ArrayList<Category>();
-
- private Category parentCategory;
- private String id;
-
-
- /**
- *
- * Constructor.
- *
- * @param name
- * the name of the category
- * @param parentCategory
- */
- public CategoryImpl(String name, Category parentCategory) {
- this.id = name;
- this.name = name;
- this.isMandatory = false;
- this.parentCategory = parentCategory;
- }
-
- /**
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category#getID()
- *
- */
- public String getID() {
- return this.id;
- }
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category#getName()
- *
- */
- public String getName() {
- return this.name;
- }
-
- private String name;
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category#isMandatory()
- *
- */
- public boolean isMandatory() {
- return this.isMandatory;
- }
-
- private boolean isMandatory;
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category#getSubcategories()
- *
- */
- public List<Category> getSubcategories() {
- return subCategories;
- }
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category#addSubcategories(java.util.List)
- *
- */
- public void addSubcategories(List<Category> subCategories) {
- this.subCategories.addAll(subCategories);
- }
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category#getParentCategory()
- *
- */
- public Category getParentCategory() {
- return this.parentCategory;
- }
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintCategoryImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintCategoryImpl.java
deleted file mode 100644
index 65adcbcf313..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintCategoryImpl.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier( CEA LIST) patrick.tessier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.impl;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsCategory;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IValidationRule;
-
-/**
- * Implementation of a constraint category interface.
- *
- *
- */
-public class ConstraintCategoryImpl extends CategoryImpl implements IConstraintsCategory {
-
- private List<IValidationRule> constraints = new ArrayList<IValidationRule>();
-
- private String categoriesList;
-
-
- /**
- *
- * Constructor.
- *
- * @param category
- */
- public ConstraintCategoryImpl(String name, Category parentCategory) {
- super(name, parentCategory);
- }
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsCategory#getCategoriesList()
- *
- */
- public String getCategoriesList() {
- return this.categoriesList;
- }
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsCategory#getConstraints()
- *
- */
- public List<IValidationRule> getConstraints() {
- return constraints;
- }
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsCategory#addConstraints(java.util.List)
- *
- * @param constraints
- */
- public void addConstraints(List<IValidationRule> constraints) {
- this.constraints.addAll(constraints);
- }
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintManagerImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintManagerImpl.java
deleted file mode 100644
index 768232e0df4..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintManagerImpl.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.impl;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintProvider;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsManager;
-import org.eclipse.papyrus.dsml.validation.model.profilenames.Utils;
-import org.eclipse.papyrus.uml.tools.utils.StaticProfileUtil;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Profile;
-import org.eclipse.uml2.uml.Stereotype;
-
-/**
- * Management of validationRules assigned to the stereotypes specified in the
- * defined profile.
- * ContraintProvider=Category=profile or subprofile
- *
- *
- */
-public class ConstraintManagerImpl implements IConstraintsManager {
-
- private List<IConstraintProvider> constraintsProviders = new ArrayList<IConstraintProvider>();
-
- private Map<Stereotype, List<Constraint>> constraintsOfStereotype = new HashMap<Stereotype, List<Constraint>>();
- private Map<Constraint, ValidationRuleImpl> validationRuleMap = new HashMap<Constraint, ValidationRuleImpl>();
-
-
-
- public Map<Constraint, ValidationRuleImpl> getValidationRuleMap() {
- return validationRuleMap;
- }
-
- public Map<Stereotype, List<Constraint>> getConstraintsOfStereotype() {
- return constraintsOfStereotype;
- }
-
-
- private Category primeCategory;
-
- private IConstraintProvider constraintProvider;
-
-
-
- /**
- *
- * Constructor.
- *
- * @param profile
- */
- public ConstraintManagerImpl(Profile profile) {
-
- extractElements(profile);
-
- }
-
- /**
- * Method to get all the elements from the model, necessary to build a
- * plugin for validationRules validation.
- *
- * @param root
- * root profile for which the validation plugin will be generated
- */
- private void extractElements(Profile root) {
-
- // get the list of validationRules for each stereotype
- createStereotypeToConstraintsMapping(root);
-
- // the top profile becomes the prime category
- primeCategory = new CategoryImpl(root.getName().toLowerCase(), null);
-
- // construct all sub categories
- relateCategoriesWithConstraints(root, primeCategory);
- }
-
- /**
- * Recursive function to relate categories with the validationRules
- * a profile becomes a category= a constraint Provider
- * a stereotype becomes a category
- *
- * @param element
- * element for which function will find validationRules and its
- * related categories
- * @param category
- * category for a group of validationRules
- */
- private void relateCategoriesWithConstraints(Element element, Category category) {
-
- if (element instanceof Profile) {
- Profile profile = (Profile) element;
-
- // creation of a category
- ConstraintCategoryImpl subCategory = new ConstraintCategoryImpl(((Profile) element).getName(), category);
- // add the category to the list of category
- category.getSubcategories().add(subCategory);
- // creation of a provider
- // construct one constraint provider
- constraintProvider = new ConstraintProviderImpl();
- // associate validation to category to provider
- constraintProvider.getConstraintsCategories().add(subCategory);
- constraintsProviders.add(constraintProvider);
- StaticProfileUtil staticProfile = new StaticProfileUtil(profile);
- Utils.setStaticProfile(staticProfile);
- if (staticProfile.getDefinition() != null) {
- constraintProvider.setEPackage(staticProfile.getDefinition());
- }
- else if (profile.getDefinition() != null) {
- constraintProvider.setEPackage(profile.getDefinition());
- }
-
- // iterate on all direct element of the profile
- for (NamedElement subElement : ((Profile) element).getOwnedMembers()) {
-
- // this a profile
- if (subElement instanceof Profile) {
- this.relateCategoriesWithConstraints(subElement, subCategory);
- } else if (subElement instanceof Stereotype) {
-
- // create validation rules
- if (this.constraintsOfStereotype.get(subElement) != null) {
- for (Constraint constraint : this.constraintsOfStereotype.get(subElement)) {
- try {
- ValidationRuleImpl rule = new ValidationRuleImpl(constraint, subCategory);
- validationRuleMap.put(constraint, rule);
- subCategory.getConstraints().add(rule);
- } catch (WrongStereotypeException e) {
- e.printStackTrace();
- }
- }
- }
-
- }
- }
-
- }
- }
-
- /**
- * create a category from the owner category and the sub-element that will becomes a category
- *
- * @param category
- * the category owner
- * @param subElement
- * the element that will become a category
- * @return the category
- */
- protected Category createCategory(Category category, NamedElement subElement) {
- Category subCategory;
- subCategory = new CategoryImpl(category.getName() + "." + subElement.getName().toLowerCase(), category);
- return subCategory;
- }
-
- /**
- * Recursive method that finds validationRules of each stereotype defined in the
- * model.
- * it add validationRules only if there are stereotype validationRules
- *
- * @param profile
- * root profile with stereotypes for which validationRules defined in
- * the model will be found
- */
- private void createStereotypeToConstraintsMapping(Profile profile) {
-
- for (Element element : profile.allOwnedElements()) {
-
- if (element instanceof Constraint) {
- // don't restrict to elements that apply validation rule stereotype, see bug
- // 464249 - [..] The validation plugin generator silently ignores constraints without ValidationRule stereotype
- // if (element.getAppliedStereotype(IDSMLValidation.VALIDATIONRULE_STEREOTYPE) != null) {
-
- Element contextElement = ((Constraint) element).getContext();
-
- // get the stereotype to add the constraint
- if (contextElement instanceof Stereotype) {
- if (this.constraintsOfStereotype.keySet().contains(contextElement)) {
- this.constraintsOfStereotype.get(contextElement).add((Constraint) element);
- } else {
- List<Constraint> constraintsList = new ArrayList<Constraint>();
- constraintsList.add((Constraint) element);
- this.constraintsOfStereotype.put((Stereotype) contextElement, constraintsList);
- }
- }
- }
- }
- }
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsManager#getConstraintsProviders()
- *
- */
-
- public List<IConstraintProvider> getConstraintsProviders() {
- return this.constraintsProviders;
- }
-
-
- /**
- *
- * @see org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsManager#getPrimeCategory()
- *
- */
- public Category getPrimeCategory() {
- return this.primeCategory;
- }
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintProviderImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintProviderImpl.java
deleted file mode 100644
index e022bc0a3bd..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ConstraintProviderImpl.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.impl;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintProvider;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IConstraintsCategory;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Mode;
-
-/**
- * this is constraint constraint provider see extension point
- *
- */
-public class ConstraintProviderImpl implements IConstraintProvider {
-
- private List<IConstraintsCategory> constraintsCategories = new ArrayList<IConstraintsCategory>();
- private Mode mode;
- private boolean cache;
- private EPackage ePackage = null;
-
-
- /**
- *
- * Constructor.
- *
- */
- public ConstraintProviderImpl() {
-
- this.mode = Mode.Batch;
-
- this.cache = false;
-
- }
-
- public Mode getMode() {
- // TODO Auto-generated method stub
- return this.mode;
- }
-
- public boolean getCache() {
- // TODO Auto-generated method stub
- return this.cache;
- }
-
-
- public List<IConstraintsCategory> getConstraintsCategories() {
- // TODO Auto-generated method stub
- return constraintsCategories;
- }
-
-
- public void addConstraintCategories(
- List<IConstraintsCategory> constraintCategories) {
- // TODO Auto-generated method stub
- this.constraintsCategories.addAll(constraintCategories);
- }
-
- public EPackage getEPackage() {
- return ePackage;
- }
-
- public void setEPackage(EPackage ePackage) {
- this.ePackage = ePackage;
- }
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ValidationRuleImpl.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ValidationRuleImpl.java
deleted file mode 100644
index 0fb87c1252a..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/ValidationRuleImpl.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - modifications
- * Ansgar Radermacher (CEA LIST) ansgar.radermacher@cea.fr - clean-up, bug 464249 (constraints without ValidationRule stereotype)
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.impl;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
-import org.eclipse.papyrus.dsml.validation.IDSMLValidation;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Category;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.IValidationRule;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Mode;
-import org.eclipse.papyrus.dsml.validation.model.elements.interfaces.Severity;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Stereotype;
-
-/**
- * Implementation of an interface relating to the ValidationRule interface.
- *
- */
-public class ValidationRuleImpl implements IValidationRule {
-
- /**
- *
- */
- private static final String CONSTRAINT_POSTFIX = "Constraint";
-
- /**
- *
- */
- private static final String DPT = ".";
-
- /**
- *
- */
- private static final String CONSTRAINT_PKG = "constraints";
-
- /**
- * Attributes of stereotype ValidationRule
- */
- private static final String SA_TARGET = "target"; //$NON-NLS-1$
-
- private static final String SA_ID = "id"; //$NON-NLS-1$
-
- private static final String SA_STATUS_CODE = "statusCode"; //$NON-NLS-1$
-
- private static final String SA_SEVERITY = "severity"; //$NON-NLS-1$
-
- private static final String SA_MODE = "mode"; //$NON-NLS-1$
-
- private static final String SA_IS_ENABLED_BY_DEFAULT = "isEnabledByDefault"; //$NON-NLS-1$
-
- private static final String SA_DESCRIPTION = "description"; //$NON-NLS-1$
-
- private static final String SA_MESSAGE = "message"; //$NON-NLS-1$
-
- private String id;
-
- private Constraint constraint;
-
- private Stereotype stereotype;
-
- private List<String> targets;
-
- private String implementingClass;
-
- /**
- * Constructor which takes as an parameter constraint from the model.
- *
- * @param constraint
- * constraint from the model
- * @throws WrongStereotypeException
- * exception in case when constraint passed to the constructor
- * is not stereotyped with IValidationRule stereotype
- */
- public ValidationRuleImpl(Constraint constraint) throws WrongStereotypeException {
- this.constraint = constraint;
- stereotype = constraint.getAppliedStereotype(IDSMLValidation.VALIDATIONRULE_STEREOTYPE);
- if (stereotype == null) {
- // throw new WrongStereotypeException(ERROR);
- }
- }
-
- /**
- * Constructor which takes as an parameter constraint from the model and
- * category to which this constraint will belong.
- *
- * @param constraint
- * constraint from the model
- * @param parentCategory
- * parent category
- * @throws WrongStereotypeException
- * exception in case when constraint passed to the constructor
- * is not stereotyped with IValidationRule stereotype
- */
- @SuppressWarnings("rawtypes")
- public ValidationRuleImpl(Constraint constraint, Category parentCategory) throws WrongStereotypeException {
-
- this(constraint);
-
- /*
- * If the value of id has not been declared by the user, generated id
- * value will be assigned and saved in the model.
- */
- if ((getStereoAttribValue(SA_ID) instanceof String) && ((String) getStereoAttribValue(SA_ID)).length() > 0) {
- id = (String) getStereoAttribValue(SA_ID);
- }
- else {
- String qname = constraint.getQualifiedName().replace("::", DPT);
- id = qname;
- }
-
- implementingClass = CONSTRAINT_PKG + DPT + this.getName() + CONSTRAINT_POSTFIX;
-
- // unused
- // this.contextID = parentCategory.getID();
-
- targets = new ArrayList<String>();
-
- /*
- * If there is no target specified, plugin will automatically assign as
- * a target for a constraint, those elements which are extended by the
- * stereotype to which the constraint applies.
- */
- Object targetsObj = getStereoAttribValue(SA_TARGET);
- if ((targetsObj instanceof EDataTypeUniqueEList) && ((EDataTypeUniqueEList) targetsObj).size() > 0) {
- for (Object target : (EDataTypeUniqueEList) targetsObj) {
- if (target instanceof String) {
- targets.add((String) target);
- }
- }
- }
- }
-
- public String getName() {
- return constraint.getName();
- }
-
- public String getID() {
- return id == null ? (String) getStereoAttribValue(SA_ID) : id;
- }
-
- public Integer getStatusCode() {
- Integer statusCode = (Integer) getStereoAttribValue(SA_STATUS_CODE);
- return statusCode == null ? new Integer(1) : statusCode;
- }
-
- public Severity getSeverity() {
- Object severityObj = getStereoAttribValue(SA_SEVERITY);
- if (severityObj instanceof Enumerator) {
- Enumerator severity = (Enumerator) severityObj;
-
- String severityType = severity.getName();
-
- if (severityType.compareTo(Severity.INFO.name()) == 0) {
- return Severity.INFO;
- } else if (severityType.compareTo(Severity.WARNING.name()) == 0) {
- return Severity.WARNING;
- } else if (severityType.compareTo(Severity.CANCEL.name()) == 0) {
- return Severity.CANCEL;
- }
- }
- return Severity.ERROR;
- }
-
- public String getImplementingClass() {
- return implementingClass;
- }
-
- public Mode getMode() {
- Object modeObj = (stereotype != null) ? constraint.getValue(stereotype, SA_MODE) : null;
- if (modeObj instanceof Enumerator) {
- Enumerator mode = (Enumerator) modeObj;
-
- String modeType = mode.getName();
-
- if (modeType.compareTo(Mode.Batch.name()) == 0) {
- return Mode.Batch;
- } else if (modeType.compareTo(Mode.Live.name()) == 0) {
- return Mode.Live;
- }
- }
- return Mode.Batch;
- }
-
- public boolean isEnabledByDefault() {
- Object enabledByDefault = getStereoAttribValue(SA_IS_ENABLED_BY_DEFAULT);
- return enabledByDefault instanceof Boolean ? ((Boolean) enabledByDefault).booleanValue() : true;
- }
-
- public String getMessage() {
- return (String) getStereoAttribValue(SA_MESSAGE);
- }
-
- public String getDescription() {
- return (String) getStereoAttribValue(SA_DESCRIPTION);
- }
-
- public List<String> getTargets() {
- return targets;
- }
-
- public Constraint getConstraint() {
- return this.constraint;
- }
-
- /**
- * Helper function that returns the value of the ValidationRule stereotype,
- * if applied to the underlying constraint
- * @param attributeName the name of the stereotype attribute
- * @return null or value of stereotype attribute
- */
- public Object getStereoAttribValue(String attributeName) {
- if (stereotype != null) {
- return constraint.getValue(stereotype, attributeName);
- }
- return null;
- }
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/WrongStereotypeException.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/WrongStereotypeException.java
deleted file mode 100644
index 14121c58c8d..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/impl/WrongStereotypeException.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - modifications
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.impl;
-
-/**
- * Exception which is thrown in case specific model element is not stereotype
- * with and expected stereotype.
- *
- *
- */
-public class WrongStereotypeException extends Exception {
-
- private static final long serialVersionUID = 1L;
-
- public WrongStereotypeException() {
- super("Element is not stereotyped with applicable stereotype");
- }
-
- public WrongStereotypeException(String msg) {
- super(msg);
- }
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Category.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Category.java
deleted file mode 100644
index 648fff008cc..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Category.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier( CEA LIST) patrick.tessier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.interfaces;
-
-import java.util.List;
-
-/**
- * Interface representing category from the EMF Validation Framework.
- *
- *
- */
-public interface Category {
-
- /**
- *
- *
- * @return ID of a category
- */
- public String getID();
-
- /**
- *
- *
- * @return Name of a category
- */
- public String getName();
-
- /**
- *
- * @return Information whether category is mandatory
- */
- public boolean isMandatory();
-
- /**
- *
- * @return Sub-categories of a given category
- */
- public List<Category> getSubcategories();
-
-
- /**
- * Adding list of sub-categories
- *
- * @param subCategories
- * list of sub-categories to add
- */
- public void addSubcategories(List<Category> subCategories);
-
- /**
- * @return Access to parent category
- */
- public Category getParentCategory();
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintProvider.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintProvider.java
deleted file mode 100644
index d5d28120bde..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintProvider.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.interfaces;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EPackage;
-
-/**
- * Interface representing constraint provider from the EMF Validation Framework
- */
-public interface IConstraintProvider {
- /**
- *
- * @return the mode of this provider
- */
- public Mode getMode();
-
- /**
- *
- * @return the cache of the provider
- */
- public boolean getCache();
-
-
- public EPackage getEPackage();
-
- public void setEPackage(EPackage ePackage);
-
- /**
- *
- * @return the list of categories
- */
- public List<IConstraintsCategory> getConstraintsCategories();
-
- /**
- * add categories
- *
- * @param constraintCategories
- * a list of categories
- */
- public void addConstraintCategories(
- List<IConstraintsCategory> constraintCategories);
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintsCategory.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintsCategory.java
deleted file mode 100644
index 94af58b573d..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintsCategory.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.interfaces;
-
-import java.util.List;
-
-/**
- * Interface representing constraint category from EMF Validation Framework
- *
- *
- */
-public interface IConstraintsCategory extends Category {
- /**
- *
- * @return constraints
- */
-
- public List<IValidationRule> getConstraints();
-
- /**
- *
- * @return the list of categories as a string
- */
- public String getCategoriesList();
-
-
- /**
- * add a list of constraint
- *
- * @param constraints
- */
- public void addConstraints(List<IValidationRule> constraints);
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintsManager.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintsManager.java
deleted file mode 100644
index dd5a037abde..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IConstraintsManager.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.interfaces;
-
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.papyrus.dsml.validation.model.elements.impl.ValidationRuleImpl;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Stereotype;
-
-/**
- * Interface which specifies methods for the manager taking charge of a
- * constraints defined in a profile.
- *
- */
-public interface IConstraintsManager {
-
-
- /**
- * Access to the list of constraint providers which are necessary for the
- * specification of a validation plugin.
- *
- * @return list of constraint providers
- */
- public List<IConstraintProvider> getConstraintsProviders();
-
- public Map<Constraint, ValidationRuleImpl> getValidationRuleMap();
-
-
- /**
- * Access to the prime category.
- *
- * @return prime category
- */
- public Category getPrimeCategory();
-
-
- /**
- *
- * @return the hashmap of constraint per stereotype
- */
- public Map<Stereotype, List<Constraint>> getConstraintsOfStereotype();
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IValidationRule.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IValidationRule.java
deleted file mode 100644
index c96f67e8bef..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/IValidationRule.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.interfaces;
-
-import java.util.List;
-
-import org.eclipse.uml2.uml.Constraint;
-
-/**
- * Interface representing constraints specified in a profile model
- *
- *
- */
-public interface IValidationRule {
-
- /**
- * Getting the name of a constraint
- *
- * @return name of a constraint
- */
- public String getName();
-
- /**
- * Getting the id of a constraint
- *
- * @return id of a constraint
- */
- public String getID();
-
- /**
- * Getting the status code of a constraint
- *
- * @return status code of a constraint
- */
- public Integer getStatusCode();
-
- /**
- * Getting the severity of a constraint (ERROR, INFO, WARNING or CANCEL)
- *
- * @return severity of a constraint
- */
- public Severity getSeverity();
-
- /**
- * Getting the name of a Java class that implements the method validating
- * the constraint
- *
- * @return name of a Java class
- */
- public String getImplementingClass();
-
- /**
- * Getting the mode of a constraint (Batch or Live)
- *
- * @return mode of a constraint
- */
- public Mode getMode();
-
- /**
- * Getting the value that tells whether the constraint validation will be
- * triggered
- *
- * @return value specifying triggering of a constraint
- */
- public boolean isEnabledByDefault();
-
- /**
- * Getting the message that is displayed in the Properties view if the
- * constraint was violated
- *
- * @return message displayed in case when constraint was violated
- */
- public String getMessage();
-
- /**
- * Getting the natural language description of a constraint
- *
- * @return natural language description of a constraint
- */
- public String getDescription();
-
- /**
- * Getting the targets, namely the names of model elements against which the
- * constraint will be validated
- *
- * @return names of model elements for which the constraint applies
- */
- public List<String> getTargets();
-
-
- /**
- * Constraint from the model represented by this interface
- *
- * @return model constraint
- */
- public Constraint getConstraint();
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Mode.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Mode.java
deleted file mode 100644
index da15b7b08d2..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Mode.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.interfaces;
-
-/**
- * Enumeration that specifies modes for the constraints validation: Batch -
- * constraints validation is triggered on user demand Live - constraints
- * validation is triggered every time when change in the model occures
- *
- *
- */
-public enum Mode {
-
- Batch, Live;
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Severity.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Severity.java
deleted file mode 100644
index 22234391b89..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/elements/interfaces/Severity.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - modification
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.elements.interfaces;
-
-/**
- * Enumeration that specifies different types of a constraint violation.
- *
- *
- */
-public enum Severity {
-
- INFO, WARNING, ERROR, CANCEL
-
-}
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/profilenames/Utils.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/profilenames/Utils.java
deleted file mode 100644
index d1018c3fd5d..00000000000
--- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.model/src/org/eclipse/papyrus/dsml/validation/model/profilenames/Utils.java
+++ /dev/null
@@ -1,255 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Ernest Wozniak (CEA LIST) ernest.wozniak@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - modifications
- *****************************************************************************/
-package org.eclipse.papyrus.dsml.validation.model.profilenames;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.papyrus.uml.tools.utils.StaticProfileUtil;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Namespace;
-import org.eclipse.uml2.uml.OpaqueExpression;
-import org.eclipse.uml2.uml.Stereotype;
-import org.eclipse.uml2.uml.ValueSpecification;
-
-/**
- * Provision of functionality for management of constraints.
- *
- *
- */
-public class Utils {
-
- private static final String DOT = "."; //$NON-NLS-1$
- private static final String JAVA_LANGUAGE = "JAVA"; //$NON-NLS-1$
- private static final String OCL_LANGUAGE = "OCL"; //$NON-NLS-1$
-
- /*
- * Map holding relations between String representing the qualified name of a
- * constraint and name of a package to which it belongs. Package name in
- * this case is built from the predefined prefix and names of the profiles
- * in which considered constraint is included. Name of this package is used
- * for the specification of a package in which java class implementing the
- * constraint is located.
- */
- private static Map<String, String> constraintToItsPackage = new HashMap<String, String>();
-
- /**
- * Retrieval of a java constraint body.
- *
- * @param valueSpecification
- * ValueSpecification which contains specification of a java code
- * validating the constraint.
- * @return string representing the java code validating constraint
- */
- public static String getJavaConstraintBody(ValueSpecification valueSpecification) {
-
- if (valueSpecification == null
- || !(valueSpecification instanceof OpaqueExpression)) {
- return null;
- }
-
- int index = 0;
- for (String language : ((OpaqueExpression) valueSpecification)
- .getLanguages()) {
- if (language.compareTo(JAVA_LANGUAGE) == 0) {
- return ((OpaqueExpression) valueSpecification).getBodies().get(index);
- }
- index++;
- }
-
- return null;
- }
-
- /**
- * This method performs check whether for specific constraint exists
- * specification of a java code.
- *
- * @param constraint
- * constraint for which check for existing java code is performed
- * @return true if there is an existing specification of a java code
- * validating constraint
- */
- public static Boolean hasSpecificationForJava(Constraint constraint) {
-
- ValueSpecification valueSpec = constraint.getSpecification();
-
- if (valueSpec == null || !(valueSpec instanceof OpaqueExpression)) {
- return false;
- }
-
- for (String language : ((OpaqueExpression) valueSpec).getLanguages()) {
- if (language.compareTo(JAVA_LANGUAGE) == 0) {
- return true;
- }
- }
-
- return false;
- }
-
- /**
- * return the qualified name of the stereotype that is the context of the constraint.
- *
- * @param constraint
- * the constraint
- * @return the qualified name of the constraint or ""
- */
- public static String getConstraintForStereotype(Constraint constraint) {
-
- Namespace nameSpace = constraint.getContext();
- if (nameSpace instanceof Stereotype) {
- if (staticProfile != null) {
- String basePackage = staticProfile.getBasePackage();
- if (basePackage != null) {
- String packageName = staticProfile.getPackageName();
- if (packageName != null) {
- return basePackage + DOT + packageName + DOT + nameSpace.getName();
- } else {
- return basePackage + DOT + nameSpace.getQualifiedName();
- }
- }
- }
- return nameSpace.getQualifiedName();
- }
- return ""; //$NON-NLS-1$
- }
-
- /**
- * Return true if the constraint is to validate something about a stereotype
- *
- * @param constraint
- * the constraint
- * @return true if the context of the constraint is a stereotype
- */
- public static Boolean isConstraintForStereotype(Constraint constraint) {
-
- Namespace nameSpace = constraint.getContext();
- if (nameSpace instanceof Stereotype) {
- return true;
- }
- return false;
-
- }
-
- /**
- * Retrieval of an OCL constraint body.
- *
- * @param constraint
- * constraint for which OCL body is retrieved
- * @return OCL constraint body
- */
- public static String getOCLConstraintBody(Constraint constraint) {
-
- int index = 0;
- ValueSpecification valueSpec = constraint.getSpecification();
-
- if (valueSpec != null && valueSpec instanceof OpaqueExpression) {
-
- for (String language : ((OpaqueExpression) valueSpec)
- .getLanguages()) {
-
- if (language.compareTo(OCL_LANGUAGE) == 0) {
- return ((OpaqueExpression) valueSpec).getBodies()
- .get(index);
- }
- index++;
- }
- }
-
- return null;
-
- }
-
- /**
- * Check whether there is specification of an OCL specification
- *
- * @param constraint
- * constraint for which check is performed
- * @return true if there is an existing specification of an OCL expression
- * validating the constraint
- */
- public static Boolean hasSpecificationForOCL(Constraint constraint) {
-
- ValueSpecification valueSpec = constraint.getSpecification();
-
- if (valueSpec == null || !(valueSpec instanceof OpaqueExpression)) {
- return false;
- }
-
- for (String language : ((OpaqueExpression) valueSpec).getLanguages()) {
- if (language.compareTo(OCL_LANGUAGE) == 0) {
- return true;
- }
- }
-
- return false;
- }
-
-
- /**
- * Method to insert the correspondence between the constraint and the
- * package in which the java class validating the constraint will be placed.
- *
- * @param constraint
- * constraint for which the package is being assigned
- * @param pkg
- * package in which java code validating the constraint will be
- * placed
- */
- public static void putMappnig(Constraint constraint, String pkg) {
-
- Utils.getConstraintToItsPackage().put(constraint.getQualifiedName(),
- pkg);
- }
-
- /**
- * Getter for constraintToItsPackage map.
- *
- * @return
- */
- public static Map<String, String> getConstraintToItsPackage() {
- return constraintToItsPackage;
- }
-
- /**
- * Setter for constraintToItsPackage map.
- *
- * @param constraintToItsPackage
- */
- public static void setConstraintToItsPackage(
- Map<String, String> constraintToItsPackage) {
- Utils.constraintToItsPackage = constraintToItsPackage;
- }
-
- /**
- * @return the top level package. It corresponds to the pluginID in lower case. Used by Acceleo template that generates the contents of selectors
- */
- public static String getTopPkg() {
- return pluginID.toLowerCase();
- }
-
- public static void setPluginID(String ID) {
- pluginID = ID;
- }
-
- public static boolean isStaticProfile() {
- return staticProfile.getDefinition() != null;
- }
-
- public static void setStaticProfile(StaticProfileUtil staticProfile) {
- Utils.staticProfile = staticProfile;
- }
-
- private static String pluginID;
-
- private static StaticProfileUtil staticProfile;
-}

Back to the top