Class Diagram

    • Constructor Detail

      • Diagram

        public Diagram​(java.lang.String id,
                       java.lang.String name,
                       java.lang.Boolean discovered,
                       java.lang.String type,
                       java.lang.String description,
                       java.lang.String notes,
                       java.util.List<@Valid Tag> tags,
                       java.util.List<@Valid DiagramConnection> connections,
                       java.util.List<@Valid DiagramState> states)
    • Method Detail

      • getStates

        public <T extends DiagramState> java.util.List<T> getStates​(java.lang.String type)
      • getState

        public <T extends DiagramState> T getState​(java.lang.String type)
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface ObjectWithId
      • getName

        public java.lang.String getName()
      • getDiscovered

        public java.lang.Boolean getDiscovered()
      • getType

        public java.lang.String getType()
      • getDescription

        public java.lang.String getDescription()
      • getNotes

        public java.lang.String getNotes()
      • getTags

        public java.util.List<@Valid Tag> getTags()
      • getStates

        public java.util.List<@Valid DiagramState> getStates()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withId

        public Diagram withId​(java.lang.String id)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withName

        public Diagram withName​(java.lang.String name)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withDiscovered

        public Diagram withDiscovered​(java.lang.Boolean discovered)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withType

        public Diagram withType​(java.lang.String type)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withDescription

        public Diagram withDescription​(java.lang.String description)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withNotes

        public Diagram withNotes​(java.lang.String notes)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withTags

        public Diagram withTags​(java.util.List<@Valid Tag> tags)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withConnections

        public Diagram withConnections​(java.util.List<@Valid DiagramConnection> connections)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).
      • withStates

        public Diagram withStates​(java.util.List<@Valid DiagramState> states)
        Returns:
        a clone of this object, except with this updated property (returns this if an identical value is passed).