|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines two signatures of the
visit
method; one taking a Node
, the other a
Property
. When an object implementing this interface is passed
to
the appropriate
Item.accept(ItemVisitor visitor)
visit
method is automatically called, depending on whether the
Item
in question is a Node
or a
Property
. Different implementations of this interface can be
written for different purposes. It is, for example, possible for the
method to call visit(Node node)
accept
on the
children of the passed node and thus recurse through the tree performing some
operation on each Item
.
Method Summary | |
void |
visit(Node node)
This method is called when the ItemVisitor is
passed to the accept method of a Node . |
void |
visit(Property property)
This method is called when the ItemVisitor is
passed to the accept method of a Property . |
Method Detail |
public void visit(Property property) throws RepositoryException
ItemVisitor
is
passed to the accept
method of a Property
.
If this method throws an exception the visiting process is aborted.
property
- The Property
that is accepting this visitor.
RepositoryException
- if an error occurrspublic void visit(Node node) throws RepositoryException
ItemVisitor
is
passed to the accept
method of a Node
.
If this method throws an exception the visiting process is aborted.
node
- The Node
Throws:
RepositoryException
- if an error occurrs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |