eu.monnetproject.lemon
Interface ElementVisitor

All Known Implementing Classes:
AbstractVisitor, CopyVisitor, RDFXMLWriter, TurtleWriter

public interface ElementVisitor

Lemon model visitor

Author:
John McCrae

Method Summary
 boolean follow(URI uri)
          Indicate if you wish the visitor to move across certain links
 boolean hasVisited(LemonElement element)
          Returns true if the visitor has already visited this element
 void visit(LemonElement element)
          Perform an action on a single element
 boolean visitFirst()
          If true the visit method will be called in direct order, otherwise in reverse order
 

Method Detail

visit

void visit(LemonElement element)
Perform an action on a single element

Parameters:
element -

follow

boolean follow(URI uri)
Indicate if you wish the visitor to move across certain links

Parameters:
uri - The URI of the predicate in the model
Returns:
True to follow the link

hasVisited

boolean hasVisited(LemonElement element)
Returns true if the visitor has already visited this element

Parameters:
element -
Returns:

visitFirst

boolean visitFirst()
If true the visit method will be called in direct order, otherwise in reverse order

Returns:
The visit order


Copyright © 2012. All Rights Reserved.