|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.CheckoutOptions
Maintains the checkout options used by CheckoutManager.
CheckoutManager| Field Summary | |
static int |
EOL_CR
Carriage-return |
static int |
EOL_CRLF
Carriage-return + Line-feed end-of-line sequence. |
static int |
EOL_LF
Line-feed end-of-line |
| Constructor Summary | |
CheckoutOptions(CheckoutOptions options)
Construct a CheckoutOptions object with the same options as the given one. |
|
CheckoutOptions(StarTeamClientOptions options)
Construct a CheckoutOptions object with default options from a StarTeamClientOptions object. |
|
CheckoutOptions(View view)
Construct a CheckoutOptions object with default options from the View. |
|
| Method Summary | |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
OLEDate |
getCheckoutDate()
Get OLEDate value for "checkout by date" option. |
int |
getCheckoutLabelID()
Get Label ID for "checkout by Label" option. |
ContentFilter |
getContentFilter()
Get the hook to be inserted after performing keyword expansion, eol conversion, etc. |
int |
getEOLChars()
Get the contant value that represents the actual end-of-line sequence to be in EOL conversion. |
boolean |
getEOLConversionEnabled()
Return whether EOL conversion is enabled when checking out text files. |
java.lang.String |
getFileEncoding()
Returns the "File Encoding" option value. |
boolean |
getForceCheckout()
Returns the "Force Checkout" option value. |
boolean |
getKeywordExpansionEnabled()
Determin whether keyword expansion in text files is enabled. |
int |
getLockType()
Return the type of lock to be used when checking out. |
boolean |
getMarkUnlockedFilesReadOnly()
Returns the "Mark Unlocked Files ReadOnly" option value. |
boolean |
getOptimizeForSlowConnections()
Determine whether to optimize for slow connections, when possible. |
int |
getPromotionStateID()
Get the PromotionState ID for "checkout by PromotionState" option. |
boolean |
getRestoreFileOnError()
Determine whether to restore previous working file if an error occurs during a checkout. |
boolean |
getTimeStampNow()
Return whether the current time is used as the last modified time. |
boolean |
getUpdateStatus()
Determine whether to update status information after a successful checkout. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isByDate()
Determines whether "checkout by date" option is used. |
boolean |
isByLabel()
Determines whether "checkout by Label" option is used. |
boolean |
isByPromotionState()
Determines whether "checkout by PromotionState" option is used. |
boolean |
isByTips()
Determine which file revision is checked out. |
boolean |
isFileSkipped()
Returns whether to skip checking out files or the file associated with this CheckoutOptions object. |
void |
setCheckoutDate(OLEDate d)
Set to "checkout by date" on the given OLEDate value. |
void |
setCheckoutLabelID(int labelID)
Set to "checkout by Label" on the given Label ID. |
void |
setContentFilter(ContentFilter filter)
Set the hook inserted after performing keyword expansion, eol conversion, etc. |
void |
setEOLChars(int eol)
The end-of-line sequence to use when EOL conversion is enabled. |
void |
setEOLConversionEnabled(boolean bEnabled)
Set to enable EOL conversion when checking out text files. |
void |
setFileEncoding(java.lang.String sEncoding)
Sets the "File Encoding" option value. |
void |
setFileSkipped(boolean bFileSkipped)
Sets whether to skip checking out files or the file associated with this CheckoutOptions object. |
void |
setForceCheckout(boolean bForceCheckout)
Sets the "Force Checkout" option value. |
void |
setKeywordExpansionEnabled(boolean bEnabled)
Set to enable keyword expansion in text files. |
void |
setLockType(int lockType)
Set the type of lock to be used when checking out. |
void |
setMarkUnlockedFilesReadOnly(boolean bMarkUnlockedFilesReadOnly)
Sets the "Mark Unlocked Files ReadOnly" option value. |
void |
setOptimizeForSlowConnections(boolean bEnabled)
Set whether to optimize for slow connections, when possible. |
void |
setPromotionStateID(int stateID)
Set to "checkout by PromotionState" on the given PromotionState ID. |
void |
setRestoreFileOnError(boolean bEnabled)
Set to restore previous working file if an error occurs during a checkout. |
void |
setTimeStampNow(boolean bTimeStampNow)
Set to use the current time as the last modified time. |
void |
setTips()
Determines which file revision is checked out. |
void |
setUpdateStatus(boolean bEnabled)
Set to whether to update status information after a successful checkout. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int EOL_CR
public static final int EOL_LF
public static final int EOL_CRLF
| Constructor Detail |
public CheckoutOptions(View view)
view - a View object where the values of the options are picked up.CheckoutManager.getOptions(),
Viewpublic CheckoutOptions(StarTeamClientOptions options)
options - a StarTeamClientOptions where the values of the options are picked up.CheckoutManager.getOptions(),
StarTeamClientOptions.loadDefault()public CheckoutOptions(CheckoutOptions options)
options - a CheckoutOptions where the values of the options are picked up.CheckoutManager.getOptions()| Method Detail |
public void setLockType(int lockType)
lockType - the type of lock to be used when checking out.Item.LockTypepublic int getLockType()
public void setTimeStampNow(boolean bTimeStampNow)
bTimeStampNow - if true will use current time.public boolean getTimeStampNow()
public void setEOLConversionEnabled(boolean bEnabled)
bEnabled - if true will enable EOL conversion.public boolean getEOLConversionEnabled()
public void setEOLChars(int eol)
eol - the value that represents an end-of-line sequence. It may be one of these
values: EOL_CRLF, EOL_CR, and EOL_LF.CheckoutOptions.getEOLChars(),
CheckoutOptions.EOL_CRLF,
CheckoutOptions.EOL_CR,
CheckoutOptions.EOL_LFpublic int getEOLChars()
CheckoutOptions.setEOLChars(int),
CheckoutOptions.EOL_CRLF,
CheckoutOptions.EOL_CR,
CheckoutOptions.EOL_LFpublic void setUpdateStatus(boolean bEnabled)
bEnabled - True to update status information after a successful checkout; false, otherwise.public boolean getMarkUnlockedFilesReadOnly()
public void setMarkUnlockedFilesReadOnly(boolean bMarkUnlockedFilesReadOnly)
bMarkUnlockedFilesReadOnly - the "Mark Unlocked Files ReadOnly" option value.CheckoutListener.onStartFile(com.starbase.starteam.CheckoutEvent)public boolean getForceCheckout()
public void setForceCheckout(boolean bForceCheckout)
bForceCheckout - the "Force Checkout" option value.public java.lang.String getFileEncoding()
public void setFileEncoding(java.lang.String sEncoding)
sEncoding - the "File Encoding" option value.CheckoutListener.onStartFile(com.starbase.starteam.CheckoutEvent)public boolean isFileSkipped()
public void setFileSkipped(boolean bFileSkipped)
bFileSkipped - whether to skip checking out files or the file associated with this CheckoutOptions
object.CheckoutListener.onStartFile(com.starbase.starteam.CheckoutEvent)public boolean getUpdateStatus()
public void setKeywordExpansionEnabled(boolean bEnabled)
bEnabled - True to use keyword expand in text files; false, otherwise.public boolean getKeywordExpansionEnabled()
public void setTips()
CheckoutOptions.isByTips(),
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setCheckoutLabelID(int),
CheckoutOptions.setPromotionStateID(int)public boolean isByTips()
CheckoutOptions.setTips()public void setCheckoutDate(OLEDate d)
d - the OLEDate value to be used for the "checkout by date" option.CheckoutOptions.isByDate(),
CheckoutOptions.setCheckoutLabelID(int),
CheckoutOptions.setPromotionStateID(int)public boolean isByDate()
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setCheckoutLabelID(int),
CheckoutOptions.setPromotionStateID(int)public OLEDate getCheckoutDate()
CheckoutOptions.isByDate(),
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setCheckoutLabelID(int),
CheckoutOptions.setPromotionStateID(int)public void setCheckoutLabelID(int labelID)
labelID - the Label ID to be used for the "checkout by Label" option.CheckoutOptions.isByLabel(),
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setPromotionStateID(int)public boolean isByLabel()
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setCheckoutLabelID(int),
CheckoutOptions.setPromotionStateID(int)public int getCheckoutLabelID()
CheckoutOptions.isByLabel(),
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setCheckoutLabelID(int),
CheckoutOptions.setPromotionStateID(int)public void setPromotionStateID(int stateID)
stateID - the PromotionState ID to be used for the "checkout by PromotionState" option.CheckoutOptions.isByPromotionState(),
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setCheckoutLabelID(int)public boolean isByPromotionState()
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setCheckoutLabelID(int),
CheckoutOptions.setPromotionStateID(int)public int getPromotionStateID()
CheckoutOptions.isByPromotionState(),
CheckoutOptions.setCheckoutDate(com.starbase.util.OLEDate),
CheckoutOptions.setCheckoutLabelID(int),
CheckoutOptions.setPromotionStateID(int)public void setOptimizeForSlowConnections(boolean bEnabled)
bEnabled - True to optimize for slow connections, when possible; false, otherwise.public boolean getOptimizeForSlowConnections()
public void setRestoreFileOnError(boolean bEnabled)
bEnabled - True if the previous working file should be restored if an error occurs
during a checkout; otherwise, false.public boolean getRestoreFileOnError()
public void setContentFilter(ContentFilter filter)
filter - The ContentFilter object to be used after performing keyword
expansion, eol conversion, etc.public ContentFilter getContentFilter()
public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||