class Path extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PATH
Path to the default cluster.
|
private static Logger |
logger |
private String |
path
A string representing the path.
|
private static String |
PATH_SEPARATOR
Separator for path names.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Path(String path)
Constructs a path to a model.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getChildPath(String name)
Returns the child path of this path plus the name provided.
|
String |
getName()
Returns the name of the model.
|
String |
getParentPath()
Returns the parent's path of this path.
|
String |
getPath()
Returns the path of the model.
|
static boolean |
isValidName(String name)
Returns if the provided name is a valid name.
|
static boolean |
isValidPath(String path)
Returns if the provided path's characters are valid on the Pathfinder server.
|
private static final Logger logger
private static final String PATH_SEPARATOR
public static final String DEFAULT_PATH
private String path
protected Path(String path)
path - a string representing the pathIllegalArgumentException - when the path is invalid.public static boolean isValidPath(String path)
path - to check.public static boolean isValidName(String name)
name - to check.public String getChildPath(String name)
name - to add.IllegalArgumentException - if the name is invalid, see isValidName(String).public String getName()
public String getPath()
public String getParentPath()