We model Java packages as FAMIXNamespaces, so you
should use
FAMIXClass>>setBelongsTo: . Furthermore, we also consider that a
FAMIXNamespace representing a Java package belongsTo the
FAMIXNamespace that represents the parent Java package.
Ah ok...
I do not know whether there is a semantics attached to the parent
link between FAMIXNamespace. Note that there is no semantics between
two Java packages "package1" and "package1.subpackage". However,
programmers traditionally assume that classes defined in
"package1.subpackage" should not be used by classes other than the
one defined in "package1". I guess this is what you're trying to
capture with the parent link between FAMIXNamespace.
Alexandre
On Apr 13, 2008, at 11:48 PM, Alexandre Bergel wrote:
Hi!
I wish to specify that a class belongs to a package. Which of these
invocations should I use?
famixClass setBelongsTo: package.
famixClass packageIn: package
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
www.tudorgirba.com/blog
"Every thing should have the right to be different."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.