Package org.hl7.fhir.utilities.xml
Interface IXMLWriter
-
- All Known Implementing Classes:
XMLWriter
public interface IXMLWriter
Generalize- Author:
- dennisn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanabbreviationDefined(String abbreviation)voidanchor(String name)voidattribute(String name, String value)voidattribute(String name, String value, boolean onlyIfNotEmpty)voidattribute(String namespace, String name, String value)voidattribute(String namespace, String name, String value, boolean onlyIfNotEmpty)voidattributeNoLines(String name, String value)voidcData(String text)voidcomment(String comment, boolean doPretty)voiddecorate(ElementDecoration decoration)voidelement(String name)voidelement(String name, String content)voidelement(String name, String content, boolean onlyIfNotEmpty)voidelement(String namespace, String name, String content)voidelement(String namespace, String name, String content, boolean onlyIfNotEmpty)voidelement(String namespace, String name, String content, String comment)voidend()voidendCommentBlock()voidenter(String name)voidenter(String namespace, String name)voidenter(String namespace, String name, String comment)voidescapedText(String content)voidexit()voidexit(String name)voidexit(String namespace, String name)voidexitToLevel(int count)StringgetDefaultNamespace()booleanisPretty()voidlink(String href)voidnamespace(String namespace)voidnamespace(String namespace, String abbreviation)booleannamespaceDefined(String namespace)voidsetDefaultNamespace(String namespace)voidsetPretty(boolean pretty)voidsetSchemaLocation(String ns, String loc)voidstart()voidstartCommentBlock()Start comment inserts a so the comment doesn't close prematurely.voidtext(String content)voidtext(String content, boolean dontEscape)voidwriteBytes(byte[] bytes)
-
-
-
Method Detail
-
start
void start() throws IOException
- Throws:
IOException
-
end
void end() throws IOException
- Throws:
IOException
-
attribute
void attribute(String namespace, String name, String value, boolean onlyIfNotEmpty) throws IOException
- Throws:
IOException
-
attribute
void attribute(String namespace, String name, String value) throws IOException
- Throws:
IOException
-
attribute
void attribute(String name, String value, boolean onlyIfNotEmpty) throws IOException
- Throws:
IOException
-
attribute
void attribute(String name, String value) throws IOException
- Throws:
IOException
-
attributeNoLines
void attributeNoLines(String name, String value) throws IOException
- Throws:
IOException
-
namespaceDefined
boolean namespaceDefined(String namespace)
-
abbreviationDefined
boolean abbreviationDefined(String abbreviation)
-
getDefaultNamespace
String getDefaultNamespace()
-
namespace
void namespace(String namespace) throws IOException
- Throws:
IOException
-
setDefaultNamespace
void setDefaultNamespace(String namespace) throws IOException
- Throws:
IOException
-
namespace
void namespace(String namespace, String abbreviation) throws IOException
- Throws:
IOException
-
comment
void comment(String comment, boolean doPretty) throws IOException
- Throws:
IOException
-
decorate
void decorate(ElementDecoration decoration) throws IOException
- Throws:
IOException
-
setSchemaLocation
void setSchemaLocation(String ns, String loc) throws IOException
- Throws:
IOException
-
enter
void enter(String name) throws IOException
- Throws:
IOException
-
enter
void enter(String namespace, String name) throws IOException
- Throws:
IOException
-
enter
void enter(String namespace, String name, String comment) throws IOException
- Throws:
IOException
-
exit
void exit() throws IOException
- Throws:
IOException
-
exit
void exit(String name) throws IOException
- Throws:
IOException
-
exit
void exit(String namespace, String name) throws IOException
- Throws:
IOException
-
exitToLevel
void exitToLevel(int count) throws IOException
- Throws:
IOException
-
element
void element(String namespace, String name, String content, boolean onlyIfNotEmpty) throws IOException
- Throws:
IOException
-
element
void element(String namespace, String name, String content, String comment) throws IOException
- Throws:
IOException
-
element
void element(String namespace, String name, String content) throws IOException
- Throws:
IOException
-
element
void element(String name, String content, boolean onlyIfNotEmpty) throws IOException
- Throws:
IOException
-
element
void element(String name, String content) throws IOException
- Throws:
IOException
-
element
void element(String name) throws IOException
- Throws:
IOException
-
text
void text(String content) throws IOException
- Throws:
IOException
-
text
void text(String content, boolean dontEscape) throws IOException
- Throws:
IOException
-
cData
void cData(String text) throws IOException
- Throws:
IOException
-
writeBytes
void writeBytes(byte[] bytes) throws IOException
- Throws:
IOException
-
isPretty
boolean isPretty() throws IOException
- Throws:
IOException
-
setPretty
void setPretty(boolean pretty) throws IOException
- Throws:
IOException
-
startCommentBlock
void startCommentBlock() throws IOException
Start comment inserts a so the comment doesn't close prematurely.- Throws:
IOException
-
endCommentBlock
void endCommentBlock() throws IOException
- Throws:
IOException
-
escapedText
void escapedText(String content) throws IOException
- Throws:
IOException
-
-