Package cdc.util.xml
Class XmlWriterContext
- java.lang.Object
-
- cdc.util.xml.XmlWriterContext
-
final class XmlWriterContext extends Object
Used to manage the writer current context. Contexts are chained and reused. The number of created contexts matches the XML depth.- Author:
- Damien Carbonne
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XmlWriterContext.Type
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description XmlWriterContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) String
getName()
(package private) XmlWriterContext.Type
getType()
(package private) XmlWriterContext
popAll()
(package private) XmlWriterContext
popContext()
void
print(String message)
(package private) XmlWriterContext
pushContext(XmlWriterContext.Type type)
(package private) void
setName(String name)
(package private) void
setType(XmlWriterContext.Type type)
String
toString()
-
-
-
Method Detail
-
pushContext
XmlWriterContext pushContext(XmlWriterContext.Type type)
-
popContext
final XmlWriterContext popContext()
-
popAll
final XmlWriterContext popAll()
-
getType
final XmlWriterContext.Type getType()
-
setType
final void setType(XmlWriterContext.Type type)
-
setName
final void setName(String name)
-
getName
final String getName()
-
print
public void print(String message)
-
-