eu.monnetproject.lemon
Class AbstractVisitor

java.lang.Object
  extended by eu.monnetproject.lemon.AbstractVisitor
All Implemented Interfaces:
ElementVisitor
Direct Known Subclasses:
CopyVisitor, RDFXMLWriter, TurtleWriter

public abstract class AbstractVisitor
extends Object
implements ElementVisitor

Author:
John McCrae

Constructor Summary
AbstractVisitor(LinguisticOntology lingOnto)
           
 
Method Summary
 boolean follow(URI uri)
          Indicate if you wish the visitor to move across certain links
 boolean visitFirst()
          If true the visit method will be called in direct order, otherwise in reverse order
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.monnetproject.lemon.ElementVisitor
hasVisited, visit
 

Constructor Detail

AbstractVisitor

public AbstractVisitor(LinguisticOntology lingOnto)
Method Detail

follow

public boolean follow(URI uri)
Description copied from interface: ElementVisitor
Indicate if you wish the visitor to move across certain links

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

visitFirst

public boolean visitFirst()
Description copied from interface: ElementVisitor
If true the visit method will be called in direct order, otherwise in reverse order

Specified by:
visitFirst in interface ElementVisitor
Returns:
The visit order


Copyright © 2012. All Rights Reserved.