class Path extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_PATH
Default cluster path.
|
private static org.slf4j.Logger |
logger |
private ModelType |
modelType
Type of the model.
|
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,
ModelType modelType)
Constructs a path to a model.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
protected Path |
getChildPath(String name,
ModelType type)
Returns the child path of this path plus the name provided.
|
ModelType |
getModelType()
Returns the type of the model.
|
String |
getName()
Returns the name of the model.
|
Path |
getParentPath()
Returns the parent's path of this path.
|
String |
getPathName()
Returns the path of the model.
|
int |
hashCode() |
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 org.slf4j.Logger logger
private static final String PATH_SEPARATOR
protected static final String DEFAULT_PATH
private String path
private ModelType modelType
protected Path(String path, ModelType modelType)
path - a string representing the path.modelType - type of the model.IllegalArgumentException - when the path is invalid.public static boolean isValidPath(String path)
path - to check.public static boolean isValidName(String name)
name - to check.protected Path getChildPath(String name, ModelType type)
name - to add.type - of the model.IllegalArgumentException - if the name is invalid, see isValidName(String).IllegalStateException - if the model type isn't a cluster.public String getName()
public String getPathName()
public Path getParentPath()
public ModelType getModelType()