|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.LinkValue
public final class LinkValue
A value of a LinkProperty.
| Nested Class Summary | |
|---|---|
static class |
LinkValue.WebCacheLinkValue
The value of a Link Property |
| Field Summary | |
|---|---|
static LinkValue |
VALUE_NOT_SET
The "not set" value. |
| Constructor Summary | |
|---|---|
LinkValue(LinkValue other)
Create a LinkValue from another one |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
compare two LinkValue's for equality |
static LinkValue |
forExternalLink(ViewMember vm)
Creates a LinkValue representing an external link to the given item. |
static LinkValue |
forURL(java.lang.String url,
java.lang.String description)
Creates a LinkValue for the given URL. |
static LinkValue |
forViewMember(ViewMember vm,
View source)
Creates a LinkValue representing a link to the given item, relative to the given source view. |
int |
getClassID()
Returns the 'raw' classID describing the Type associated with this link value Useful for applications that listen for Trace Events using the lightweight listener |
java.lang.String |
getDescription()
Gets a description of the linked item. |
DotNotation |
getDotNotation()
Attempts to extract version information in the form of a DotNotation from this LinkValue. |
java.lang.String |
getExternalID()
Gets the ExternalID of this LinkValue, in raw form. |
static LinkValue |
getExternalLinkTo(ViewMember vm)
Creates a LinkValue representing an external link to the given view member. |
static LinkValue |
getInternalLinkTo(ViewMember vm)
return a LinkValue representing an internal link to the specified view member This linkValue has not been saved to the StarTeam server |
static LinkValue |
getLinkTo(ViewMember vm,
View source)
Creates a LinkValue representing a link to the given view member, relative to the given source view. |
int |
getProjectID()
Returns the 'raw' project ID associated with this link value Useful for applications that listen for Trace Events using the lightweight listener |
DateTime |
getTimeStamp()
Gets the revision timestamp associated with this LinkValue. |
ViewMember.Type |
getType()
Returns the Type of the link value for internal links |
java.lang.String |
getURL()
Gets a URL that refers to the linked item. |
java.lang.String |
getVersion()
Attempts to extract version information from the VersionID of this LinkValue. |
java.lang.String |
getVersionID()
Gets the VersionID of this LinkValue, in raw form. |
int |
getViewID()
Returns the 'raw' view ID associated with this link value Useful for applications that listen for Trace Events using the lightweight listener |
int |
getVMID()
Gets the VMID of the linked item. |
int |
hashCode()
return a hash key for this link value |
boolean |
isEqualTo(LinkValue v)
Similar to equals(). |
boolean |
isFloating()
returns true if this LinkValue is floating w.r.t its Trace |
boolean |
isInternalLink()
Determines whether or not this LinkValue is an internal reference to a StarTeam view member on the same server. |
boolean |
isInternalTo(Project project)
Determines whether or not this is an internal link to a StarTeam item in the same project as the given one. |
boolean |
isInternalTo(View view)
Determines whether or not this is an internal link to a StarTeam item in the same view as the given one. |
boolean |
isPinned()
returns true if this LinkValue is pinned to its Trace |
boolean |
isStarTeamLink()
Determines whether or not this LinkValue references a StarTeam view member. |
ViewMember |
toStarTeamItem()
Gets a full-resolved version of the referenced item. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final LinkValue VALUE_NOT_SET
| Constructor Detail |
|---|
public LinkValue(LinkValue other)
other - the other linkValue to use as the source| Method Detail |
|---|
public static LinkValue getLinkTo(ViewMember vm,
View source)
vm - ViewMembersource - View
public static LinkValue forViewMember(ViewMember vm,
View source)
vm - ViewMembersource - View
public static LinkValue forExternalLink(ViewMember vm)
vm - ViewMember
public static LinkValue getInternalLinkTo(ViewMember vm)
vm - the view member
public static LinkValue getExternalLinkTo(ViewMember vm)
vm - ViewMember
public static LinkValue forURL(java.lang.String url,
java.lang.String description)
url - Stringdescription - String
public java.lang.String getDescription()
public boolean isInternalLink()
public int getVMID()
public boolean isStarTeamLink()
public boolean isInternalTo(View view)
view - the View to test
LinkValue.isInternalLink(),
LinkValue.isInternalTo(Project)public boolean isInternalTo(Project project)
project - the Project to test
LinkValue.isInternalLink(),
LinkValue.isInternalTo(View)public java.lang.String getURL()
public DateTime getTimeStamp()
java.lang.UnsupportedOperationException - If this LinkValue does not refer to an internal StarTeam
item.public boolean isPinned()
public boolean isFloating()
public java.lang.String getVersionID()
LinkValue.getVersion(),
LinkValue.getDotNotation()public java.lang.String getExternalID()
LinkValue.getVersion(),
LinkValue.getDotNotation()public java.lang.String getVersion()
This method assumes that the VersionID is formatted as a set of attribute value pairs, as would appear in a URI; for example, "?v=10". This method generally returns the first value, although special provision if made for StarTeam LinkValues that contain a DotNotation of the form "?dot=1.0".
LinkValue.getVersionID(),
LinkValue.getDotNotation()public ViewMember.Type getType()
public DotNotation getDotNotation()
LinkValue.getVersion(),
LinkValue.getVersionID()public int getClassID()
public boolean isEqualTo(LinkValue v)
v - LinkValue
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the other LinkValue to compare
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic ViewMember toStarTeamItem()
public int getProjectID()
public int getViewID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||