/**
* Allocates a PropertyIterator.
*/
private void prepare() {
NodePointer parent = parentContext.getCurrentNodePointer();
if (parent == null) {
return;
}
if (startFromParentLocation) {
NodePointer pointer = parent.getParent();
while (pointer != null && pointer.isContainer()) {
pointer = pointer.getParent();
}
iterator = pointer.childIterator(nodeTest, reverse, parent);
}
else {
iterator = parent.childIterator(nodeTest, reverse, null);
}
}