Enum FileAttributeType
- java.lang.Object
-
- java.lang.Enum<FileAttributeType>
-
- ghidra.formats.gfilesystem.fileinfo.FileAttributeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileAttributeType>
public enum FileAttributeType extends java.lang.Enum<FileAttributeType>
Well known types of file attributes.Uncommon information about a file should be added to the
FileAttributes
collection as anUNKNOWN_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.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayName()
Returns the display name of this attribute type.FileAttributeTypeGroup
getGroup()
Returns thegroup
this attribute belongs in.java.lang.Class<?>
getValueType()
Returns the class the value should match.static FileAttributeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileAttributeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FSRL_ATTR
public static final FileAttributeType FSRL_ATTR
-
NAME_ATTR
public static final FileAttributeType NAME_ATTR
-
PATH_ATTR
public static final FileAttributeType PATH_ATTR
-
FILE_TYPE_ATTR
public static final FileAttributeType FILE_TYPE_ATTR
-
PROJECT_FILE_ATTR
public static final FileAttributeType PROJECT_FILE_ATTR
-
SIZE_ATTR
public static final FileAttributeType SIZE_ATTR
-
COMPRESSED_SIZE_ATTR
public static final FileAttributeType COMPRESSED_SIZE_ATTR
-
CREATE_DATE_ATTR
public static final FileAttributeType CREATE_DATE_ATTR
-
MODIFIED_DATE_ATTR
public static final FileAttributeType MODIFIED_DATE_ATTR
-
ACCESSED_DATE_ATTR
public static final FileAttributeType ACCESSED_DATE_ATTR
-
USER_NAME_ATTR
public static final FileAttributeType USER_NAME_ATTR
-
USER_ID_ATTR
public static final FileAttributeType USER_ID_ATTR
-
GROUP_NAME_ATTR
public static final FileAttributeType GROUP_NAME_ATTR
-
GROUP_ID_ATTR
public static final FileAttributeType GROUP_ID_ATTR
-
UNIX_ACL_ATTR
public static final FileAttributeType UNIX_ACL_ATTR
-
IS_ENCRYPTED_ATTR
public static final FileAttributeType IS_ENCRYPTED_ATTR
-
HAS_GOOD_PASSWORD_ATTR
public static final FileAttributeType HAS_GOOD_PASSWORD_ATTR
-
SYMLINK_DEST_ATTR
public static final FileAttributeType SYMLINK_DEST_ATTR
-
COMMENT_ATTR
public static final FileAttributeType COMMENT_ATTR
-
UNKNOWN_ATTRIBUTE
public static final FileAttributeType UNKNOWN_ATTRIBUTE
-
-
Method Detail
-
values
public static FileAttributeType[] 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 (FileAttributeType c : FileAttributeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileAttributeType 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
-
getDisplayName
public java.lang.String getDisplayName()
Returns the display name of this attribute type.- Returns:
- string display name
-
getGroup
public FileAttributeTypeGroup getGroup()
Returns thegroup
this attribute belongs in.- Returns:
FileAttributeTypeGroup
-
getValueType
public java.lang.Class<?> getValueType()
Returns the class the value should match.- Returns:
- expected class of the value
-
-