|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.ViewConfiguration
A class that represents the possible configuration states for a
View.
A StarTeam View can be in one of four different configurations:
Current: all items in the view are the most recent or "tip" versions,
Label: all items reference the version with the specified label
attached,
Time: all items reference the version that was tip as of some time,
Promotion: like a label-based view but with respect to some promotion
state.
View| Method Summary | |
static ViewConfiguration |
createFromLabel(int labelID)
Creates a new ViewConfiguration object that represents a view in the specified label-based configuration. |
static ViewConfiguration |
createFromPromotionState(int stateID)
Creates a new ViewConfiguration object that represents a view in the specified PromotionState-based configuration. |
static ViewConfiguration |
createFromTime(OLEDate oleTime)
Creates a new ViewConfiguration object that represents a view as-of a specified point in time. |
static ViewConfiguration |
createTip()
Creates a new ViewConfiguration object that represents the current or "tip" state of a view. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
int |
getLabelID()
Return the label ID for this configuration. |
int |
getPromotionStateID()
Return the PromotionSate ID for this configuration. |
OLEDate |
getTime()
Return the as-of time for this configuration. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isEqualTo(ViewConfiguration theOther)
returns true if this ViewConfiguration instance can be considered equal to the other |
boolean |
isLabelBased()
Return true if this configuration is label-based. |
boolean |
isPromotionStateBased()
Return true if this configuration is based on a PromotionState. |
boolean |
isTimeBased()
Return true if this configuration is time-based. |
boolean |
isTip()
Return true if this configuration is "tip" or "current". |
java.lang.String |
toString()
Returns a string representation of this configuration. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static ViewConfiguration createTip()
public static ViewConfiguration createFromLabel(int labelID)
labelID - The label ID from which to base the configuration.
Label.getID()public static ViewConfiguration createFromTime(OLEDate oleTime)
oleTime - the view's as-of time
public static ViewConfiguration createFromPromotionState(int stateID)
stateID - The PromotionState ID from which to base the
configuration.
PromotionState.getObjectID()public int getLabelID()
ViewConfiguration.createFromLabel(int),
Label.getID()public int getPromotionStateID()
ViewConfiguration.createFromPromotionState(int),
PromotionState.getObjectID()public OLEDate getTime()
ViewConfiguration.createFromTime(OLEDate)public boolean isTip()
ViewConfiguration.createTip()public boolean isLabelBased()
ViewConfiguration.createFromLabel(int)public boolean isTimeBased()
ViewConfiguration.createFromTime(OLEDate)public boolean isPromotionStateBased()
PromotionState.
ViewConfiguration.createFromPromotionState(int)public boolean isEqualTo(ViewConfiguration theOther)
public java.lang.String toString()
toString in class java.lang.Objectpublic 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 | |||||||||