|
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. |
|
LATEST_ON_BRANCH
For dynamic views only. |
|
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. |
|
VIEW_SELECTED_VERSION
For dynamic views only. |
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 LATEST_ON_BRANCH
Checkout the version of the file that is the latest on the branch even if that version is not currently selected by the view.
If the version selected by the view's config spec is not the latest
on the branch and neither LATEST_ON_BRANCH
nor
VIEW_SELECTED_VERSION
flags are specified, the checkout
operation will 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 automatic, dynamic and snapshot views.
public static final CcFile.CcCheckoutFlag RESERVED
public static final CcFile.CcCheckoutFlag VIEW_SELECTED_VERSION
Checkout the version of the file that is currently selected by the view, even if that version is not the latest on the branch.
If the version selected by the view's config spec is not the latest
on the branch and neither LATEST_ON_BRANCH
nor
VIEW_SELECTED_VERSION
flags are specified, the checkout
operation will will throw an exception with reason code
CHECKOUT_NOT_LATEST
.
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 Tue 29-Aug-2017 12:28 PM | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |