org.jfor.jfor.converter
Class NullBuilder

java.lang.Object
  extended byorg.jfor.jfor.converter.AbstractBuilder
      extended byorg.jfor.jfor.converter.NullBuilder
All Implemented Interfaces:
IBuilder
Direct Known Subclasses:
IgnoreChildrenNullBuilder

class NullBuilder
extends AbstractBuilder

An IBuilder that builds nothing, meant to be used for xsl:fo elements that must be ignored.

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Field Summary
 
Fields inherited from class org.jfor.jfor.converter.AbstractBuilder
m_context
 
Constructor Summary
(package private) NullBuilder(BuilderContext ctx, java.util.Set tagnames)
          create a NullBuilder that applies to all given tagnames
 
Method Summary
 void end()
          called by Converter at the end of an element
 IBuilder getBuilder(BuilderContext ctx, java.lang.String rawName, org.xml.sax.Attributes atts)
          return a NullBuilder according to the list of tagnames to ignore.
 void start(java.lang.String rawName, org.xml.sax.Attributes atts)
          called by Converter at the start of an element
 
Methods inherited from class org.jfor.jfor.converter.AbstractBuilder
attributeIsSet, attributeIsSet, characters, 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
 

Constructor Detail

NullBuilder

NullBuilder(BuilderContext ctx,
            java.util.Set tagnames)
create a NullBuilder that applies to all given tagnames

Parameters:
tagnames - Set of String. If null, this builder applies to all tagnames.
Method Detail

start

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


end

public void end()
called by Converter at the end of an element


getBuilder

public IBuilder getBuilder(BuilderContext ctx,
                           java.lang.String rawName,
                           org.xml.sax.Attributes atts)
return a NullBuilder according to the list of tagnames to ignore. For explicitely ignored tagnames, returns an IgnoreChildrenNullBuilder