|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.hgraph.Path
public class Path
The Path class is for representing paths in an Hgraph. These are represented as delimited text identifiers. Paths are also used for manifesting functional and structural dependencies in the hgraph
| Field Summary | |
|---|---|
static java.lang.String |
PATH_DELIMITER
The delimiter string for paths |
| Constructor Summary | |
|---|---|
Path(java.lang.String name)
Creates a path of length 1 |
|
Path(java.lang.String[] path)
Creates a path from an already existing string array |
|
Path(java.lang.String name,
java.lang.String[] superPath)
Creates a child path by copying the supplied super path and appending a name identifier |
|
| Method Summary | |
|---|---|
boolean |
equals(Path eqPath)
Compares the parameter path with this path |
boolean |
equals(java.lang.String path)
|
static Path |
fromString(java.lang.String stringPath)
Creates a Path object from a string |
static Path |
fromString(java.lang.String name,
java.lang.String parentStringPath)
Creates a child path from a string and an identifier string |
int |
getLength()
|
java.lang.String[] |
getPathArray()
|
java.lang.String |
toString()
Returns a stringified version of the path |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PATH_DELIMITER
| Constructor Detail |
|---|
public Path(java.lang.String name)
name - The sole identifier in the path
public Path(java.lang.String name,
java.lang.String[] superPath)
name - The name of the node to which this path belongssuperPath - The path of the parentpublic Path(java.lang.String[] path)
path - | Method Detail |
|---|
public java.lang.String[] getPathArray()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getLength()
public boolean equals(Path eqPath)
eqPath -
public boolean equals(java.lang.String path)
path - a string which supposedly is a path
public static Path fromString(java.lang.String stringPath)
public static Path fromString(java.lang.String name,
java.lang.String parentStringPath)
name - parentStringPath -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||