| Modifier and Type | Class and Description |
|---|---|
class |
XMLWriterImpl.XMLElement
xml element
|
| Constructor and Description |
|---|
XMLWriterImpl(Writer writer,
XMLWriterNamespaceManager xmlWriterNamespaceManager,
String xmlBase) |
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument()
Causes all open elements, including the document root element, to be
closed.
|
String |
getDefaultNamespace() |
XMLWriterNamespaceManager |
getNamespacePrefixes()
Gets the Writer's namespace manager.
|
String |
getXMLBase() |
URI |
getXMLBaseAsURI() |
void |
setEncoding(String encoding)
Sets the encoding for the document that the rdfwriter produces.
|
void |
setWrapAttributes(boolean b)
Causes the current element's attributes to be wrapped in the output.
|
void |
startDocument(org.semanticweb.owlapi.model.IRI rootElement)
Starts writing the document.
|
void |
startDocument(String rootElementName)
Starts writing the document.
|
protected String |
swapForEntity(String value) |
void |
writeAttribute(org.semanticweb.owlapi.model.IRI attr,
String val)
Writes an attribute of the last element to be started (that has not been
closed).
|
void |
writeAttribute(String attr,
String val)
Writes an attribute of the last element to be started (that has not been
closed).
|
void |
writeComment(String commentText) |
void |
writeEndElement()
Writes the closing tag of the last element to be started.
|
void |
writeStartElement(org.semanticweb.owlapi.model.IRI name)
Writes the start of an element.
|
void |
writeStartElement(String name)
Writes the start of an element.
|
void |
writeTextContent(String text)
Writes a text element
|
protected Writer writer
public XMLWriterImpl(Writer writer, XMLWriterNamespaceManager xmlWriterNamespaceManager, String xmlBase)
writer - writerxmlWriterNamespaceManager - xmlWriterNamespaceManagerxmlBase - xmlBasepublic String getDefaultNamespace()
public String getXMLBase()
getXMLBase in interface XMLWriterpublic URI getXMLBaseAsURI()
public XMLWriterNamespaceManager getNamespacePrefixes()
XMLWritergetNamespacePrefixes in interface XMLWriterpublic void setEncoding(String encoding)
XMLWritersetEncoding in interface XMLWriterencoding - The encoding.public void setWrapAttributes(boolean b)
XMLWritersetWrapAttributes in interface XMLWriterb - If true then the attributes will be wrapped if they are
long. If false then no attribute wrapping will occur.public void writeStartElement(String name) throws IOException
XMLWriterwriteStartElement in interface XMLWritername - The tag name of the element to be written. This must be a valid
QName. If name is an IRI use writeStartName(IRI)IOException - if there was an IO problempublic void writeStartElement(org.semanticweb.owlapi.model.IRI name)
throws IOException
XMLWriterwriteStartElement in interface XMLWritername - The tag name of the element to be written. This must be a valid
QName.IOException - if there was an IO problempublic void writeEndElement()
throws IOException
XMLWriterwriteEndElement in interface XMLWriterIOException - if there was an IO problempublic void writeAttribute(String attr, String val)
XMLWriterwriteAttribute in interface XMLWriterattr - The name of the attributeval - The value of the attributepublic void writeAttribute(org.semanticweb.owlapi.model.IRI attr,
String val)
XMLWriterwriteAttribute in interface XMLWriterattr - The name of the attributeval - The value of the attributepublic void writeTextContent(String text)
XMLWriterwriteTextContent in interface XMLWritertext - The text to be writtenpublic void writeComment(String commentText) throws IOException
writeComment in interface XMLWritercommentText - commentTextIOException - if there was an IO problempublic void startDocument(String rootElementName) throws IOException
XMLWriterstartDocument in interface XMLWriterrootElementName - The name of the root element.IOException - if there was an IO problempublic void startDocument(org.semanticweb.owlapi.model.IRI rootElement)
throws IOException
XMLWriterstartDocument in interface XMLWriterrootElement - The iri of the root element.IOException - if there was an IO problempublic void endDocument()
throws IOException
XMLWriterendDocument in interface XMLWriterIOException - if there was an IO problemCopyright © 2014 The University of Manchester. All Rights Reserved.