public class ClassIndex extends Object
Modifier and Type | Field and Description |
---|---|
(package private) String |
CLASS_INDEX_FILE
Name of file with class information.
|
(package private) ArrayList<ClassType> |
classTypeList
Array of ClassInfo records.
|
(package private) static ClassIndex |
instance
The singleton class instance.
|
Modifier | Constructor and Description |
---|---|
protected |
ClassIndex()
Constructor (read from dedicated file).
|
Modifier and Type | Method and Description |
---|---|
ClassType |
get(int index) |
static ClassIndex |
getInstance()
Access the singleton class instance.
|
ClassType |
getTypeFromName(String name)
Get ClassType for a given class name.
|
ClassType |
getTypeFromTitle(String title)
Get ClassType for a given class title.
|
static void |
main(String[] args)
Main test method.
|
int |
size() |
final String CLASS_INDEX_FILE
static ClassIndex instance
protected ClassIndex() throws IOException
IOException
public int size()
public ClassType get(int index)
public static ClassIndex getInstance()
public ClassType getTypeFromTitle(String title)
public static void main(String[] args)