|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.model.DefaultModelFactory
public class DefaultModelFactory
retrieves the desired IModel
based upon the raven:model
attribute value of the <rulebase> element.
Constructor Summary | |
---|---|
protected |
DefaultModelFactory()
|
Method Summary | |
---|---|
static DefaultModelFactory |
getInstance()
retrieve the instance of this default factory implementation. |
IModel |
resolveModel(Class type)
find a model instance that supports the given type. |
IModel |
resolveModel(String model)
retrieve an IModel object for the given model type. |
IModel |
resolveModel(String modelName,
boolean useCache)
retrieve an IModel object for the given model type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultModelFactory()
Method Detail |
---|
public static DefaultModelFactory getInstance()
public IModel resolveModel(String model)
IModel
object for the given model type. If
a call to this method with the specified type has previously resulted in an IModel
object being created, that previously created instance will be returned.
The IBM Rule-based Accessibility Validation Environment currently supports the following models:
resolveModel
in interface IModelFactory
model
- -- model name as defined in the model extension
resolveModel(String, boolean)
public IModel resolveModel(String modelName, boolean useCache)
IModel
object for the given model type. If
a call to this method with the specified type has previously resulted in an IModel
object being created and the useCache parameter is true
,
that previously created instance will be returned.
The IBM Rule-based Accessibility Validation Environment currently supports the following models:
modelName
- -- model name as defined in the model extensionuseCache
- -- if true
any previously instantiated model of the specified
type will be used else a new IModel
object will be createdpublic IModel resolveModel(Class type)
Configuration.MODEL_BASE_TYPE
key. This attribute
wil be examined for each model type that has been placed into the Configuration.ACTF_ID
pool of the active
configuration instance.
If more than one model supports the given type, which model
type is returned is indeterminant. A cached IModel
instance is always used by this method when available.
type
- - type for which an model instance is desired
null
if no
model can be found that supports the given typeIConfiguration.MODEL_BASE_TYPE
,
IConfiguration.getModelTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |