org.jfor.jfor.converter
Class ParagraphBuilder

java.lang.Object
  extended byorg.jfor.jfor.converter.AbstractBuilder
      extended byorg.jfor.jfor.converter.ParagraphBuilder
All Implemented Interfaces:
IBuilder

class ParagraphBuilder
extends AbstractBuilder

Builds RtfParagraphs for fo:block elements.

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Field Summary
static java.lang.String ATTRIBUTE_FO_KEEP_TOGETHER
           
static java.lang.String TAG_FO_BLOCK
           
 
Fields inherited from class org.jfor.jfor.converter.AbstractBuilder
m_context
 
Constructor Summary
(package private) ParagraphBuilder(BuilderContext ctx)
           
 
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:block elements
 void start(java.lang.String rawName, org.xml.sax.Attributes attrs)
          called by Converter at the start of an element
 
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, toString, wait, wait, wait
 

Field Detail

TAG_FO_BLOCK

public static final java.lang.String TAG_FO_BLOCK
See Also:
Constant Field Values

ATTRIBUTE_FO_KEEP_TOGETHER

public static final java.lang.String ATTRIBUTE_FO_KEEP_TOGETHER
See Also:
Constant Field Values
Constructor Detail

ParagraphBuilder

ParagraphBuilder(BuilderContext ctx)
Method Detail

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:block elements