Package fr.tiogars.template.model
Class Template
java.lang.Object
fr.tiogars.template.model.Template
Represents a template with an identifier, code, name, and description.
This class provides a basic model for managing template data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Gets the code of this template.Gets the description of this template.intgetId()Gets the unique identifier of this template.getName()Gets the name of this template.voidSets the code of this template.voidsetDescription(String description) Sets the description of this template.voidsetId(int id) Sets the unique identifier of this template.voidSets the name of this template.toString()Returns a string representation of this template.
-
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
Gets the code of this template.- Returns:
- the template code
-
setCode
Sets the code of this template.- Parameters:
code- the template code to set
-
getName
Gets the name of this template.- Returns:
- the template name
-
setName
Sets the name of this template.- Parameters:
name- the template name to set
-
getDescription
Gets the description of this template.- Returns:
- the template description
-
setDescription
Sets the description of this template.- Parameters:
description- the template description to set
-
toString
Returns a string representation of this template.
-