|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.registry.Path
public class Path
Represent the path to a component.
Field Summary | |
---|---|
static String |
PATH_SEPARATOR
The path separator. |
Constructor Summary | |
---|---|
Path()
Constructor for an empty path. |
|
Path(String path)
|
Method Summary | |
---|---|
Path |
addId(String id)
Create a new path by adding a new path element identified by they id to this path. |
Path |
addPath(Path extra)
Create a new path by adding a path to this path. |
boolean |
equals(Object obj)
|
Path |
getChildPath()
Get the path below the topmost element. |
String |
getId()
|
Path |
getParent()
|
String |
getRoot()
Get the id of the top element in the path. |
int |
hashCode()
|
Path |
relativeTo(Path other)
Resolve the other path relative to this path. |
int |
size()
Return the size or depth of this path. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PATH_SEPARATOR
Constructor Detail |
---|
public Path()
public Path(String path)
Method Detail |
---|
public int size()
public String getRoot()
public String getId()
public Path getChildPath()
public Path addId(String id)
id
- The id of the new path element. May be null.
public Path getParent()
public Path addPath(Path extra)
extra
- The extra path.
public Path relativeTo(Path other)
other
- The other path.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |