Class ModelDocument

java.lang.Object
lu.kbra.modelizer_next.document.ModelDocument

public class ModelDocument extends Object
Top-level persistent document that owns the diagram model, metadata, workspace layout, and style palettes.
  • Constructor Details

    • ModelDocument

      public ModelDocument()
      Creates a model document instance.
  • Method Details

    • getMeta

      public DocumentMeta getMeta()
      Returns the meta.
      Returns:
      the meta
    • getModel

      public DiagramModel getModel()
      Returns the model.
      Returns:
      the model
    • getSchemaVersion

      public int getSchemaVersion()
      Returns the schema version.
      Returns:
      the schema version
    • getSource

      public String getSource()
      Returns the source.
      Returns:
      the source
    • getWorkspace

      public WorkspaceState getWorkspace()
      Returns the workspace.
      Returns:
      the workspace
    • setMeta

      public void setMeta(DocumentMeta meta)
      Sets the meta.
      Parameters:
      meta - meta value used by the operation
    • setModel

      public void setModel(DiagramModel model)
      Sets the model.
      Parameters:
      model - diagram model to read or modify
    • setSchemaVersion

      public void setSchemaVersion(int schemaVersion)
      Sets the schema version.
      Parameters:
      schemaVersion - numeric schema version value
    • setSource

      public void setSource(String source)
      Sets the source.
      Parameters:
      source - source object used by the operation
    • setWorkspace

      public void setWorkspace(WorkspaceState workspace)
      Sets the workspace.
      Parameters:
      workspace - workspace value used by the operation
    • toString

      public String toString()
      Builds a debug string for this model document.
      Overrides:
      toString in class Object
      Returns:
      a debug string for this object