com.hp.hpl.jena.rdf.model
Interface RDFVisitor


public interface RDFVisitor

Author:
kers The interface for visiting (ie type-dispatching) an RDF Node.

Method Summary
 Object visitBlank(Resource r, AnonId id)
          Method to call when visiting a blank node r with identifier id.
 Object visitLiteral(Literal l)
          Method to call when visiting a literal RDF node l.
 Object visitURI(Resource r, String uri)
          Method to call when visiting a URI node r with the given uri.
 

Method Detail

visitBlank

Object visitBlank(Resource r,
                  AnonId id)
Method to call when visiting a blank node r with identifier id.

Parameters:
r - the blank RDF node being visited
id - the identifier of that node
Returns:
value to be returned from the visit

visitURI

Object visitURI(Resource r,
                String uri)
Method to call when visiting a URI node r with the given uri.

Parameters:
r - the URI node being visited
uri - the URI string of that node
Returns:
value to be returned from the visit

visitLiteral

Object visitLiteral(Literal l)
Method to call when visiting a literal RDF node l.

Parameters:
l - the RDF Literal node
Returns:
a value to be returned from the visit


Licenced under the Apache License, Version 2.0