|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
uk.ac.ic.doc.automed.wrappers.YattaWrapperFactory
public class YattaWrapperFactory
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.
Field Summary | |
---|---|
(package private) Construct |
rootNode
|
(package private) Construct |
rootOrYatta
|
(package private) Construct |
sequence
|
(package private) Model |
yatta
|
(package private) Construct |
yattaNode
|
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
---|
modelDef |
Constructor Summary | |
---|---|
YattaWrapperFactory()
|
Method Summary | |
---|---|
Schema |
createAutoMedSchema(AutoMedWrapper wrapper,
java.lang.String schemaName)
Create an AutoMed oriented schema from the source oriented schema. |
void |
createTypeHierarchy()
|
private void |
createYattaSchemaObjects(Schema s)
Create schemaObects using information from a file "schemaName_schema" or GUI (Leave out the former case for now) |
Model |
getAutoMedModel()
Return the AutoMed oriented Model , which is the same as
the source oriented Model for the semistructured datasource |
Model |
getModel()
Return the source oriented Model , YATTA Model, used to
represent the semistructured datasource. |
protected AutoMedWrapper |
newAutoMedWrapper()
Create a new empty wrapper instance that this wrapper factory is then able to populate. |
void |
populateSchema(AutoMedWrapper wrapper)
Read the metadata from the wrapper connection, and store in the Schema and SSDFormat within the wrapper. |
Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
---|
createSchema, getAttributeDomains, getModelDefinition, safeIQL, setAttributeDomains, setModelDefinition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Model yatta
Construct rootNode
Construct yattaNode
Construct sequence
Construct rootOrYatta
Constructor Detail |
---|
public YattaWrapperFactory()
Method Detail |
---|
public Model getModel()
Model
, YATTA Model, used to
represent the semistructured datasource.
getModel
in class AutoMedWrapperFactory
public Model getAutoMedModel()
Model
, which is the same as
the source oriented Model
for the semistructured datasource
getAutoMedModel
in class AutoMedWrapperFactory
public void populateSchema(AutoMedWrapper wrapper) throws DataSourceException
populateSchema
in class AutoMedWrapperFactory
DataSourceException
public Schema createAutoMedSchema(AutoMedWrapper wrapper, java.lang.String schemaName) throws IntegrityException, NotFoundException
createAutoMedSchema
in class AutoMedWrapperFactory
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.
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
private void createYattaSchemaObjects(Schema s)
s
- A schema of the datasource which will contain schemaObjects.public void createTypeHierarchy() throws AutoMedException
AutoMedException
protected AutoMedWrapper newAutoMedWrapper()
AutoMedWrapperFactory
newAutoMedWrapper
in class AutoMedWrapperFactory
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |