public interface DataFactory
Modifier and Type | Field and Description |
---|---|
static DataFactory |
INSTANCE
The default DataFactory.
|
Modifier and Type | Method and Description |
---|---|
DataObject |
create(Class interfaceClass)
Create a DataObject supporting the given interface.
|
DataObject |
create(String uri,
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(String uri, 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.IllegalArgumentException
- if the uri and typeName does
not correspond to a Type this factory can instantiate.DataObject create(Class interfaceClass)
interfaceClass
- is the interface for the DataObject's Type.IllegalArgumentException
- if the instanceClass does
not correspond to a Type this factory can instantiate.DataObject create(Type type)
type
- The Type.IllegalArgumentException
- if the Type
cannot be instantiaed by this factory.Copyright © 2017–2020 Eclipse.org - EclipseLink Project. All rights reserved.