|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FileAction>
com.perforce.p4java.core.file.FileAction
public enum FileAction
Defines the possible Perforce actions that can be associated with a Perforce file, including synchronization actions. Also used to indicate open status for files on pending changelists, resolve status, etc.
Basically self-explanatory if you have much experience with Perforce, but if not, the main Perforce documentation goes into great detail about each of these actions.
Enum Constant Summary | |
---|---|
ABANDONED
|
|
ADD
|
|
ADDED
|
|
BRANCH
|
|
COPY_FROM
|
|
DELETE
|
|
DELETED
|
|
EDIT
|
|
EDIT_FROM
|
|
EDIT_IGNORED
|
|
IGNORED
|
|
IMPORT
|
|
INTEGRATE
|
|
MERGE_FROM
|
|
MOVE
|
|
MOVE_ADD
|
|
MOVE_DELETE
|
|
PURGE
|
|
REFRESHED
|
|
REPLACED
|
|
RESOLVED
|
|
SYNC
|
|
UNKNOWN
|
|
UNRESOLVED
|
|
UPDATED
|
Method Summary | |
---|---|
static FileAction |
fromString(String str)
A user-friendly fail-safe way to convert from strings to file actions without generating exceptions, etc. |
String |
toString()
Provide a string representation that looks like the same actions seen through the p4 command interpreter rather than the raw enum. |
static FileAction |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FileAction[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FileAction ADD
public static final FileAction BRANCH
public static final FileAction EDIT
public static final FileAction INTEGRATE
public static final FileAction DELETE
public static final FileAction SYNC
public static final FileAction UPDATED
public static final FileAction ADDED
public static final FileAction REFRESHED
public static final FileAction REPLACED
public static final FileAction DELETED
public static final FileAction IGNORED
public static final FileAction ABANDONED
public static final FileAction EDIT_IGNORED
public static final FileAction MOVE
public static final FileAction MOVE_ADD
public static final FileAction MOVE_DELETE
public static final FileAction RESOLVED
public static final FileAction UNRESOLVED
public static final FileAction COPY_FROM
public static final FileAction MERGE_FROM
public static final FileAction EDIT_FROM
public static final FileAction PURGE
public static final FileAction IMPORT
public static final FileAction UNKNOWN
Method Detail |
---|
public static FileAction[] values()
for (FileAction c : FileAction.values()) System.out.println(c);
public static FileAction valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static FileAction fromString(String str)
str
- upper, lower, or mixed-case candidate string, or null
public String toString()
toString
in class Enum<FileAction>
Enum.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |