|
Protégé-OWL 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.smi.protegex.owl.writer.xml.DefaultXMLWriter
public class DefaultXMLWriter
User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Mar 22, 2005
| Nested Class Summary | |
|---|---|
class |
DefaultXMLWriter.XMLElement
|
| Constructor Summary | |
|---|---|
DefaultXMLWriter(Writer writer,
XMLWriterNamespaceManager xmlWriterNamespaceManager)
|
|
DefaultXMLWriter(Writer writer,
XMLWriterNamespaceManager xmlWriterNamespaceManager,
String xmlBase)
|
|
| Method Summary | |
|---|---|
void |
endDocument()
Causes all open elements, including the document root element, to be closed. |
String |
getDefaultNamespace()
Gets the default namespace that the rdfwriter uses. |
XMLWriterNamespaceManager |
getNamespacePrefixes()
Gets the rdfwriter's namespace manager. |
String |
getXMLBase()
|
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(String rootElementName)
Starts writing the document. |
void |
writeAttribute(String attr,
String val)
Writes an attribute of the last element to be started (that has not been closed). |
void |
writeEndElement()
Writes the closing tag of the last element to be started. |
void |
writeStartElement(String name)
Writes the start of an element |
void |
writeStartElement(String namespace,
String name)
Writes the start of an element with namespace and a name |
void |
writeTextContent(String text)
Writes a text element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultXMLWriter(Writer writer,
XMLWriterNamespaceManager xmlWriterNamespaceManager)
public DefaultXMLWriter(Writer writer,
XMLWriterNamespaceManager xmlWriterNamespaceManager,
String xmlBase)
| Method Detail |
|---|
public String getDefaultNamespace()
XMLWriter
getDefaultNamespace in interface XMLWriterpublic String getXMLBase()
getXMLBase in interface XMLWriterpublic XMLWriterNamespaceManager getNamespacePrefixes()
XMLWriter
getNamespacePrefixes in interface XMLWriterpublic void setEncoding(String encoding)
XMLWriter
setEncoding in interface XMLWriterencoding - The encoding.public void setWrapAttributes(boolean b)
XMLWriter
setWrapAttributes in interface XMLWriter
public void writeStartElement(String name)
throws IOException
XMLWriter
writeStartElement in interface XMLWritername - The tag name of the element to be written.
IOException
public void writeStartElement(String namespace,
String name)
throws IOException
XMLWriter
writeStartElement in interface XMLWriternamespace - The namespace of the element to be written (e.g. http://smi-protege.stanford.edu/ontologes/test.owl#)
IOException
public void writeEndElement()
throws IOException
XMLWriter
writeEndElement in interface XMLWriterIOException
public void writeAttribute(String attr,
String val)
XMLWriter
writeAttribute in interface XMLWriterattr - The name of the attributeval - The value of the attributepublic void writeTextContent(String text)
XMLWriter
writeTextContent in interface XMLWritertext - The text to be written
public void startDocument(String rootElementName)
throws IOException
XMLWriter
startDocument in interface XMLWriterrootElementName - The name of the root element.
IOException
public void endDocument()
throws IOException
XMLWriter
endDocument in interface XMLWriterIOException
|
Protégé-OWL 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||