Class ConletBaseModel

java.lang.Object
org.jgrapes.webconsole.base.ConletBaseModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HelloWorldConlet.HelloWorldModel, MarkdownDisplayConlet.MarkdownDisplayModel

public class ConletBaseModel extends Object implements Serializable
Defines a web console component base model following the JavaBean conventions.

Conlet models should follow these conventions because many template engines rely on them. Besides, following these conventions often simplifies serialization to portable formats.

This base class defines conletId as only property. Additionally, it overrides hashCode() and equals(Object) using the conletId as single criterion.

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getConletId

      public String getConletId()
      Returns the web console component id.
      Returns:
      the web console component id
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the int
    • equals

      public boolean equals(Object obj)
      Two objects are equal if they have equal web console component ids.
      Overrides:
      equals in class Object
      Parameters:
      obj - the other object
      Returns:
      the result