Class Entry
java.lang.Object
edu.uky.cs.nil.tt.Entry
- Direct Known Subclasses:
Database.Listable
An entry is a publicly available object that has a
name, title,
and description.- Author:
- Stephen G. Ware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a human-readable natural language description of the object.final StringgetName()Returns this object's unique name that distinguishes it from other objects of the same type in the same context.getTitle()Returns a short human-readable natural language title for the object.inthashCode()voidsetDescription(String description) Sets thedescriptionof this object.voidSets thetitleof this object.toString()
-
Constructor Details
-
Entry
Constructs an entry from its name, title, and description.- Parameters:
name- the unique systemnamefor this element, which is primarily used internally by the servertitle- a short natural language phrase for this element that will be displayed to usersdescription- a short natural language statement explaining the details of this element that will be displayed to users- Throws:
NullPointerException- if the name is null
-
Entry
Constructs an entry using the meta-data of another object.- Parameters:
titled- the object whose name, title, and description will be copied- Throws:
NullPointerException- if the object's name is null
-
Entry
-
-
Method Details
-
equals
-
hashCode
-
toString
-
getName
-
getTitle
-
setTitle
-
getDescription
Description copied from interface:DescribedReturns a human-readable natural language description of the object.- Specified by:
getDescriptionin interfaceDescribed- Returns:
- a human-readable natural language description of the object
-
setDescription
Sets thedescriptionof this object.- Parameters:
description- a short natural language statement explaining the details of this element that will be displayed to users
-