Package org.gephi.project.spi
Interface WorkspaceXMLPersistenceProvider
-
- All Superinterfaces:
WorkspacePersistenceProvider
public interface WorkspaceXMLPersistenceProvider extends WorkspacePersistenceProvider
XML Workspace persistence provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
readXML(XMLStreamReader reader, Workspace workspace)
This is automatically called when a start element with the tag name provided in yourgetIdentifier
method.void
writeXML(XMLStreamWriter writer, Workspace workspace)
This is automatically called when saving a project file.-
Methods inherited from interface org.gephi.project.spi.WorkspacePersistenceProvider
getIdentifier
-
-
-
-
Method Detail
-
writeXML
void writeXML(XMLStreamWriter writer, Workspace workspace)
This is automatically called when saving a project file.Your implementation must enclose all your data xml in a tag with the name provided in your
getIdentifier
method.- Parameters:
writer
- XMLStreamWriter for xml serialization of this persistence provider dataworkspace
- Current workspace being serialized
-
readXML
void readXML(XMLStreamReader reader, Workspace workspace)
This is automatically called when a start element with the tag name provided in yourgetIdentifier
method.Your implementation must detect the tag end element to stop reading.
- Parameters:
reader
- XMLStreamReader for deserialization of this persistence provider data previously serializedworkspace
- Current workspace being deserialized
-
-