com.ontotext.ordi
Class Factory
java.lang.Object
com.ontotext.ordi.Factory
public final class Factory
- extends Object
This class contains methods to instantiate instances of ORDI data model or
domain specific models as WSMO4J layered on top of it.
Default settings are supported in the optional file "ordi.properties".
The class cannot be instantiated it has only static method.
- Author:
- vassil
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORDI_MODEL_DEAULT_PROPERTIES
public static final String ORDI_MODEL_DEAULT_PROPERTIES
- See Also:
- Constant Field Values
ORDI_MODEL_IMPLEMENTATION
public static final String ORDI_MODEL_IMPLEMENTATION
Factory
public Factory()
createDefaultTSource
public static TSource createDefaultTSource()
- Creates a new instance of ORDI data model, based on the default settings.
The class to instantiate is defined by ordi_model_implementation. All
properties described in the file are supplied to the constructor of class
to instantiate.
- Returns:
- object to implement ORDI data model
createTSource
public static TSource createTSource(Map<Object,Object> map)
- Creates a new instance of ORDI data model, based on the default and
runtime settings. The runtime settings have higher priority than the
default settings. The class to instantiate is defined by
ordi_model_implementation. All properties described in the file are
supplied to the constructor of class to instantiate.
- Parameters:
map
- runtime settings
- Returns:
- object to implement ORDI data model
create
public static <X> X create(Class<X> type,
Map<Object,Object> map)
- Creates a new instance of the supplied class type. This method is useful
for creation of domain specific models layered on top of ORDI data model
like wsmo4rdf. The method reuses also the configuration in the default
settings.
- Parameters:
type
- is interface or class to be createdmap
- is runtime configuration to be used
- Returns:
- instance of class type
Copyright © 2008. All Rights Reserved.