[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[m2m-dev] [ATL] problem with namespace in uml2 models transformation
|
- From: "Victor Hugo" <victorhcf@xxxxxxxxx>
- Date: Tue, 19 Aug 2008 23:21:33 -0300
- Delivered-to: m2m-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=Rd15fVDtulL/0w+Q2FuB/DwVJ7Igu3ZLU57ah9xjJz4=; b=WS3tBk2GXruB/wGVFWhzDkHc/e+AIkVTDg7mk65rOCNhEalzzuHWeFBhakmgoSR/Db ogRU/OjO1e4BrcyIJeuKiBihVz2pgDvk4bHJ0WJhtRv4uPvqx/VYzAFIG8xOG12TKpyf UOTpVeo+iwmgpoZ+FZXxJXqQ/1xiH27+cMspo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=nqxbCdV7LjNMZhmlOlIL5oRkc938yEpEyaDo+HGap2AD5VlY5P1Ww3Q4oxcQ8S67m4 OwM3R8foDMAIYJu7DHzbTu2bqOqBXRNqzu0PIWb/Ul7VLU0kRBbb35ehBLnGyvMyHOrw HtYbFTIiO6vhhEfh6SoFS+PYxwhxhdPN9R/bU=
Hi Friends
I`m trying to run an atl transformation over uml2 model but i cannot generate all classes into yours respective packages.
rule newClass {
from className : String, namespace : String
to t : UML2!Class (
name <- className,
visibility <- #public,
isAbstract <- false,
namespace <- if thisModule.packageExists(namespace) then
thisModule.getPackage(namespace)
else
thisModule.newPackage(thisModule.pckPSM)
endif
)
}
this is my transformation... i get this erro log when i run
****** BEGIN Stack Trace
message: feature namespace does not exist on UML2!Class
if i comment namespace lines i obtain all classes in root of model tree when should by in package
rule newClass {
from className : String, namespace : String
to t : UML2!Class (
name <- className,
visibility <- #public,
isAbstract <- false
)
}
i`m using version uml2 eclipse-uml2-1.1.1.jar
any help?
best regards