org.jrdf.writer.rdfxml
Class ResourceStatement

java.lang.Object
  extended by org.jrdf.writer.rdfxml.ResourceStatement
All Implemented Interfaces:
RdfXmlWritable

public class ResourceStatement
extends Object
implements RdfXmlWritable

Represents a statement about a resource.

Author:
TurnerRX

Constructor Summary
ResourceStatement(RdfNamespaceMap names, BlankNodeRegistry registry)
           
 
Method Summary
 Triple getTriple()
           
 void setAndWriteTriple(Triple triple, PrintWriter writer)
           
 void setTriple(Triple triple)
           
 void write(PrintWriter writer)
          Writes contents to the writer in RDF/XML format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceStatement

public ResourceStatement(RdfNamespaceMap names,
                         BlankNodeRegistry registry)
Method Detail

getTriple

public Triple getTriple()

setTriple

public void setTriple(Triple triple)

write

public void write(PrintWriter writer)
           throws IOException,
                  WriteException
Description copied from interface: RdfXmlWritable
Writes contents to the writer in RDF/XML format.

Specified by:
write in interface RdfXmlWritable
Parameters:
writer - Writer output
Throws:
IOException - If an exception occurs while writing output.
WriteException - If contents could not be written.

setAndWriteTriple

public void setAndWriteTriple(Triple triple,
                              PrintWriter writer)
                       throws IOException,
                              WriteException
Throws:
IOException
WriteException