|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.generationjava.io.xml.DelegatingXmlWriter
|
+--com.generationjava.io.xml.EmptyElementXmlWriter
| Field Summary | |
static java.lang.Object |
EMPTY_MODE
Considers null and an empty string to be 'empty'. |
static java.lang.Object |
IGNORE_EMPTY_MODE
Ignores empty concepts and prints out all attributes/entities. |
static java.lang.Object |
NULL_EMPTY_MODE
Only considers null to be empty, so empty strings are outputted. |
| Constructor Summary | |
EmptyElementXmlWriter(XmlWriter xmlwriter)
Create an EmptyElementXmlWriter on top of an existing java.io.Writer. |
|
| Method Summary | |
XmlWriter |
setEmptyMode(java.lang.Object mode)
The emptiness strategy to use. |
XmlWriter |
writeAttribute(java.lang.String attr,
java.lang.Object value)
Write an attribute out for the current entity. |
XmlWriter |
writeCData(java.lang.String cdata)
Write out a chunk of CDATA. |
XmlWriter |
writeComment(java.lang.String comment)
Write out a chunk of comment. |
XmlWriter |
writeEntity(java.lang.String name)
Begin to write out an entity. |
XmlWriter |
writeText(java.lang.Object text)
Output body text. |
| Methods inherited from class com.generationjava.io.xml.DelegatingXmlWriter |
close, endEntity, getWriter, writeEmptyEntity, writeEntityWithText, writeXmlVersion, writeXmlVersion, writeXmlVersion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.Object IGNORE_EMPTY_MODE
public static java.lang.Object NULL_EMPTY_MODE
public static java.lang.Object EMPTY_MODE
| Constructor Detail |
public EmptyElementXmlWriter(XmlWriter xmlwriter)
| Method Detail |
public XmlWriter setEmptyMode(java.lang.Object mode)
public XmlWriter writeEntity(java.lang.String name)
throws java.io.IOException
DelegatingXmlWriter
writeEntity in interface XmlWriterwriteEntity in class DelegatingXmlWritername - String name of tag
java.io.IOException
public XmlWriter writeAttribute(java.lang.String attr,
java.lang.Object value)
throws java.io.IOException
DelegatingXmlWriter
writeAttribute in interface XmlWriterwriteAttribute in class DelegatingXmlWriterjava.io.IOException
public XmlWriter writeText(java.lang.Object text)
throws java.io.IOException
writeText in interface XmlWriterwriteText in class DelegatingXmlWriterjava.io.IOException
public XmlWriter writeCData(java.lang.String cdata)
throws java.io.IOException
writeCData in interface XmlWriterwriteCData in class DelegatingXmlWriterjava.io.IOException
public XmlWriter writeComment(java.lang.String comment)
throws java.io.IOException
writeComment in interface XmlWriterwriteComment in class DelegatingXmlWriterjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||