public class BuilderContext
extends java.lang.Object
Constructor and Description |
---|
BuilderContext(IRtfOptions rtfOptions) |
Modifier and Type | Method and Description |
---|---|
RtfContainer |
getContainer(java.lang.Class containerClass,
boolean required,
java.lang.Object forWhichBuilder)
find the "nearest" container that implements the given interface on our stack
|
TableContext |
getTableContext()
return the current TableContext
|
void |
popContainer()
pop the topmost RtfContainer from our stack
|
void |
popTableContext()
pop a TableContext from our stack
|
void |
pushContainer(RtfContainer c)
push an RtfContainer on our stack
|
void |
pushTableContext(TableContext tc)
push a TableContext to our stack
|
void |
replaceContainer(RtfContainer oldC,
RtfContainer newC)
In some cases an RtfContainer must be replaced by another one on the
stack.
|
public BuilderContext(IRtfOptions rtfOptions)
public RtfContainer getContainer(java.lang.Class containerClass, boolean required, java.lang.Object forWhichBuilder) throws RtfException
required
- if true, ConverterException is thrown if no container foundforWhichBuilder
- used in error message if container not foundRtfException
public void pushContainer(RtfContainer c)
public void replaceContainer(RtfContainer oldC, RtfContainer newC) throws java.lang.Exception
java.lang.Exception
public void popContainer()
public TableContext getTableContext()
public void pushTableContext(TableContext tc)
public void popTableContext()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.