[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmt] Re: [Epsilon] Problems using HUTN with UML metamodel

Hi Pau,

I've been able to recreate this problem.

I'll investigate further and post a reply later today.

Many thanks,
Louis.

Pau Giner wrote:
Hello,
I've experienced problems with HUTN when trying to define a UML model. The problem I guess is that UML metamodel uses its own dataTypes. So HUTN cannot convert strings to the UML-defined String datatype.



For example, if I define the following:

@Spec {
  MetaModel "uml" {
    nsUri = "http://www.eclipse.org/uml2/2.1.0/UML";
  }
}

Packages {
  Package "Pk" {
    name: "package"
    nestedPackage: Profile "Pr" { name: "profile" }
    ownedType: Class "C" { name: "class" }
  }
}



I get the following error:

[Line: 9, Column: 5, Reason: Expected String for: name, Line: 10, Column: 35, Reason: Expected String for: name, Line: 11, Column: 28, Reason: Expected String for: name]

Is there any construct to handle the creation of these datatypes?

--Pau