public enum FileSpecOpStatus extends java.lang.Enum<FileSpecOpStatus>
The intention here is that this enum flags the associated Perforce filespec as either a valid (normal) file operation result (i.e. a file stat, etc.), or an error. The enums represent statuses that are usually, but not always, generated by the server; CLIENT_ERROR statuses are generated in the P4Java API itself and represent problems it had on the Perforce client under the command of the Perforce server. These errors are typically such things as being unable to open a client-side file, etc.
Enum Constant and Description |
---|
CLIENT_ERROR
The Perforce client API detected a client-side error; the
associated filespec contains the relevant error message.
|
ERROR
The Perforce server has detected an error; the associated
filespec contains the error message.
|
INFO
The Perforce server or API client has generated a non-error
message; the associated filespec contains the message.
|
UNKNOWN
Error / validity status is unknown; do not use the
associated filespec.
|
VALID
Operation completed normally; the associated filespec
contains a valid Perforce filespec.
|
Modifier and Type | Method and Description |
---|---|
static FileSpecOpStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileSpecOpStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileSpecOpStatus UNKNOWN
public static final FileSpecOpStatus VALID
public static final FileSpecOpStatus INFO
public static final FileSpecOpStatus CLIENT_ERROR
public static final FileSpecOpStatus ERROR
public static FileSpecOpStatus[] values()
for (FileSpecOpStatus c : FileSpecOpStatus.values()) System.out.println(c);
public static FileSpecOpStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null