uk.ac.ic.doc.automed.wrappers
Class YattaWrapperFactory
java.lang.Object
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
|
+--uk.ac.ic.doc.automed.wrappers.YattaWrapperFactory
- public class YattaWrapperFactory
- extends AutoMedWrapperFactory
A YattaWrapperFactory class able to produce YattaWrapper
instances, together with any data (schema, ssdformat, etc.)
that the wrapper requires to be present in the repository.
- Author:
- Sasivimol Kittivoravitkul
(sk297@doc.ic.ac.uk)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YATTA_MODEL_ROOTNODE
public static final java.lang.String YATTA_MODEL_ROOTNODE
- See Also:
- Constant Field Values
YATTA_MODEL_YATTANODE
public static final java.lang.String YATTA_MODEL_YATTANODE
- See Also:
- Constant Field Values
YATTA_MODEL_SEQUENCE
public static final java.lang.String YATTA_MODEL_SEQUENCE
- See Also:
- Constant Field Values
YATTA_MODEL_ROOTORYATTA
public static final java.lang.String YATTA_MODEL_ROOTORYATTA
- See Also:
- Constant Field Values
YattaWrapperFactory
public YattaWrapperFactory()
getModel
public Model getModel()
- Return the source oriented
Model, YATTA Model, used to
represent the semistructured datasource.
- Specified by:
getModel in class AutoMedWrapperFactory
getAutoMedModel
public Model getAutoMedModel()
- Return the AutoMed oriented
Model, which is the same as
the source oriented Model for the semistructured datasource
- Specified by:
getAutoMedModel in class AutoMedWrapperFactory
populateSchema
public void populateSchema(AutoMedWrapper wrapper)
throws DataSourceException
- Read the metadata from the wrapper connection, and store in the Schema
and SSDFormat within the wrapper. To be called by YattaWrapper instancees as part of the wrapper creation process.
- Specified by:
populateSchema in class AutoMedWrapperFactory
DataSourceException
createAutoMedSchema
public Schema createAutoMedSchema(AutoMedWrapper wrapper,
java.lang.String schemaName)
throws IntegrityException,
NotFoundException
- Create an AutoMed oriented schema from the source
oriented schema.
- Specified by:
createAutoMedSchema in class AutoMedWrapperFactory
- Parameters:
wrapper - A wrapper containing the source oriented Schema from which the AutoMed oriented Schema should be
produced.schemaName - name of the new AutoMed construct oriented schema
that is to be created from the source oriented schema. This schema must
not yet exist.
- Throws:
IntegrityException - if schemaName already exists.
NotFoundException - if you have not previously wrapped the
datasource as a source oriented schema, using either #AutoMedWrapper.getSchema(String) or #AutoMedWrapper.selectNewAutoMedWrapper