org.jrdf.parser
Interface StatementHandler


public interface StatementHandler

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


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

Method Detail

handleStatement

public 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.