public interface ArtefactPath
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getSegments()
Gets the path as a collection of segments.
|
String |
getStringValue()
Gets the path as a single string.
|
String |
getStringValue(int skip)
Gets the path as a single string, omitting first
skip
elements. |
String |
segment(int index)
Gets a segment in the path.
|
int |
segmentCount()
Returns number of segments in the path
|
ArtefactPath |
withoutFirstSegment()
Create new instance of ArtefactPath from base one, excluding first
segment of base path.
|
ArtefactPath |
withoutSegment(int segmentIndex) |
ArtefactPath |
withSegment(String segment)
Creates new instance of ArtefactPath from base one, adding one more
segment.
|
Collection<String> getSegments()
String getStringValue()
String getStringValue(int skip)
skip
elements. All segments are concatenated by special delimiter '/'.skip - number of elements to skipString segment(int index)
index - position of segment in the pathint segmentCount()
ArtefactPath withoutFirstSegment()
ArtefactPath withoutSegment(int segmentIndex)
ArtefactPath withSegment(String segment)
segment - adding segmentCopyright © 2018. All rights reserved.