|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.common.frameworks.datamodel.DataModelFactory
DataModelFactory is used to create IDataModel instances.
Method Summary | |
---|---|
static IDataModel |
createDataModel(java.lang.Class dataModelProviderClass)
Looks up the appropriate IDataModelProvider using the name of the specified class. |
static IDataModel |
createDataModel(IDataModelProvider provider)
Creates a new IDataModel using the the specified instance of an IDataModelProvider. |
static IDataModel |
createDataModel(java.lang.String dataModelProviderID)
Looks up the appropriate IDataModelProvider by the specified id and constructs a new IDataModel. |
static java.lang.String[] |
getDataModelProviderIDsForKind(java.lang.String dataModelProviderKindID)
Looks up the appropriate dataModelProviderIDs by the specified dataModelProviderKindID. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IDataModel createDataModel(java.lang.String dataModelProviderID)
Looks up the appropriate IDataModelProvider by the specified id and constructs a new IDataModel. If the IDataModelProvider is not found then a RuntimeException is logged and null is returned.
dataModelProviderID
- the id of the IDataModelProvider
public static java.lang.String[] getDataModelProviderIDsForKind(java.lang.String dataModelProviderKindID)
Looks up the appropriate dataModelProviderIDs by the specified dataModelProviderKindID.
dataModelProviderKindID
- the String id of the dataModelProviderKindID
public static IDataModel createDataModel(java.lang.Class dataModelProviderClass)
Looks up the appropriate IDataModelProvider using the name of the specified class. This
method is equavalent to createDataModel(dataModelProviderClassID.getName())
.
dataModelProviderClass
- the class whose name is the id of the IDataModelProvider
public static IDataModel createDataModel(IDataModelProvider provider)
Creates a new IDataModel using the the specified instance of an IDataModelProvider.
provider
-
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |