|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfor.jfor.converter.BuilderContext
class BuilderContext
A BuilderContext is shared between all IBuilders when building an RTF document
Field Summary | |
---|---|
(package private) ConverterLogChannel |
log
log channel |
(package private) IRtfOptions |
m_options
Rtf options |
Constructor Summary | |
---|---|
BuilderContext(java.io.Writer w,
ConverterLogChannel theLog,
IRtfOptions rtfOptions)
|
Method Summary | |
---|---|
(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
ConverterLogChannel log
IRtfOptions m_options
Constructor Detail |
---|
BuilderContext(java.io.Writer w, ConverterLogChannel theLog, IRtfOptions rtfOptions) throws java.io.IOException
java.io.IOException
Method Detail |
---|
IBuilder getBuilder(java.lang.Class builderClass, boolean required) throws ConverterException
ConverterException
RtfContainer 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 found
ConverterException
void pushContainer(RtfContainer c)
void replaceContainer(RtfContainer oldC, RtfContainer newC) throws ConverterException
ConverterException
void popContainer()
void pushBuilder(IBuilder b)
IBuilder popBuilderAndGetPreviousOne()
RtfFile getRtfFile()
TableContext getTableContext()
void pushTableContext(TableContext tc)
void popTableContext()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |