|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atlassian.crucible.spi.data.AnchorData
public class AnchorData
Pojo for patch anchor data. See ReviewService.createReviewFromPatch(ReviewData,
String, AnchorData) on how to use this class to specify patch anchoring information.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAnchorPath()
|
java.lang.String |
getAnchorRepository()
|
java.lang.Integer |
getStripCount()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||