Project: stp

com.ibm.rational.wvcm.stp.cc
Enum CcFile.RefreshFlag

Object
  extended by Enum<CcFile.RefreshFlag>
      extended by CcFile.RefreshFlag
All Implemented Interfaces:
com.ibm.rational.wvcm.stpex.StpExEnumeration, Serializable, Comparable<CcFile.RefreshFlag>
Enclosing interface:
CcFile

public static enum CcFile.RefreshFlag
extends Enum<CcFile.RefreshFlag>
implements com.ibm.rational.wvcm.stpex.StpExEnumeration

Flags for the doRefresh and doRestore methods.


Enum Constant Summary
KEEP_HIJACKS
          Do not refresh hijacked files.
OVERWRITE_HIJACKS
          If a file being refreshed is hijacked in this view, overwrite the hijacked contents with the new version's contents.
PRESERVE_CREATION_TIME
          When refreshing a file to a different version, set the file's "last modified" time to be the time when the version was created.
PREVIEW_ONLY
          Preview the refresh operation, but don't actually perform it.
RENAME_HIJACKS
          If a file being refreshed is hijacked in this view, preserve the hijacked contents by moving the hijacked file to .keep.
 
Method Summary
 String toString()
           
static CcFile.RefreshFlag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CcFile.RefreshFlag[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

KEEP_HIJACKS

public static final CcFile.RefreshFlag KEEP_HIJACKS
Do not refresh hijacked files. Leave hijacked files in the hijacked state, and do not alter their contents.

Note: a deleted file or directory is considered to be hijacked. In order to refresh or restore a deleted file or directory, you must specify OVERWRITE_HIJACKS or RENAME_HIJACKS.

This is the default hijack behavior for both doRefresh and doRestore.


OVERWRITE_HIJACKS

public static final CcFile.RefreshFlag OVERWRITE_HIJACKS
If a file being refreshed is hijacked in this view, overwrite the hijacked contents with the new version's contents. Do not preserve the hijacked contents.


PRESERVE_CREATION_TIME

public static final CcFile.RefreshFlag PRESERVE_CREATION_TIME
When refreshing a file to a different version, set the file's "last modified" time to be the time when the version was created. By default, a refreshed file's "last modified" time will simply be the time when the doRefresh was performed.


PREVIEW_ONLY

public static final CcFile.RefreshFlag PREVIEW_ONLY
Preview the refresh operation, but don't actually perform it. Invoke the caller's feedback methods to inform them what the refresh would do if it were performed right now.


RENAME_HIJACKS

public static final CcFile.RefreshFlag RENAME_HIJACKS
If a file being refreshed is hijacked in this view, preserve the hijacked contents by moving the hijacked file to .keep.

Method Detail

toString

public String toString()
Overrides:
toString in class Enum<CcFile.RefreshFlag>

valueOf

public static CcFile.RefreshFlag valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

values

public static final CcFile.RefreshFlag[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CcFile.RefreshFlag c : CcFile.RefreshFlag.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

Generated Thu 24-Sep-2009 06:56 AM

Copyright © IBM 2009. All rights reserved.