org.jfor.jfor.converter
Class ExternalGraphicBuilder

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

 class ExternalGraphicBuilder
extends AbstractBuilder

An IBuilder that handles fo:external-graphic

Author:
Andreas Putz

Field Summary
 
Fields inherited from class org.jfor.jfor.converter.AbstractBuilder
m_context
 
Constructor Summary
ExternalGraphicBuilder(BuilderContext ctx)
          Default constructor.
 
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 attr)
          Return the appropriate builder for given element if we have one.
 boolean ignoreChildren()
          Ignores child nodes.
 void start(java.lang.String rawName, org.xml.sax.Attributes attr)
          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, postEnd, preStart, useForChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalGraphicBuilder

public ExternalGraphicBuilder(BuilderContext ctx)
Default constructor.

Parameters:
ctx - a BuilderContext value
Method Detail

getBuilder

public IBuilder getBuilder(BuilderContext ctx,
                           java.lang.String rawName,
                           org.xml.sax.Attributes attr)
Return the appropriate builder for given element if we have one.

Parameters:
ctx - a BuilderContext value
rawName - a String value
attr - an Attributes value
Returns:
an IBuilder value

start

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

Parameters:
rawName - a String value
attr - an Attributes value
Throws:
java.io.IOException - if an error occurs

end

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

Throws:
java.io.IOException - if an error occurs

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
Parameters:
str - a String value
Throws:
java.io.IOException - if an error occurs

ignoreChildren

public boolean ignoreChildren()
Ignores child nodes.

Specified by:
ignoreChildren in interface IBuilder
Overrides:
ignoreChildren in class AbstractBuilder
Returns:
true xsl:fo elements that are children of an element using this builder must be ignored\n false xsl:fo elements that are children of an element using this builder will not be ignored