|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.PathMap
Generic path map that associates information with the individual path elements of a path.
Nested Class Summary | |
static class |
PathMap.Element
Internal class holding the object associated with a certain path element. |
static interface |
PathMap.ElementVisitor
Element visitor used in traverse(org.apache.jackrabbit.core.PathMap.ElementVisitor, boolean) |
Constructor Summary | |
PathMap()
|
Method Summary | |
PathMap.Element |
map(Path path,
boolean exact)
Map a path to a child. |
PathMap.Element |
put(Path path)
Create an empty child given by its path. |
PathMap.Element |
put(Path path,
Object obj)
Create an element given by its path. |
void |
put(Path path,
PathMap.Element element)
Put an element given by its path. |
void |
traverse(PathMap.ElementVisitor visitor,
boolean includeEmpty)
Traverse the path map and call back requester. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PathMap()
Method Detail |
public PathMap.Element map(Path path, boolean exact)
exact
is false
,
returns the last available item along the path that is stored in the map.
path
- path to mapexact
- flag indicating whether an exact match is required
null
if exact
is
true
public PathMap.Element put(Path path, Object obj)
path
- path to childobj
- object to store at destinationpublic void put(Path path, PathMap.Element element)
path
- path to childelement
- element to store at destinationpublic PathMap.Element put(Path path)
path
- path to childpublic void traverse(PathMap.ElementVisitor visitor, boolean includeEmpty)
includeEmpty
- if true
invoke call back on every child
regardless, whether the associated object is empty
or not; otherwise call back on non-empty children
only
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |