org.jrdf.writer.rdfxml
Class ResourceStatement
java.lang.Object
org.jrdf.writer.rdfxml.ResourceStatement
- All Implemented Interfaces:
- RdfXmlWritable
public class ResourceStatement
- extends Object
- implements RdfXmlWritable
Represents a statement about a resource.
- Author:
- TurnerRX
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceStatement
public ResourceStatement(RdfNamespaceMap names,
BlankNodeRegistry registry)
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