eu.monnetproject.lemon.impl.io.xml
Class RDFXMLWriter

java.lang.Object
  extended by eu.monnetproject.lemon.AbstractVisitor
      extended by eu.monnetproject.lemon.impl.io.xml.RDFXMLWriter
All Implemented Interfaces:
ElementVisitor

public class RDFXMLWriter
extends AbstractVisitor

Author:
John McCrae

Constructor Summary
RDFXMLWriter(LinguisticOntology lo, Class<?> rootClass)
           
 
Method Summary
 String getDocument()
           
 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
 
Methods inherited from class eu.monnetproject.lemon.AbstractVisitor
follow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFXMLWriter

public RDFXMLWriter(LinguisticOntology lo,
                    Class<?> rootClass)
             throws ParserConfigurationException
Throws:
ParserConfigurationException
Method Detail

visit

public void visit(LemonElement _element)
Description copied from interface: ElementVisitor
Perform an action on a single element


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
Overrides:
visitFirst in class AbstractVisitor
Returns:
The visit order

hasVisited

public boolean hasVisited(LemonElement element)
Description copied from interface: ElementVisitor
Returns true if the visitor has already visited this element

Returns:

getDocument

public String getDocument()
                   throws TransformerException
Throws:
TransformerException


Copyright © 2012. All Rights Reserved.