Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jfor.jfor.converter
Class NullBuilder  view NullBuilder download NullBuilder.java

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.


Field Summary
private  java.util.Set m_tagnames
           
 
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
 

Field Detail

m_tagnames

private final java.util.Set m_tagnames
Constructor Detail

NullBuilder

NullBuilder(BuilderContext ctx,
            java.util.Set tagnames)
create a NullBuilder that applies to all given 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