/** * Called when the <code>Visitor</code> is passed to a * <code>Property</code>. * <p> * It calls <code>TraversingItemVisitor.entering(Property, int)</code> * followed by <code>TraversingItemVisitor.leaving(Property, int)</code>. * Implement these abstract methods to specify behavior on 'arrival at' and * 'after leaving' the <code>Property</code>. * <p> * If this method throws, the visiting process is aborted. * * @param property the <code>Property</code> that is accepting this * visitor. * @throws RepositoryException if an error occurs. */ public void visit(Property property) throws RepositoryException { entering(property, currentLevel); leaving(property, currentLevel); }