class BuilderContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) ConverterLogChannel |
log
log channel
|
(package private) IRtfOptions |
m_options
Rtf options
|
| Constructor and Description |
|---|
BuilderContext(java.io.Writer w,
ConverterLogChannel theLog,
IRtfOptions rtfOptions) |
| Modifier and Type | Method and Description |
|---|---|
(package private) IBuilder |
getBuilder(java.lang.Class builderClass,
boolean required)
find the "nearest" IBuilder of given class
|
(package private) RtfContainer |
getContainer(java.lang.Class containerClass,
boolean required,
IBuilder forWhichBuilder)
find the "nearest" container that implements the given interface on our stack
|
(package private) RtfFile |
getRtfFile()
return the RtfFile that we're building
|
(package private) TableContext |
getTableContext()
return the current TableContext
|
(package private) IBuilder |
popBuilderAndGetPreviousOne()
pop the topmost IBuilder from our stack and return previous builder on stack
|
(package private) void |
popContainer()
pop the topmost RtfContainer from our stack
|
(package private) void |
popTableContext()
pop a TableContext from our stack
|
(package private) void |
pushBuilder(IBuilder b)
push an IBuilder to our stack
|
(package private) void |
pushContainer(RtfContainer c)
push an RtfContainer on our stack
|
(package private) void |
pushTableContext(TableContext tc)
push a TableContext to our stack
|
(package private) void |
replaceContainer(RtfContainer oldC,
RtfContainer newC)
in some cases an RtfContainer must be replaced by another one on the stack.
|
ConverterLogChannel log
IRtfOptions m_options
BuilderContext(java.io.Writer w,
ConverterLogChannel theLog,
IRtfOptions rtfOptions)
throws java.io.IOException
java.io.IOExceptionIBuilder getBuilder(java.lang.Class builderClass, boolean required) throws ConverterException
ConverterExceptionRtfContainer getContainer(java.lang.Class containerClass, boolean required, IBuilder forWhichBuilder) throws ConverterException
required - if true, ConverterException is thrown if no container foundforWhichBuilder - used in error message if container not foundConverterExceptionvoid pushContainer(RtfContainer c)
void replaceContainer(RtfContainer oldC, RtfContainer newC) throws ConverterException
ConverterExceptionvoid popContainer()
void pushBuilder(IBuilder b)
IBuilder popBuilderAndGetPreviousOne()
RtfFile getRtfFile()
TableContext getTableContext()
void pushTableContext(TableContext tc)
void popTableContext()