net.groboclown.xml.xdstates.v1.impl
Class IncludeBuilder

java.lang.Object
  |
  +--net.groboclown.xml.xdstates.v1.impl.IncludeBuilder
All Implemented Interfaces:
ISetBuilder

public class IncludeBuilder
extends Object
implements ISetBuilder

Adds new classes to the builder lists.

Version:
Alpha 0.9.0 - JDK 1.0+
Author:
Matt Albrecht

Field Summary
static String NAME_RESOURCE
           
static String TAG_NAME
           
 
Constructor Summary
IncludeBuilder(ISetBuilderMap map)
           
 
Method Summary
 IItem createItem(String tagName, IAttribute[] attributes, String text, IItem[] children, IAttributeMap attrMap, ISetBuilderMap setBuilderMap, IInputStreamGenerator inputStreamGen)
          The builder will create a new IItem to be placed into the tree, as a child of the given parent.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

TAG_NAME

public static final String TAG_NAME

NAME_RESOURCE

public static final String NAME_RESOURCE
Constructor Detail

IncludeBuilder

public IncludeBuilder(ISetBuilderMap map)
Method Detail

createItem

public IItem createItem(String tagName,
                        IAttribute[] attributes,
                        String text,
                        IItem[] children,
                        IAttributeMap attrMap,
                        ISetBuilderMap setBuilderMap,
                        IInputStreamGenerator inputStreamGen)
The builder will create a new IItem to be placed into the tree, as a child of the given parent.
Specified by:
createItem in interface ISetBuilder
Parameters:
tagName - the tag name from where the item was read.
attributes - the attributes associated with the tag.
text - the plain text inside the tag.
children - all the defined children elements.
attrMap - stores the global IAttributeModule -> name mappings.
setBuilderMap - stores the global ISetBuilder -> tag name mappings.
inputStreamGen - if an external resource needs to be read, use this generator to create the new input stream.
Returns:
an IItem instance. It must be either an IItem or ISet.


Written under the LGPL