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 classXmlWriterContext.Type
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description XmlWriterContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) StringgetName()(package private) XmlWriterContext.TypegetType()(package private) XmlWriterContextpopAll()(package private) XmlWriterContextpopContext()voidprint(String message)(package private) XmlWriterContextpushContext(XmlWriterContext.Type type)(package private) voidsetName(String name)(package private) voidsetType(XmlWriterContext.Type type)StringtoString()
-
-
-
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)
-
-