Interface WorkspaceXMLPersistenceProvider

    • 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 data
        workspace - 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 your getIdentifier method.

        Your implementation must detect the tag end element to stop reading.

        Parameters:
        reader - XMLStreamReader for deserialization of this persistence provider data previously serialized
        workspace - Current workspace being deserialized