org.jrdf.parser
Interface StatementHandler

All Known Implementing Classes:
GraphStatementHandler, MoleculeParserStatementHandler

public interface StatementHandler

An interface defining methods for receiving RDF statements from an RDF parser.

Version:
$Revision: 1822 $
Author:
Andrew Newman

Method Summary
 void handleStatement(SubjectNode subject, PredicateNode predicate, ObjectNode object)
          Called by an RDF parser when it has parsed a statement.
 

Method Detail

handleStatement

void handleStatement(SubjectNode subject,
                     PredicateNode predicate,
                     ObjectNode object)
                     throws StatementHandlerException
Called by an RDF parser when it has parsed a statement. The type of the subject, predicate and object is determined by the ValueFactory that the parser uses.

Parameters:
subject - A URI or bNode.
predicate - A URI.
object - A URI, bNode or literal.
Throws:
StatementHandlerException - If the statement handler has encountered an unrecoverable error.