Skip to main content



      Home
Home » Modeling » UML2 » UML Component creation
UML Component creation [message #876326] Thu, 24 May 2012 07:36 Go to next message
Eclipse UserFriend
Hi,

I want to create a UML component programmatically.

For interfaces, classes etc. I use this:

	public static org.eclipse.uml2.uml.Class addClass(org.eclipse.uml2.uml.Package p, String name) {
		return p.createOwnedClass(name, false);
	}


But there is no method createOwnedComponent. I have created a model using UML2 tools and here a component is a packagedElement similar to a class. But how should I create a component?

Or is the way I use to create classes not correct too?

Regards,

Tex
Re: UML Component creation [message #876877 is a reply to message #876326] Fri, 25 May 2012 08:38 Go to previous message
Eclipse UserFriend
Hi

I think you'll find that there are only so many helper routines that the
developers had time for.

You need to replicate the innards of one of the helpers that are available.

Regards

Ed Willink


On 24/05/2012 12:36, Tex Iano wrote:
> Hi,
>
> I want to create a UML component programmatically.
>
> For interfaces, classes etc. I use this:
>
>
> public static org.eclipse.uml2.uml.Class
> addClass(org.eclipse.uml2.uml.Package p, String name) {
> return p.createOwnedClass(name, false);
> }
>
>
> But there is no method createOwnedComponent. I have created a model
> using UML2 tools and here a component is a packagedElement similar to
> a class. But how should I create a component?
>
> Or is the way I use to create classes not correct too?
>
> Regards,
>
> Tex
>
Previous Topic:UML2 to Java Literals
Next Topic:Unable to read the stereotypes from Papyrus SysML model in standalone mode
Goto Forum:
  


Current Time: Tue Jul 22 20:53:56 EDT 2025

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

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

Back to the top