public interface DataFactory
| Modifier and Type | Field and Description |
|---|---|
static DataFactory |
INSTANCE
The default DataFactory.
|
| Modifier and Type | Method and Description |
|---|---|
DataObject |
create(java.lang.Class interfaceClass)
Create a DataObject supporting the given interface.
|
DataObject |
create(java.lang.String uri,
java.lang.String typeName)
Create a DataObject of the Type specified by typeName with the given package uri.
|
DataObject |
create(Type type)
Create a DataObject of the Type specified.
|
static final DataFactory INSTANCE
DataObject create(java.lang.String uri, java.lang.String typeName)
uri is null or "", then a type with null
uri will be looked up.uri - The uri of the Type.typeName - The name of the Type.java.lang.IllegalArgumentException - if the uri and typeName does
not correspond to a Type this factory can instantiate.DataObject create(java.lang.Class interfaceClass)
interfaceClass - is the interface for the DataObject's Type.java.lang.IllegalArgumentException - if the instanceClass does
not correspond to a Type this factory can instantiate.DataObject create(Type type)
type - The Type.java.lang.IllegalArgumentException - if the Type
cannot be instantiaed by this factory.