public abstract class CopyOfBaseXMLWriter extends Object implements org.apache.jena.rdfxml.xmloutput.RDFXMLWriterI
Modifier and Type | Field and Description |
---|---|
static boolean |
dbg |
protected static org.apache.jena.rdfxml.xmloutput.impl.SimpleLogger |
logger |
protected static Pattern |
predefinedEntityNames |
protected Boolean |
showDoctypeDeclaration |
Constructor and Description |
---|
CopyOfBaseXMLWriter() |
Modifier and Type | Method and Description |
---|---|
protected String |
attributeQuoted(String s) |
protected abstract void |
blockRule(org.apache.jena.rdf.model.Resource r) |
protected String |
endElementTag(String uriref) |
String |
getPrefixFor(String uri) |
boolean |
isPredefinedEntityName(String name) |
protected String |
relativize(String uri)
Answer the form of the URI after relativisation according to the relativeFlags set
by properties.
|
org.apache.jena.rdf.model.RDFErrorHandler |
setErrorHandler(org.apache.jena.rdf.model.RDFErrorHandler errHandler)
Set an error handler.
|
static org.apache.jena.rdfxml.xmloutput.impl.SimpleLogger |
setLogger(org.apache.jena.rdfxml.xmloutput.impl.SimpleLogger lg) |
void |
setNsPrefix(String prefix,
String ns) |
Object |
setProperty(String propName,
Object propValue)
Set the writer property propName to the value obtained from propValue.
|
protected String |
startElementTag(String uriref) |
static int |
str2flags(String pv) |
protected String |
substitutedAttribute(String s) |
protected abstract void |
unblockAll() |
void |
write(org.apache.jena.rdf.model.Model model,
OutputStream out,
String base)
Write out an XML serialization of a model.
|
void |
write(org.apache.jena.rdf.model.Model model,
Writer out,
String base)
Serialize Model
model to Writer out. |
protected abstract void |
writeBody(org.apache.jena.rdf.model.Model mdl,
PrintWriter pw,
String baseUri,
boolean inclXMLBase) |
protected static org.apache.jena.rdfxml.xmloutput.impl.SimpleLogger logger
protected Boolean showDoctypeDeclaration
public static boolean dbg
protected static final Pattern predefinedEntityNames
public CopyOfBaseXMLWriter()
public static org.apache.jena.rdfxml.xmloutput.impl.SimpleLogger setLogger(org.apache.jena.rdfxml.xmloutput.impl.SimpleLogger lg)
protected abstract void unblockAll()
protected abstract void blockRule(org.apache.jena.rdf.model.Resource r)
protected abstract void writeBody(org.apache.jena.rdf.model.Model mdl, PrintWriter pw, String baseUri, boolean inclXMLBase)
public final void setNsPrefix(String prefix, String ns)
public final String getPrefixFor(String uri)
protected String startElementTag(String uriref)
protected String endElementTag(String uriref)
public final void write(org.apache.jena.rdf.model.Model model, OutputStream out, String base)
write
in interface org.apache.jena.rdf.model.RDFWriter
model
- the model to be serializedout
- the OutputStream to receive the serializationbase
- The URL at which the file will be placed.public void write(org.apache.jena.rdf.model.Model model, Writer out, String base)
model
to Writer out.
write
in interface org.apache.jena.rdf.model.RDFWriter
model
- The model to be written.out
- The Writer to which the serialization should be sent.base
- the base URI for relative URI calculations. null
means use only absolute URI's.public boolean isPredefinedEntityName(String name)
protected String attributeQuoted(String s)
protected String substitutedAttribute(String s)
public org.apache.jena.rdf.model.RDFErrorHandler setErrorHandler(org.apache.jena.rdf.model.RDFErrorHandler errHandler)
setErrorHandler
in interface org.apache.jena.rdf.model.RDFWriter
errHandler
- The new error handler to be used, or null for the default handler.public final Object setProperty(String propName, Object propValue)
setProperty
in interface org.apache.jena.rdf.model.RDFWriter
setProperty
in interface org.apache.jena.rdfxml.xmloutput.RDFXMLWriterI
RDFWriter.setProperty(java.lang.String, java.lang.Object)
protected String relativize(String uri)
Copyright © 2013–2017 DuraSpace, Inc.. All rights reserved.