Class DiagramModel

java.lang.Object
lu.kbra.modelizer_next.domain.DiagramModel

public class DiagramModel extends Object
Root model for diagram elements. It stores classes, links, comments, and their relationships.
  • Constructor Details

    • DiagramModel

      public DiagramModel()
      Creates a diagram model instance.
  • Method Details

    • getAllLinks

      public Collection<LinkModel> getAllLinks()
      Returns the all links.
      Returns:
      the all links
    • getClasses

      public List<ClassModel> getClasses()
      Returns the classes.
      Returns:
      the classes
    • getComments

      public List<CommentModel> getComments()
      Returns the comments.
      Returns:
      the comments
    • getConceptualLinks

      public List<LinkModel> getConceptualLinks()
      Returns the conceptual links.
      Returns:
      the conceptual links
    • getTechnicalLinks

      public List<LinkModel> 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

      public void setClasses(List<ClassModel> classes)
      Sets the classes.
      Parameters:
      classes - values for classes
    • setComments

      public void setComments(List<CommentModel> comments)
      Sets the comments.
      Parameters:
      comments - values for comments
    • toString

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

      public void validateData()
      Validates the data before it is used.