org.jfor.jfor.converter
Class TextBuilder

java.lang.Object
  extended by org.jfor.jfor.converter.AbstractBuilder
      extended by org.jfor.jfor.converter.TextBuilder
All Implemented Interfaces:
IBuilder

 class TextBuilder
extends AbstractBuilder

Builds RtfText objects for fo:inline, also used by ParagraphBuilder to process text

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Field Summary
 
Fields inherited from class org.jfor.jfor.converter.AbstractBuilder
m_context
 
Constructor Summary
TextBuilder(BuilderContext ctx)
           
TextBuilder(BuilderContext ctx, IRtfTextContainer c)
          allows this to be used by other builders
 
Method Summary
 void characters(java.lang.String str)
          called by the parser for Text nodes
 void end()
          called by Converter at the end of an element
 IBuilder getBuilder(BuilderContext ctx, java.lang.String rawName, org.xml.sax.Attributes atts)
          this builder processes fo:inline elements
 void start(java.lang.String rawName, org.xml.sax.Attributes attrs)
          called by Converter at the start of an element
 java.lang.String toString()
          debugging info
 
Methods inherited from class org.jfor.jfor.converter.AbstractBuilder
attributeIsSet, attributeIsSet, getAttribute, getAttribute, getValue, getValue, hasAttributeValue, hasAttributeValue, ignoreChildren, postEnd, preStart, useForChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextBuilder

TextBuilder(BuilderContext ctx)

TextBuilder

TextBuilder(BuilderContext ctx,
            IRtfTextContainer c)
      throws ConverterException
allows this to be used by other builders

Throws:
ConverterException
See Also:
ParagraphBuilder
Method Detail

toString

public java.lang.String toString()
debugging info

Overrides:
toString in class java.lang.Object

start

public void start(java.lang.String rawName,
                  org.xml.sax.Attributes attrs)
           throws java.io.IOException
called by Converter at the start of an element

Throws:
java.io.IOException

end

public void end()
         throws java.io.IOException
called by Converter at the end of an element

Throws:
java.io.IOException

characters

public void characters(java.lang.String str)
                throws java.io.IOException
called by the parser for Text nodes

Specified by:
characters in interface IBuilder
Overrides:
characters in class AbstractBuilder
Throws:
java.io.IOException

getBuilder

public IBuilder getBuilder(BuilderContext ctx,
                           java.lang.String rawName,
                           org.xml.sax.Attributes atts)
this builder processes fo:inline elements