public interface WorkspaceXMLPersistenceProvider extends WorkspacePersistenceProvider
Modifier and Type | Method and Description |
---|---|
void |
readXML(XMLStreamReader reader,
Workspace workspace)
This is automatically called when a start element with the tag name
provided in your
getIdentifier method. |
void |
writeXML(XMLStreamWriter writer,
Workspace workspace)
This is automatically called when saving a project file.
|
getIdentifier
void writeXML(XMLStreamWriter writer, Workspace workspace)
Your implementation must enclose all your data xml in a tag with the name
provided in your getIdentifier
method.
writer
- XMLStreamWriter for xml serialization of this persistence
provider dataworkspace
- Current workspace being serializedvoid readXML(XMLStreamReader reader, Workspace workspace)
getIdentifier
method.
Your implementation must detect the tag end element to stop reading.
reader
- XMLStreamReader for deserialization of this persistence
provider data previously serializedworkspace
- Current workspace being deserializedCopyright © 2007–2015 Gephi Consortium. All rights reserved.