Enum Class Capability
- All Implemented Interfaces:
Serializable, Comparable<Capability>, Constable
An enumeration of capabilities that may be available in various components.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates if aFileStorecan create (sub-)directories.Indicates if aFileStorecan create files.Indicates if aFileStorecan delete files.Indicates if a nibble device can encode data.Indicates if a nibble device can format a track (write out markers, for example).Indicates if aSourcecan be saved.Indicates if aFileStoresupports (sub-)directories.Indicates if thisFileStoresupports resource forks.Indicates if this device can write a block.Indicates if aFileStorecan write files.Indicates if this device can write a sector.Indicates if a nibble device can write a track. -
Method Summary
Modifier and TypeMethodDescriptionstatic CapabilityReturns the enum constant of this class with the specified name.static Capability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENCODE
Indicates if a nibble device can encode data. -
WRITE_TRACK
Indicates if a nibble device can write a track. -
FORMAT_TRACK
Indicates if a nibble device can format a track (write out markers, for example). -
WRITE_SECTOR
Indicates if this device can write a sector. -
WRITE_BLOCK
Indicates if this device can write a block. -
SAVE_SOURCE
Indicates if aSourcecan be saved. This can be impacted by how it was created or loaded. -
CREATE_FILES
Indicates if aFileStorecan create files. -
DELETE_FILES
Indicates if aFileStorecan delete files. -
WRITE_FILES
Indicates if aFileStorecan write files. -
SUPPORTS_DIRECTORIES
Indicates if aFileStoresupports (sub-)directories. -
CREATE_DIRECTORIES
Indicates if aFileStorecan create (sub-)directories. -
SUPPORTS_RESOURCE_FORKS
Indicates if thisFileStoresupports resource forks.
-
-
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
-