|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.ViewConfiguration
public final class 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 |
createFrom(DateTime oleTime)
Creates a new ViewConfiguration object that represents a view as-of a specified point in time. |
static ViewConfiguration |
createFrom(Label lbl)
Creates a new ViewConfiguration object that represents a view in the specified label-based configuration. |
static ViewConfiguration |
createFrom(PromotionState state)
Creates a new ViewConfiguration object that represents a view in the specified PromotionState-based configuration. |
static ViewConfiguration |
createTip()
Creates a new ViewConfiguration object that represents the current or "tip" state of a view. |
boolean |
equals(java.lang.Object o)
returns true if this ViewConfiguration instance can be considered equal to the other |
Label |
getLabel()
Return the label ID for this configuration. |
PromotionState |
getPromotionState()
Return the PromotionSate ID for this configuration. |
DateTime |
getTime()
Return the as-of time for this configuration. |
int |
hashCode()
Gets a hash code for this ViewConfiguration. |
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". |
boolean |
supportsDeletedItems()
Return true if this view configuration can support accessing deleted items. |
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 createFrom(Label lbl)
lbl - The label from which to base the configuration.
Label.getID()public static ViewConfiguration createFrom(DateTime oleTime)
oleTime - the view's as-of time
public static ViewConfiguration createFrom(PromotionState state)
state - The PromotionState from which to base the configuration.
PromotionState.getObjectID()public boolean isEqualTo(ViewConfiguration theOther)
theOther - viewConfig ViewConfiguration the view configuration to compare
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - viewConfig ViewConfiguration the view configuration to compare
public Label getLabel()
ViewConfiguration.createFrom(Label),
Label.getID()public PromotionState getPromotionState()
ViewConfiguration.createFrom(PromotionState),
PromotionState.getObjectID()public DateTime getTime()
ViewConfiguration.createFrom(DateTime)public boolean isTip()
ViewConfiguration.createTip()public boolean isLabelBased()
ViewConfiguration.createFrom(Label)public boolean isTimeBased()
public boolean isPromotionStateBased()
PromotionState.
ViewConfiguration.createFrom(PromotionState)public boolean supportsDeletedItems()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||