org.ontoware.rdf2go.model.impl
Class AbstractModelWriter

java.lang.Object
  extended by org.ontoware.rdf2go.model.impl.AbstractModelWriter
All Implemented Interfaces:
ModelWriter
Direct Known Subclasses:
AbstractModelAddRemove, StatementWriter

public abstract class AbstractModelWriter
extends java.lang.Object
implements ModelWriter

All these methods create some RDF2Go objects before calling the base case. For high-performance reasons, adapters should override all methods here.

Author:
voelkel

Constructor Summary
AbstractModelWriter()
           
 
Method Summary
 void addAll(java.util.Iterator<? extends Statement> other)
           
abstract  void addStatement(Resource subject, URI predicate, Node object)
           
 void addStatement(Resource subject, URI predicate, java.lang.String literal)
           
 void addStatement(Resource subject, URI predicate, java.lang.String literal, java.lang.String languageTag)
           
 void addStatement(Resource subject, URI predicate, java.lang.String literal, URI datatypeURI)
           
 void addStatement(Statement statement)
           
 void addStatement(java.lang.String subjectURIString, URI predicate, java.lang.String literal)
           
 void addStatement(java.lang.String subjectURIString, URI predicate, java.lang.String literal, java.lang.String languageTag)
           
 void addStatement(java.lang.String subjectURIString, URI predicate, java.lang.String literal, URI datatypeURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModelWriter

public AbstractModelWriter()
Method Detail

addAll

public void addAll(java.util.Iterator<? extends Statement> other)
            throws ModelRuntimeException
Specified by:
addAll in interface ModelWriter
Throws:
ModelRuntimeException

addStatement

public void addStatement(Resource subject,
                         URI predicate,
                         java.lang.String literal)
                  throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Throws:
ModelRuntimeException

addStatement

public void addStatement(Resource subject,
                         URI predicate,
                         java.lang.String literal,
                         java.lang.String languageTag)
                  throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Throws:
ModelRuntimeException

addStatement

public void addStatement(Resource subject,
                         URI predicate,
                         java.lang.String literal,
                         URI datatypeURI)
                  throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Throws:
ModelRuntimeException

addStatement

public void addStatement(java.lang.String subjectURIString,
                         URI predicate,
                         java.lang.String literal)
                  throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Throws:
ModelRuntimeException

addStatement

public void addStatement(java.lang.String subjectURIString,
                         URI predicate,
                         java.lang.String literal,
                         java.lang.String languageTag)
                  throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Throws:
ModelRuntimeException

addStatement

public void addStatement(java.lang.String subjectURIString,
                         URI predicate,
                         java.lang.String literal,
                         URI datatypeURI)
                  throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Throws:
ModelRuntimeException

addStatement

public void addStatement(Statement statement)
                  throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Throws:
ModelRuntimeException

addStatement

public abstract void addStatement(Resource subject,
                                  URI predicate,
                                  Node object)
                           throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Throws:
ModelRuntimeException


Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.