Class ClassIndex
java.lang.Object
ClassIndex
Index of supported character class types (singleton pattern).
- Since:
- 2014-05-22
-
Field Summary
Modifier and TypeFieldDescription(package private) final String
Name of file with class information.(package private) ClassType[]
Array of ClassInfo records.(package private) static ClassIndex
The singleton class instance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassIndex
Access the singleton class instance.getTypeFromName
(String name) Get ClassType for a given class name.getTypeFromTitle
(String title) Get ClassType for a given class title.static void
Main test method.
-
Field Details
-
CLASS_INDEX_FILE
Name of file with class information.- See Also:
-
instance
The singleton class instance. -
classTypeList
ClassType[] classTypeListArray of ClassInfo records.
-
-
Constructor Details
-
ClassIndex
Constructor (read from dedicated file).- Throws:
IOException
-
-
Method Details
-
getInstance
Access the singleton class instance. -
getTypeFromName
Get ClassType for a given class name. -
getTypeFromTitle
Get ClassType for a given class title. -
main
Main test method.
-