net.groboclown.xml.xdstates.v1
Class Factory

java.lang.Object
  |
  +--net.groboclown.xml.xdstates.v1.Factory

public class Factory
extends Object

The factory for generating data for modules.

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

Field Summary
private  HashMap items
           
protected static Factory s_instance
           
 
Constructor Summary
protected Factory()
           
 
Method Summary
 IAttribute createAttribute(String name, String value, IAttributeMap map)
           
 IItem createItem(String data)
           
 IDataList createList(IDataList orig, IItem[] items)
           
 IDataList createList(IDataList orig, List lists)
          The list contains elements which are either IDataList parts, or IItem parts.
 ISet createSet(IAttribute[] attr, IItem[] items)
           
 ISet createSet(List attr, List items)
           
static Factory getInstance()
           
 StateIteratorLoader getLoader()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

s_instance

protected static Factory s_instance

items

private HashMap items
Constructor Detail

Factory

protected Factory()
Method Detail

getInstance

public static Factory getInstance()

getLoader

public StateIteratorLoader getLoader()

createSet

public ISet createSet(IAttribute[] attr,
                      IItem[] items)

createSet

public ISet createSet(List attr,
                      List items)

createItem

public IItem createItem(String data)

createAttribute

public IAttribute createAttribute(String name,
                                  String value,
                                  IAttributeMap map)

createList

public IDataList createList(IDataList orig,
                            IItem[] items)

createList

public IDataList createList(IDataList orig,
                            List lists)
The list contains elements which are either IDataList parts, or IItem parts. This contatenates the lists together, and creates a new IDataList with the parts from the orig, but the items from the lists.


Written under the LGPL