fipaos.parser.datamapping
Interface DataMapperFactory.Creator
- public static interface DataMapperFactory.Creator
This is a functoid class. Every active subclass of
DataMapper
passes an instance of this class to the
register()
function of DataMapperFactory
. The
createDataMapper()
function of
DataMapperFactory.Creator
creates instances of DataMapper if appropriate
based upon the constraints passed to it.
Method Summary |
DataMapper | createDataMapper(String url, String document, String schema) Each DataMapper implementation will implement this function to return a
DataMapper instance for those instance documents that it supports. |
DataMapper | createDataMapper(List properties) Each DataMapper implementation will implement this function
in order to return a DataMapper instance for the required properties |
createDataMapper
public DataMapper createDataMapper(String url, String document, String schema)
- Each
DataMapper
implementation will implement this function to return a
DataMapper
instance for those instance documents that it supports.- Parameters:
- url - The (optional) url of the document
- document - The (optional) document
- schema - An (optional) document containing meta-data associated with
the document or its syntax - Returns: A DataMapper instance to deal with the document type provided, or null
createDataMapper
public DataMapper createDataMapper(List properties)
- Each
DataMapper
implementation will implement this function
in order to return a DataMapper
instance for the required properties- Parameters:
- properties - A
List
of String
's which describe properties
that the DataMapper
instance return MUST support.
These could either be specific to the DataMapper
implementation,
or one of the contants defined in the DataMapper
interface