public enum PathAction extends Enum<PathAction>
| Enum Constant and Description |
|---|
ADDED |
DELETED |
ERROR |
MISSING |
MODIFIED |
NOOP |
REPLACED |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetItem()
Returns true if it is safe to get the item at the referenced path based on this action type.
|
static PathAction |
fromShortCode(String shortCode)
Lookup an action type by the short code.
|
String |
getShortCode()
Get the short code reported by filevault.
|
boolean |
isNoop()
Returns true if this is the NOOP action type.
|
boolean |
isUnknown()
Returns true if this is the
UNKNOWN fallback action type. |
String |
toString() |
static PathAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PathAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PathAction NOOP
public static final PathAction MODIFIED
public static final PathAction REPLACED
public static final PathAction ERROR
public static final PathAction ADDED
public static final PathAction DELETED
public static final PathAction MISSING
public static final PathAction UNKNOWN
public static PathAction[] values()
for (PathAction c : PathAction.values()) System.out.println(c);
public static PathAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getShortCode()
public boolean isNoop()
public boolean isUnknown()
UNKNOWN fallback action type. This type may be reported in the future if a
new filevault action code is introduced that isn't recognized by oakpal.public boolean canGetItem()
public String toString()
toString in class Enum<PathAction>public static PathAction fromShortCode(String shortCode)
shortCode - the short codeUNKNOWNCopyright © 2017–2020. All rights reserved.