net.groboclown.xml.xdstates.v1.impl
Class XmlStatesBuilder
java.lang.Object
|
+--net.groboclown.xml.xdstates.v1.impl.XmlStatesBuilder
- All Implemented Interfaces:
- ISetBuilder
- public class XmlStatesBuilder
- extends Object
- implements ISetBuilder
Adds new classes to the builder lists.
- Version:
- Alpha 0.9.0 - JDK 1.0+
- Author:
- Matt Albrecht
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
TAG_NAME
public static final String TAG_NAME
XmlStatesBuilder
public XmlStatesBuilder(ISetBuilderMap map)
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