Class Database.Listable
java.lang.Object
edu.uky.cs.nil.tt.Database.Entry
edu.uky.cs.nil.tt.Database.Listable
- All Implemented Interfaces:
Named
- Direct Known Subclasses:
Database.AgentEntry, Database.WorldEntry
- Enclosing class:
Database
A listable
entry is one that can either be set as clearly
publicly available (listed) or not clearly available (unlisted). Unlisted
elements are still available, but their existence is not not advertised.- Author:
- Stephen G. Ware
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Database.Entry
getDescription, getName, getTitle, setDescription, setTitle, toString
-
Constructor Details
-
Listable
Constructs a listable entry with a given name.- Parameters:
name- system name for this entry
-
-
Method Details
-
getListed
public boolean getListed()Returns whether this entry should advertise itself as being available (listed) or whether this entry should not advertise that is is available (unlisted).- Returns:
- true is this entry is listed, false otherwise
-
setListed
protected void setListed(boolean value) Sets whether this entry islisted.- Parameters:
value- whether or not this entry should advertise that it is available
-