public abstract class BasicGraphAssociatedManager<T> extends Object implements GraphAssociatedObjectManager<T>
Constructor and Description |
---|
BasicGraphAssociatedManager(String key,
String[] aliases,
Class typeClass) |
Modifier and Type | Method and Description |
---|---|
void |
doSave(OutputStreamWriter os,
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doCreate, doOpen
public void doSave(OutputStreamWriter os, Graph graph) throws GsException
GraphAssociatedObjectManager
doSave
in interface GraphAssociatedObjectManager<T>
GsException
public String getObjectName()
getObjectName
in interface GraphAssociatedObjectManager<T>
public String[] getAliases()
GraphAssociatedObjectManager
getAliases
in interface GraphAssociatedObjectManager<T>
public boolean needSaving(Graph graph)
needSaving
in interface GraphAssociatedObjectManager<T>
public T getObject(Graph graph)
GraphAssociatedObjectManager
getObject
in interface GraphAssociatedObjectManager<T>
public boolean handles(String key)
GraphAssociatedObjectManager
handles
in interface GraphAssociatedObjectManager<T>
public Class getGraphType()
GraphAssociatedObjectManager
getGraphType
in interface GraphAssociatedObjectManager<T>
Copyright © 2005–2020. All rights reserved.