Class Template

java.lang.Object
fr.tiogars.template.model.Template

public class Template extends Object
Represents a template with an identifier, code, name, and description. This class provides a basic model for managing template data.
  • Constructor Details

    • Template

      public Template()
      Constructs a new Template with default values. All fields are initialized to their default values (0 for int, null for String).
  • Method Details

    • getId

      public int getId()
      Gets the unique identifier of this template.
      Returns:
      the template id
    • setId

      public void setId(int id)
      Sets the unique identifier of this template.
      Parameters:
      id - the template id to set
    • getCode

      public String getCode()
      Gets the code of this template.
      Returns:
      the template code
    • setCode

      public void setCode(String code)
      Sets the code of this template.
      Parameters:
      code - the template code to set
    • getName

      public String getName()
      Gets the name of this template.
      Returns:
      the template name
    • setName

      public void setName(String name)
      Sets the name of this template.
      Parameters:
      name - the template name to set
    • getDescription

      public String getDescription()
      Gets the description of this template.
      Returns:
      the template description
    • setDescription

      public void setDescription(String description)
      Sets the description of this template.
      Parameters:
      description - the template description to set
    • toString

      public String toString()
      Returns a string representation of this template.
      Overrides:
      toString in class Object
      Returns:
      a string containing all template fields