7 messages in org.netbeans.graph.usersRe: Persistence?
FromSent OnAttachments
Chris PalmerApr 30, 2007 3:42 am 
David KasparApr 30, 2007 5:47 am 
Chris PalmerApr 30, 2007 5:51 am 
David KasparApr 30, 2007 6:13 am 
Chris PalmerApr 30, 2007 6:17 am 
David KasparApr 30, 2007 6:39 am 
David KasparMay 1, 2007 9:42 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Persistence?Actions...
From:David Kaspar (Davi@Sun.COM)
Date:Apr 30, 2007 5:47:26 am
List:org.netbeans.graph.users

Hi Chris,

This is not supported since it is hard to define what is the important information to be stored. E.g.: usually it is enough to store widget preferred location of all nodes and a graph structure itself (node and edge objects). But there are other cases which requires more data to store. If the library would have built-in serialization support, then it would have to define an API for storing the node/edge objects since there are represented as "java.lang.Object" and the library does not know how to store/recreate them. Also there file format could vary from plain text file to XML or binary file, ...

For the reasons above, I was scared that the serialization is so different for each use-case that it is hard to write something generic enough. Therefore I have decided to exclude the serialization support from the library.

Anyway, please, let me know if you have an idea how to make the support.

Regards, David

Chris Palmer wrote:

Friends!

Is there a persistence mechanism available to the graph api that would persist the definition of the graph?

If the graph is translated to xml that would be great....