public interface GraphAssociatedObjectManager<T>
Modifier and Type | Method and Description |
---|---|
T |
doCreate(Graph graph)
create the associated object for a graph
|
T |
doOpen(InputStream is,
Graph graph)
open associated object.
|
void |
doSave(OutputStreamWriter out,
Graph graph)
save the object associated with this graph.
|
String[] |
getAliases()
Get the aliases under which the object used to be saved (zip name in old files)
|
Class |
getGraphType()
Get the type of graph handled by this data manager.
|
T |
getObject(Graph graph)
get the existing associated object for a graph
|
String |
getObjectName() |
boolean |
handles(String key)
Test if the key is a valid name for this data manager
|
boolean |
needSaving(Graph graph) |
String getObjectName()
String[] getAliases()
boolean needSaving(Graph graph)
graph
- void doSave(OutputStreamWriter out, Graph graph) throws GsException
out
- graph
- GsException
T doOpen(InputStream is, Graph graph) throws GsException
is
- graph
- GsException
T getObject(Graph graph)
graph
- boolean handles(String key)
key
- Class getGraphType()
Copyright © 2005–2020. All rights reserved.