|
Project: stp | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
ObjectEnum<CcFile.CcCheckoutFlag>
CcFile.CcCheckoutFlag
public static enum CcFile.CcCheckoutFlag
Flags for the doCheckout
method.
Enum Constant Summary | |
---|---|
FALLBACK_TO_UNRESERVED
Fall back to unreserved if a reservation can not be obtained. |
|
LATEST_NOT_LOADED
Checkout the version of the file that is selected by the view's config spec. |
|
LOADED_NOT_LATEST
Checkout the version of the file that is currently loaded in the view, even if that version is not the version selected by the view's config spec. |
|
NON_MASTERED_OK
Indicates whether to checkout this file even if the currently selected branch is mastered by another replica. |
|
PRESERVE_HIJACK_CONTENTS
If the file is hijacked, keep the hijacked contents upon checkout. |
|
PRESERVE_MODIFICATION_TIME
After a file is 'checkedout', set the file's "last modified" time to be the time when the version was first created. |
|
RESERVED
Indicates whether to checkout this file reserved. |
Method Summary | |
---|---|
String |
toString()
|
static CcFile.CcCheckoutFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CcFile.CcCheckoutFlag[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CcFile.CcCheckoutFlag FALLBACK_TO_UNRESERVED
public static final CcFile.CcCheckoutFlag LATEST_NOT_LOADED
If the loaded version is not the version selected by the view's
config spec, and neither LOADED_NOT_LATEST
nor
LATEST_NOT_LOADED
flags are set, the checkout operation
will throw an exception with reason code CHECKOUT_NOT_LATEST
.
public static final CcFile.CcCheckoutFlag LOADED_NOT_LATEST
If the loaded version is not the version selected by the view's
config spec, and neither LOADED_NOT_LATEST
nor
LATEST_NOT_LOADED
flags are set, the checkout operation
will throw an exception with reason code CHECKOUT_NOT_LATEST
.
public static final CcFile.CcCheckoutFlag NON_MASTERED_OK
RESERVED
flag must NOT be set with this flag.
If the file is mastered by this replica, setting this flag has no effect.
public static final CcFile.CcCheckoutFlag PRESERVE_HIJACK_CONTENTS
public static final CcFile.CcCheckoutFlag PRESERVE_MODIFICATION_TIME
This applies only to dynamic views.
public static final CcFile.CcCheckoutFlag RESERVED
Method Detail |
---|
public String toString()
toString
in class Enum<CcFile.CcCheckoutFlag>
public static CcFile.CcCheckoutFlag 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 CcFile.CcCheckoutFlag[] values()
for (CcFile.CcCheckoutFlag c : CcFile.CcCheckoutFlag.values()) System.out.println(c);
|
Generated Fri 15-Nov-2013 12:48 AM | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |