org.jfree.layouting.normalizer.content
Class RecordingContentNormalizer
- Normalizer, StatefullComponent
public final class RecordingContentNormalizer
This class records all incoming calls and replays them later.
RecordingContentNormalizer
public RecordingContentNormalizer()
addText
public void addText(String text)
Adds text content to the current element.
- addText in interface Normalizer
endDocument
public void endDocument()
Ends the document. No other events will be fired against this normalizer
once this method has been called.
- endDocument in interface Normalizer
endElement
public void endElement()
Ends the current element. The namespace and tagname are given for
convienience.
- endElement in interface Normalizer
getElementDepth
public int getElementDepth()
getRenderer
public Renderer getRenderer()
Returns the renderer. The renderer is the last step in the processing
chain. The ModelBuilder and ContentGenerator steps are considered internal,
as they may refeed the normalizer.
- getRenderer in interface Normalizer
getText
public String getText()
invoke
protected void invoke(Object target,
int methodId,
Object params)
throws Exception
- invoke in interface ChainingComponent
startDocument
public void startDocument()
Start document is the first call to the normalizer. At this point, all
meta-data has been given and the document context is filled correctly.
Starting the document also starts a new PageContext.
- startDocument in interface Normalizer
startElement
public void startElement(String namespace,
String tag,
AttributeMap attributes)
Starts a new element. The element uses the given namespace and tagname. The
element's attributes are given as collection, each attribute is keyed with
a namespace and attributename. The values contained in the attributes are
not defined.
- startElement in interface Normalizer
namespace
- tag
- attributes
-