Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Store model in database
Store model in database [message #874693] Mon, 21 May 2012 11:29 Go to next message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
Hi,

I have created a UML model and want to store it within a database. Currently I am using resources that require an URI. Also there is the usage of the UMLResourceFactoryImpl that handles UML files where I do not know how to use it without storing files.

So, I have the model, using UMLUtil I get all children. But how can I get an XML representation that I can store in a database?

Regards,

Tex
Re: Store model in database [message #874790 is a reply to message #874693] Mon, 21 May 2012 14:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Tex,

Resource has two save methods; one of them takes a stream. So you can
save into a ByteArrayOutputStream. If you want characters without doing
char->byte->char encoding and decoding you can use
URIConverter.WriteableOutputStream to wrap a writer, save the resource
to that wrapped writer, and then get the characters from the writer.


On 21/05/2012 1:29 PM, Tex Iano wrote:
> Hi,
>
> I have created a UML model and want to store it within a database.
> Currently I am using resources that require an URI. Also there is the
> usage of the UMLResourceFactoryImpl that handles UML files where I do
> not know how to use it without storing files.
> So, I have the model, using UMLUtil I get all children. But how can I
> get an XML representation that I can store in a database?
>
> Regards,
>
> Tex


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Store model in database [message #875371 is a reply to message #874790] Tue, 22 May 2012 16:01 Go to previous message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
Ah, nice Smile Thanks
Previous Topic:UML2/EMF standalone
Next Topic:Check profile application
Goto Forum:
  


Current Time: Fri Apr 26 00:23:38 GMT 2024

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

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

Back to the top