public class RepositoryPath extends Object
| Constructor and Description |
|---|
RepositoryPath(RepositoryPath repositoryPath)
Instantiates a new repository path.
|
RepositoryPath(String... input)
Instantiates a new repository path.
|
RepositoryPath(String path)
Instantiates a new repository path.
|
| Modifier and Type | Method and Description |
|---|---|
RepositoryPath |
append(String name)
Add new segment after the last position.
|
String |
build()
Builds the.
|
String |
constructPathFrom(int number)
Construct path from.
|
String |
constructPathTo(int number)
Construct path to.
|
boolean |
equals(Object obj) |
String |
getLastSegment()
Getter for the last segment.
|
RepositoryPath |
getParentPath()
Getter for the path of the parent.
|
String |
getPath()
Gets the path.
|
String[] |
getSegments()
Gets the segments.
|
int |
hashCode() |
static String |
normalizeName(String name)
Normalize name.
|
static String |
normalizePath(String path,
String name)
Normalize path.
|
String |
toString() |
public RepositoryPath(String path)
path - the pathpublic RepositoryPath(RepositoryPath repositoryPath)
repositoryPath - the repository pathpublic RepositoryPath(String... input)
input - the inputpublic String getLastSegment()
public RepositoryPath getParentPath()
public RepositoryPath append(String name)
name - the namepublic String build()
public String getPath()
public String[] getSegments()
public String constructPathTo(int number)
number - the numberpublic String constructPathFrom(int number)
number - the numberpublic static String normalizePath(String path, String name)
path - the pathname - the nameCopyright © 2010–2018 Eclipse Foundation. All rights reserved.