Class Database.Entry
java.lang.Object
edu.uky.cs.nil.tt.Database.Entry
- All Implemented Interfaces:
Named
- Direct Known Subclasses:
Database.Listable
- Enclosing class:
Database
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(Database.Entry other) Constructs a database entry that copies the meta-data of an existing database entry.Constructs a database entry from only aname.Constructs a database entry with the given meta-data. -
Method Summary
Modifier and TypeMethodDescriptionReturns this entry's description, which is a longer explanation of what this entity provides meant to help human users decide if they are interested in this entity.getName()Returns this object's unique name that distinguishes it from other objects of the same type in the same context.getTitle()Returns this entry's title, which is a short name meant to be reader by human users.protected voidsetDescription(String description) Sets thedescriptionof this entry.protected voidSets thetitleof this entry.toString()
-
Constructor Details
-
Entry
Constructs a database entry with the given meta-data.- Parameters:
name- the system name for this entrytitle- the title for the entry that will be shown to usersdescription- the longer description of the entry that will be shown to users
-
Entry
-
Entry
Constructs a database entry that copies the meta-data of an existing database entry.- Parameters:
other- another database entry whose meta-data will be copied
-
-
Method Details
-
toString
-
getName
-
getTitle
Returns this entry's title, which is a short name meant to be reader by human users.- Returns:
- the title
-
setTitle
-
getDescription
Returns this entry's description, which is a longer explanation of what this entity provides meant to help human users decide if they are interested in this entity.- Returns:
- the description
-
setDescription
Sets thedescriptionof this entry.- Parameters:
description- the new description
-