Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » State Diagram reader
State Diagram reader [message #476965] Thu, 21 February 2008 09:21 Go to next message
hemant is currently offline hemantFriend
Messages: 4
Registered: July 2009
Junior Member
Hello
I am very new to UML2 framework. Currently I am working on an application
which needs to read the state diagrams in uml format. It needs to collect
the diagram informations like state id, state name, stereotypes etc. Till
now I was using the modelling tools API for doing so but now i want to do
it by using this UML2 project.
Can anyone give me any reference code or some guidelines how to load the
diagram and then parse it to get the required information of the stae
diagram.

Thanks a lot in advance
Hem
Re: State Diagram reader [message #477010 is a reply to message #476965] Fri, 29 February 2008 16:48 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Hem,

If I understand correctly you want to parse a UML model to extract
information about state machines.
Have a look at some of the 'getting started' articles on how to work with
models http://wiki.eclipse.org/MDT-UML2.
There are some convenience methods in UMLUtil that will help you in
extracting certain named elements ( look at UMLUtil.findNamedElement(..).
The uml superstructure specification at omg.org will also help to identify
which meta-types you might be intrested in.

Cheers,
- James.



"hemant" <hemant.kumar.811@gmail.com> wrote in message
news:3c234b3355eebc9ba04f50fb16688e24$1@www.eclipse.org...
> Hello
> I am very new to UML2 framework. Currently I am working on an application
> which needs to read the state diagrams in uml format. It needs to collect
> the diagram informations like state id, state name, stereotypes etc. Till
> now I was using the modelling tools API for doing so but now i want to do
> it by using this UML2 project.
> Can anyone give me any reference code or some guidelines how to load the
> diagram and then parse it to get the required information of the stae
> diagram.
>
> Thanks a lot in advance
> Hem
>
Re: State Diagram reader [message #626114 is a reply to message #476965] Fri, 29 February 2008 16:48 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Hem,

If I understand correctly you want to parse a UML model to extract
information about state machines.
Have a look at some of the 'getting started' articles on how to work with
models http://wiki.eclipse.org/MDT-UML2
There are some convenience methods in UMLUtil that will help you in
extracting certain named elements ( look at UMLUtil.findNamedElement(..).
The uml superstructure specification at omg.org will also help to identify
which meta-types you might be intrested in.

Cheers,
- James.



"hemant" <hemant.kumar.811@gmail.com> wrote in message
news:3c234b3355eebc9ba04f50fb16688e24$1@www.eclipse.org...
> Hello
> I am very new to UML2 framework. Currently I am working on an application
> which needs to read the state diagrams in uml format. It needs to collect
> the diagram informations like state id, state name, stereotypes etc. Till
> now I was using the modelling tools API for doing so but now i want to do
> it by using this UML2 project.
> Can anyone give me any reference code or some guidelines how to load the
> diagram and then parse it to get the required information of the stae
> diagram.
>
> Thanks a lot in advance
> Hem
>
Previous Topic:WSDL -> UML tools ?
Next Topic:dependency and allocation
Goto Forum:
  


Current Time: Mon Aug 08 23:19:36 GMT 2022

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

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

Back to the top