Package com.perforce.p4java.core.file
Enum FileSpecOpStatus
- java.lang.Object
-
- java.lang.Enum<FileSpecOpStatus>
-
- com.perforce.p4java.core.file.FileSpecOpStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileSpecOpStatus>
public enum FileSpecOpStatus extends java.lang.Enum<FileSpecOpStatus>
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.
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final FileSpecOpStatus UNKNOWN
Error / validity status is unknown; do not use the associated filespec.
-
VALID
public static final FileSpecOpStatus VALID
Operation completed normally; the associated filespec contains a valid Perforce filespec.
-
INFO
public static final FileSpecOpStatus INFO
The Perforce server or API client has generated a non-error message; the associated filespec contains the message.
-
CLIENT_ERROR
public static final FileSpecOpStatus CLIENT_ERROR
The Perforce client API detected a client-side error; the associated filespec contains the relevant error message.
-
ERROR
public static final FileSpecOpStatus ERROR
The Perforce server has detected an error; the associated filespec contains the error message.
-
-
Method Detail
-
values
public static FileSpecOpStatus[] 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 (FileSpecOpStatus c : FileSpecOpStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileSpecOpStatus 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
-
-