Package com.j3d.gen.docs
Enum Class Documentation
- All Implemented Interfaces:
Serializable,Comparable<Documentation>,Constable
Represents different documentation files available within da arp.
Each enum constant corresponds to a specific documentation topic,
providing its human-readable label, a unique file identifier,
and a reference to the actual documentation file on the file system.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDocumentation about the engine.Documentation about available commands.Documentation related to editing features.Guide for getting started with the engine.Documentation on mathematical concepts used in the engine. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JarPathThe actualFileobject pointing to the documentation file.private final StringThe unique identifier for the documentation file (e.g., "about").private final StringThe human-readable label for the documentation (e.g., "About").private static LinkedHashMap<String, Pair<String, JarPath>> A cached map of documentation files, keyed by their file ID. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDocumentation(String label, String id) Constructs a new Documentation enum constant. -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentationgetFile()Gets theFileobject associated with this documentation entry.Gets the unique file identifier for this documentation entry.getLabel()Gets the human-readable label for this documentation entry.static LinkedHashMap<String, Pair<String, JarPath>> toMap()Returns aLinkedHashMapcontaining all documentation entries, keyed by their file ID.static DocumentationReturns the enum constant of this class with the specified name.static Documentation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GETTING_STARTED
Guide for getting started with the engine. -
ABOUT
Documentation about the engine. -
EDITING
Documentation related to editing features. -
COMMANDS
Documentation about available commands. -
MATHS
Documentation on mathematical concepts used in the engine.
-
-
Field Details
-
MAP
-
fileId
The unique identifier for the documentation file (e.g., "about"). -
file
The actualFileobject pointing to the documentation file. -
label
The human-readable label for the documentation (e.g., "About").
-
-
Constructor Details
-
Documentation
Constructs a new Documentation enum constant.- Parameters:
label- The human-readable label for the documentation.id- The unique identifier used for the file name (e.g., "about" for "about.j3.md").
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toMap
Returns aLinkedHashMapcontaining all documentation entries, keyed by their file ID. Each value in the map is aPairwhere the first element is the human-readable label and the second element is the actualFileobject. The map is lazily initialised and cached.- Returns:
- A
LinkedHashMapmapping file IDs to aPairof label and file.
-
from
-
getFile
Gets theFileobject associated with this documentation entry.- Returns:
- The
Fileobject representing the documentation file.
-
getLabel
Gets the human-readable label for this documentation entry.- Returns:
- The label string.
-
getFileId
Gets the unique file identifier for this documentation entry. This ID is used to construct the file name.- Returns:
- The file ID string.
-