org.jrdf.parser
Class GraphStatementHandler

java.lang.Object
  extended by org.jrdf.parser.GraphStatementHandler
All Implemented Interfaces:
StatementHandler

public class GraphStatementHandler
extends Object
implements StatementHandler

A statement handler takes a JRDF graph in the constructor and for every subject, predicate and object encountered adds it to the graph.

Version:
$Revision: 363 $
Author:
Andrew Newman

Constructor Summary
GraphStatementHandler(Graph graph)
           
 
Method Summary
 void handleStatement(SubjectNode subject, PredicateNode predicate, ObjectNode object)
          Called by an RDF parser when it has parsed a statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphStatementHandler

public GraphStatementHandler(Graph graph)
Method Detail

handleStatement

public void handleStatement(SubjectNode subject,
                            PredicateNode predicate,
                            ObjectNode object)
Description copied from interface: StatementHandler
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.

Specified by:
handleStatement in interface StatementHandler
Parameters:
subject - A URI or bNode.
predicate - A URI.
object - A URI, bNode or literal.