public class AnchorData
extends java.lang.Object
ReviewService.createReviewFromPatch(ReviewData,
String, AnchorData) on how to use this class to specify patch anchoring information.| Constructor and Description |
|---|
AnchorData()
Required constructor for jaxb.
|
AnchorData(java.lang.String anchorRepository)
A convenience constructor.
|
AnchorData(java.lang.String anchorRepository,
java.lang.String anchorPath,
java.lang.Integer stripCount)
Creates an AnchorData pojo, used to indicate how a patch is to be anchored.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAnchorPath() |
java.lang.String |
getAnchorRepository() |
java.lang.Integer |
getStripCount() |
int |
hashCode() |
void |
setAnchorPath(java.lang.String anchorPath)
Sets the path to anchor a patch to.
|
void |
setAnchorRepository(java.lang.String anchorRepository)
Sets the repository to anchor to.
|
void |
setStripCount(java.lang.Integer stripCount)
Sets the stripCount, which indicates how many path elements (or directories) to strip away, starting from the
root, before appending to the value returned by
getAnchorPath() to create a complete path to anchor to. |
public AnchorData()
public AnchorData(java.lang.String anchorRepository)
AnchorData(String, String, Integer) with the second and
third parameter as null.anchorRepository - the repository to anchor to. Must not be null.public AnchorData(java.lang.String anchorRepository,
java.lang.String anchorPath,
java.lang.Integer stripCount)
setAnchorPath(String) and setStripCount(Integer) for more information.anchorRepository - the repository to anchor toanchorPath - optional, path to anchor to. Can be null.stripCount - optional, number of path elements to strip away from the patch before appending to the anchorPath. Can be null.public java.lang.String getAnchorPath()
public void setAnchorPath(java.lang.String anchorPath)
getAnchorRepository(). If this is set to null, crucible will automatically compute the "best" path based on the
information provided inside the patch. see ReviewService.createReviewFromPatch(ReviewData,
String, AnchorData) for more information.anchorPath - the path to anchor the patch to. Can be null.public java.lang.String getAnchorRepository()
public void setAnchorRepository(java.lang.String anchorRepository)
anchorRepository - public java.lang.Integer getStripCount()
public void setStripCount(java.lang.Integer stripCount)
getAnchorPath() to create a complete path to anchor to.
if set to null, crucible will automatically compute the correct number. see ReviewService.createReviewFromPatch(ReviewData, String, AnchorData) for more
information.stripCount - public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object