Package org.refcodes.data
Enum FilenameExtension
- java.lang.Object
-
- java.lang.Enum<FilenameExtension>
-
- org.refcodes.data.FilenameExtension
-
- All Implemented Interfaces:
org.refcodes.mixin.FilenameExtensionAccessor
public enum FilenameExtension extends java.lang.Enum<FilenameExtension> implements org.refcodes.mixin.FilenameExtensionAccessor
TheFilenameExtension
define values useful when working with files or a file-system.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.FilenameExtensionAccessor
org.refcodes.mixin.FilenameExtensionAccessor.FilenameExtensionBuilder<B extends org.refcodes.mixin.FilenameExtensionAccessor.FilenameExtensionBuilder<B>>, org.refcodes.mixin.FilenameExtensionAccessor.FilenameExtensionMutator, org.refcodes.mixin.FilenameExtensionAccessor.FilenameExtensionProperty
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFilenameExtension()
Gets the extension.static FilenameExtension
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FilenameExtension[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEMP
public static final FilenameExtension TEMP
-
BACKUP
public static final FilenameExtension BACKUP
-
TAR
public static final FilenameExtension TAR
-
GZIP
public static final FilenameExtension GZIP
-
TAR_GZIP
public static final FilenameExtension TAR_GZIP
-
CSV
public static final FilenameExtension CSV
-
JAR
public static final FilenameExtension JAR
-
ZIP
public static final FilenameExtension ZIP
-
SH
public static final FilenameExtension SH
-
CIPHER_VERSION
public static final FilenameExtension CIPHER_VERSION
The file suffix used for files containing a single cipher version.
-
PROPERTIES
public static final FilenameExtension PROPERTIES
-
JSON
public static final FilenameExtension JSON
-
TOML
public static final FilenameExtension TOML
-
YAML
public static final FilenameExtension YAML
-
XML
public static final FilenameExtension XML
-
INI
public static final FilenameExtension INI
Windows configuration filename extension.
-
-
Method Detail
-
values
public static FilenameExtension[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FilenameExtension c : FilenameExtension.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FilenameExtension valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFilenameExtension
public java.lang.String getFilenameExtension()
Gets the extension.- Specified by:
getFilenameExtension
in interfaceorg.refcodes.mixin.FilenameExtensionAccessor
- Returns:
- the extension
-
-