Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Restrictions for Simple data type
Restrictions for Simple data type [message #1852110] Fri, 29 April 2022 12:45 Go to next message
POLINA TROFIMOVA is currently offline POLINA TROFIMOVAFriend
Messages: 1
Registered: April 2022
Junior Member
Hello!

I try to import XSD in papyrus ang generate uml papyrus model from imported xsd.
First of all, I create genmodel (+ecore) from imported xsd.
Then I create uml model from genmodel (and then papyrus model from uml model).

Some simple types in xsd have restrictions (like pattern, maxLength etc).
I can see these restrictions in ExtendedMetaData in ecore file.
But in UML and in papyrus models all these restrictions had lost.

What should I do to import these restrictions in UML model from ecore?
Or if it is not possible to do it with the standard tools, what is the right way to create restrictions on simple data types in papyrus?
Re: Restrictions for Simple data type [message #1852122 is a reply to message #1852110] Sat, 30 April 2022 09:15 Go to previous message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 479
Registered: May 2015
Location: Germany
Senior Member
Hi Polina,
first of all XSD (standardized by W3C) is not an XMI (standardized by OMG) based format and for that reason cannot be imported by the plain vanilla Papyrus. But you can roll on your own importer.
Furthermore XSD sequence semantics cannot be directly mapped to the UML set semantics without information loss. Simply because the XSD sequence semantics has an element order, the UML set semantics has not.
The restrictions could be expressed by a profile applied to the UML meta-class DataType. The profile might also include an order number to mimic the XSD sequence semantics.
/Carsten
Previous Topic:Why the little plus signs?
Next Topic:Open Papyrus read only?
Goto Forum:
  


Current Time: Fri Apr 26 11:22:15 GMT 2024

Powered by FUDForum. Page generated in 0.02974 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top