Package lu.kbra.modelizer_next.document
Class ModelDocument
java.lang.Object
lu.kbra.modelizer_next.document.ModelDocument
Top-level persistent document that owns the diagram model, metadata, workspace layout, and style
palettes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMeta()Returns the meta.getModel()Returns the model.intReturns the schema version.Returns the source.Returns the workspace.voidsetMeta(DocumentMeta meta) Sets the meta.voidsetModel(DiagramModel model) Sets the model.voidsetSchemaVersion(int schemaVersion) Sets the schema version.voidSets the source.voidsetWorkspace(WorkspaceState workspace) Sets the workspace.toString()Builds a debug string for this model document.
-
Constructor Details
-
ModelDocument
public ModelDocument()Creates a model document instance.
-
-
Method Details
-
getMeta
Returns the meta.- Returns:
- the meta
-
getModel
Returns the model.- Returns:
- the model
-
getSchemaVersion
public int getSchemaVersion()Returns the schema version.- Returns:
- the schema version
-
getSource
Returns the source.- Returns:
- the source
-
getWorkspace
Returns the workspace.- Returns:
- the workspace
-
setMeta
Sets the meta.- Parameters:
meta- meta value used by the operation
-
setModel
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
Sets the source.- Parameters:
source- source object used by the operation
-
setWorkspace
Sets the workspace.- Parameters:
workspace- workspace value used by the operation
-
toString
Builds a debug string for this model document.
-