Enum Class FileAttributeType
- All Implemented Interfaces:
Serializable
,Comparable<FileAttributeType>
,Constable
Well known types of file attributes.
Uncommon information about a file should be added to the FileAttributes
collection
as an UNKNOWN_ATTRIBUTE
with a custom display name.
When adding new attribute types to this enum, add them adjacent to other types of the same
category
. The enum ordinal controls display ordering.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name of this attribute type.getGroup()
Returns thegroup
this attribute belongs in.Class<?>
Returns the class the value should match.static FileAttributeType
Returns the enum constant of this class with the specified name.static FileAttributeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FSRL_ATTR
-
NAME_ATTR
-
PATH_ATTR
-
FILE_TYPE_ATTR
-
PROJECT_FILE_ATTR
-
SIZE_ATTR
-
COMPRESSED_SIZE_ATTR
-
CREATE_DATE_ATTR
-
MODIFIED_DATE_ATTR
-
ACCESSED_DATE_ATTR
-
USER_NAME_ATTR
-
USER_ID_ATTR
-
GROUP_NAME_ATTR
-
GROUP_ID_ATTR
-
UNIX_ACL_ATTR
-
IS_ENCRYPTED_ATTR
-
HAS_GOOD_PASSWORD_ATTR
-
SYMLINK_DEST_ATTR
-
COMMENT_ATTR
-
UNKNOWN_ATTRIBUTE
-
-
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
-
getDisplayName
Returns the display name of this attribute type.- Returns:
- string display name
-
getGroup
Returns thegroup
this attribute belongs in.- Returns:
FileAttributeTypeGroup
-
getValueType
Returns the class the value should match.- Returns:
- expected class of the value
-