org.jrdf.writer.rdfxml
Class PredicateObjectWriterImpl

java.lang.Object
  extended by org.jrdf.writer.rdfxml.PredicateObjectWriterImpl
All Implemented Interfaces:
TypedNodeVisitor, PredicateObjectWriter

public final class PredicateObjectWriterImpl
extends Object
implements PredicateObjectWriter

Represents a statement about a resource.

Author:
TurnerRX, Andrew Newman

Constructor Summary
PredicateObjectWriterImpl(RdfNamespaceMap newNames, BlankNodeRegistry newBlankNodeRegistry, javax.xml.stream.XMLStreamWriter newXmlStreamWriter)
           
 
Method Summary
 void visitBlankNode(BlankNode blankNode)
          Visit blank node.
 void visitLiteral(Literal literal)
          Visit Literal.
 void visitNode(Node node)
          Visit node.
 void visitResource(Resource resource)
          Visit Resource.
 void visitURIReference(URIReference uriReference)
          Visit URI Reference.
 void writePredicateObject(PredicateNode predicate, ObjectNode object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredicateObjectWriterImpl

public PredicateObjectWriterImpl(RdfNamespaceMap newNames,
                                 BlankNodeRegistry newBlankNodeRegistry,
                                 javax.xml.stream.XMLStreamWriter newXmlStreamWriter)
Method Detail

writePredicateObject

public void writePredicateObject(PredicateNode predicate,
                                 ObjectNode object)
                          throws WriteException
Specified by:
writePredicateObject in interface PredicateObjectWriter
Throws:
WriteException

visitBlankNode

public void visitBlankNode(BlankNode blankNode)
Description copied from interface: TypedNodeVisitor
Visit blank node.

Specified by:
visitBlankNode in interface TypedNodeVisitor
Parameters:
blankNode - the blank node to visit.

visitURIReference

public void visitURIReference(URIReference uriReference)
Description copied from interface: TypedNodeVisitor
Visit URI Reference.

Specified by:
visitURIReference in interface TypedNodeVisitor
Parameters:
uriReference - the URI Reference to visit.

visitLiteral

public void visitLiteral(Literal literal)
Description copied from interface: TypedNodeVisitor
Visit Literal.

Specified by:
visitLiteral in interface TypedNodeVisitor
Parameters:
literal - the Literal to visit.

visitNode

public void visitNode(Node node)
Description copied from interface: TypedNodeVisitor
Visit node.

Specified by:
visitNode in interface TypedNodeVisitor
Parameters:
node - the node to visit.

visitResource

public void visitResource(Resource resource)
Description copied from interface: TypedNodeVisitor
Visit Resource.

Specified by:
visitResource in interface TypedNodeVisitor
Parameters:
resource - the node to visit.