|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.data.IDataFactory
public class IDataFactory
This class provides methods for creating an IData object.
IData
,
IDataFactory
,
IDataHashCursor
,
IDataTreeCursor
Constructor Summary | |
---|---|
IDataFactory()
|
Method Summary | |
---|---|
static IData |
create()
Creates a new, empty IData object. |
static IData |
create(int size)
Returns an IData object containing the specified number of key/value pairs. |
static IData |
create(java.lang.Object[][] values)
Creates an IData object and initializes its key/value pairs from the contents of a specified two-column array, where the first column of the array contains key names and the second column contains the values of those keys. |
static IData |
create(java.lang.String name)
Returns an IData object created from a specified class. |
static void |
register(java.lang.String name,
java.lang.String className)
Registers a concrete IData class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IDataFactory()
Method Detail |
---|
public static final IData create()
public static final IData create(int size)
size
- an int specifying the capacity of the IData object in key/value
pairs.
public static final IData create(java.lang.Object[][] values)
values
- A two-column array in the form x[key][value], where the first column of the array is
a String that specifies a key name and the second column is an Object containing
the value associated with the key. The array can have an unlimited number of rows.
IDataUtil.create(Object[][])
public static final IData create(java.lang.String name) throws java.lang.Exception
name
- A String that specifies the name of the class from which the IData
object is to be created.
java.lang.Exception
- If the specified class does not exist.public static final void register(java.lang.String name, java.lang.String className) throws java.lang.Exception
name
- A String that specifies the name under which you want to register your class.
Note that this name will be used as the key for this class in this IDataFactory objects
table of registered implementations.className
- A String that specifies the Java generated name of this class.
throws
- exception if name is already registered.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |