org.gephi.project.spi
Interface WorkspacePersistenceProvider
- All Known Implementing Classes:
- LayoutModelPersistenceProvider, PartitionModelPersistenceProvider, StatisticsPersistenceProvider
public interface WorkspacePersistenceProvider
Interface modules implement to notify the system they can read/write part
of the .gephi project file to serialize states and data.
How saving a project works
- The saving task is looking for all implementations of this interface and
asks to return an XML element that represents data for each workspace.
- All of these elements are written in the .gephi project file.
How loading a project works
- The loading task is looking for all implementations of this interface and
asks for the identifier returned by
getIdentifier()
.
- When traversing the gephi project XML document it tries to match markups with
identifiers. When match, call this provider
readXML()
method
with the XML element.
Thus this interface allows any module to serialize and deserialize its data
to gephi project files.
- Author:
- Mathieu Bastian
- See Also:
Workspace
writeXML
org.w3c.dom.Element writeXML(org.w3c.dom.Document document,
Workspace workspace)
readXML
void readXML(org.w3c.dom.Element element,
Workspace workspace)
getIdentifier
java.lang.String getIdentifier()