Package jline.lang
Class Model
java.lang.Object
jline.lang.Model
- All Implemented Interfaces:
Serializable
Class representing a model supported by the library
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of this model.Gets the LINE version associated with this model.voidSets the name of this model.voidsetVersion(String version) Sets the LINE version for this model.
-
Constructor Details
-
Model
Creates a new model with the specified name. Sets the locale to US and initializes the LINE version from GlobalConstants.- Parameters:
modelName- the name to assign to this model
-
-
Method Details
-
getName
Gets the name of this model.- Returns:
- the model name
-
setName
Sets the name of this model.- Parameters:
setName- the new name for this model
-
getVersion
Gets the LINE version associated with this model.- Returns:
- the LINE version string
-
setVersion
Sets the LINE version for this model.- Parameters:
version- the LINE version string
-