|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.name.Path.PathBuilder
public static final class Path.PathBuilder
Internal helper class used to build a path from pre-parsed path elements.
Warning! This class does neither validate the format of the path elements nor does it validate the format of the entire path! This class should therefore only be used in special situations. The regular way of creating/building aPath
object is by calling
any of the overloaded Path.create()
factory methods.
Constructor Summary | |
---|---|
Path.PathBuilder()
Creates a new PathBuilder. |
|
Path.PathBuilder(Path.PathElement[] elements)
Creates a new PathBuilder and initialized it with the given path elements. |
|
Path.PathBuilder(Path parent)
Creates a new PathBuilder and initialized it with elements of the given path. |
Method Summary | |
---|---|
void |
addAll(Path.PathElement[] elements)
Adds the given elemenets |
void |
addFirst(Path.PathElement elem)
Inserts the element at the beginning of the path to be built. |
void |
addFirst(QName name)
Inserts the element at the beginning of the path to be built. |
void |
addFirst(QName name,
int index)
Inserts the element at the beginning of the path to be built. |
void |
addLast(Path.PathElement elem)
Inserts the element at the end of the path to be built. |
void |
addLast(QName name)
Inserts the element at the end of the path to be built. |
void |
addLast(QName name,
int index)
Inserts the element at the end of the path to be built. |
void |
addRoot()
Adds the Path.ROOT_ELEMENT . |
Path |
getPath()
Assembles the built path and returns a new Path . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Path.PathBuilder()
public Path.PathBuilder(Path.PathElement[] elements)
elements
- public Path.PathBuilder(Path parent)
parent
- Method Detail |
---|
public void addRoot()
Path.ROOT_ELEMENT
.
public void addAll(Path.PathElement[] elements)
elements
- public void addFirst(Path.PathElement elem)
elem
- public void addFirst(QName name)
name
- public void addFirst(QName name, int index)
name
- index
- public void addLast(Path.PathElement elem)
elem
- public void addLast(QName name)
name
- public void addLast(QName name, int index)
name
- index
- public Path getPath() throws MalformedPathException
Path
.
Path
MalformedPathException
- if the internal path element queue is empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |