Enum Class FileAttributeType

java.lang.Object
java.lang.Enum<FileAttributeType>
ghidra.formats.gfilesystem.fileinfo.FileAttributeType
All Implemented Interfaces:
Serializable, Comparable<FileAttributeType>, Constable

public enum FileAttributeType extends Enum<FileAttributeType>
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.

  • Enum Constant Details

  • Method Details

    • values

      public static FileAttributeType[] 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

      public static FileAttributeType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDisplayName

      public String getDisplayName()
      Returns the display name of this attribute type.
      Returns:
      string display name
    • getGroup

      public FileAttributeTypeGroup getGroup()
      Returns the group this attribute belongs in.
      Returns:
      FileAttributeTypeGroup
    • getValueType

      public Class<?> getValueType()
      Returns the class the value should match.
      Returns:
      expected class of the value