Package lu.kbra.modelizer_next.domain
Class DiagramModel
java.lang.Object
lu.kbra.modelizer_next.domain.DiagramModel
Root model for diagram elements. It stores classes, links, comments, and their relationships.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the all links.Returns the classes.Returns the comments.Returns the conceptual links.Returns the technical links.voidRestores derived model state after JSON construction.voidPrepares the model before it is serialized or deconstructed.voidsetClasses(List<ClassModel> classes) Sets the classes.voidsetComments(List<CommentModel> comments) Sets the comments.toString()Builds a debug string for this diagram model.voidValidates the data before it is used.
-
Constructor Details
-
DiagramModel
public DiagramModel()Creates a diagram model instance.
-
-
Method Details
-
getAllLinks
Returns the all links.- Returns:
- the all links
-
getClasses
Returns the classes.- Returns:
- the classes
-
getComments
Returns the comments.- Returns:
- the comments
-
getConceptualLinks
Returns the conceptual links.- Returns:
- the conceptual links
-
getTechnicalLinks
Returns the technical links.- Returns:
- the technical links
-
postConstruct
public void postConstruct()Restores derived model state after JSON construction. -
preDeconstruct
public void preDeconstruct()Prepares the model before it is serialized or deconstructed. -
setClasses
Sets the classes.- Parameters:
classes- values for classes
-
setComments
Sets the comments.- Parameters:
comments- values for comments
-
toString
Builds a debug string for this diagram model. -
validateData
public void validateData()Validates the data before it is used.
-