Package com.perforce.p4java.core.file
Enum Class FileSpecOpStatus
- All Implemented Interfaces:
Serializable,Comparable<FileSpecOpStatus>,Constable
Statuses representing the result of a particular Perforce
file-based operation.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Perforce client API detected a client-side error; the associated filespec contains the relevant error message.The Perforce server has detected an error; the associated filespec contains the error message.The Perforce server or API client has generated a non-error message; the associated filespec contains the message.Error / validity status is unknown; do not use the associated filespec.Operation completed normally; the associated filespec contains a valid Perforce filespec. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSpecOpStatusReturns the enum constant of this class with the specified name.static FileSpecOpStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Error / validity status is unknown; do not use the associated filespec. -
VALID
Operation completed normally; the associated filespec contains a valid Perforce filespec. -
INFO
The Perforce server or API client has generated a non-error message; the associated filespec contains the message. -
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.
-
-
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
-