|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cubeengine.converter.node.Path
public class Path
Represents a path to a node.
| Constructor Summary | |
|---|---|
Path(char separator,
String path)
Constructs a path using given separator and path. |
|
Path(List<String> parts)
Constructs a path using give parts |
|
Path(String... parts)
Constructs a path using given parts. |
|
Path(String separator,
String path)
Constructs a path using given separator and path. |
|
| Method Summary | |
|---|---|
String |
asString(char separator)
Gets a String representation of this Path with given separator |
String |
asString(String separator)
Gets a String representation of this Path with given separator |
String |
getFirst()
Returns the first part of this path |
String |
getLast()
Returns the last part of this path |
List<String> |
getParts()
Gets the parts making up this part |
int |
getSize()
Gets the amount of parts of this path |
boolean |
isBasePath()
Returns whether this path has only one part |
Path |
subPath()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Path(String... parts)
parts - the parts
public Path(String separator,
String path)
separator - the separatorpath - the path
public Path(char separator,
String path)
separator - the separatorpath - the pathpublic Path(List<String> parts)
parts - the parts| Method Detail |
|---|
public List<String> getParts()
public int getSize()
public String asString(String separator)
separator - the separator
public String asString(char separator)
separator - the separator
public String getLast()
public String getFirst()
public boolean isBasePath()
public Path subPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||