|
|||||||||
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.CSVWrapperFactory
public class CSVWrapperFactory
Field Summary | |
---|---|
static java.awt.Color |
CSV_COLOUR
|
static java.lang.String |
CSV_MODEL_ELEMENT
|
static java.lang.String |
CSV_MODEL_LINK
|
static java.lang.String |
CSV_MODEL_NAME
Constants |
static java.lang.String |
CSV_MODEL_PREFIX
|
static java.lang.String |
CSV_MODEL_ROOT
|
char |
separator
The separator for this file |
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
---|
automedModelName, baseName, empty, factoryInUse, SOURCE_PREFIX |
Constructor Summary | |
---|---|
CSVWrapperFactory()
Creates a new instance of CSVWrapperFactory |
Method Summary | |
---|---|
Schema |
createAutoMedSchema(AutoMedWrapper autoMedWrapper,
java.lang.String str)
Create the AutoMed schema for the CSV document |
void |
createModel()
Define the CSV model in the Automed MDR database |
Model |
getAutoMedModel()
Return the AutoMed CSV model from the Automed MDR database In this case it is the same as the source model returned by getModel() |
java.lang.String[] |
getFeatureNames()
Return a string list of features supported by this wrapper, where the first one is bit zero in the feature bit map, second bit one, etc |
Model |
getModel()
Return the CSV model from the Automed MDR database |
protected AutoMedWrapper |
newAutoMedWrapper()
Create a new empty wrapper instance that this wrapper factory is then able to populate. |
protected void |
populateSchema(AutoMedWrapper wrapper)
Create an AutoMed schema from the CSV file |
void |
setFeatures(int features)
Set the features for this instance of the factory |
Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
---|
clearFeatures, getAttributeDomains, getAutoMedModelName, getFeatures, getModelBaseName, getModelName, isFeatureInUse, safeIQL, setAttributeDomains, setFeatures, setModelBaseName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CSV_MODEL_NAME
public static final java.lang.String CSV_MODEL_ROOT
public static final java.lang.String CSV_MODEL_ELEMENT
public static final java.lang.String CSV_MODEL_LINK
public static final java.lang.String CSV_MODEL_PREFIX
public static final java.awt.Color CSV_COLOUR
public char separator
Constructor Detail |
---|
public CSVWrapperFactory()
Method Detail |
---|
public void setFeatures(int features) throws IntegrityException
setFeatures
in class AutoMedWrapperFactory
features
- a bitwise `or' of the feature flags.
By default no features are used.
IntegrityException
- if the factory is already being used for
producing wrappers. You should create a new wrapper factory for your
settings.public java.lang.String[] getFeatureNames()
getFeatureNames
in class AutoMedWrapperFactory
public void createModel() throws InconsistentException
InconsistentException
public Model getModel() throws InconsistentException
getModel
in class AutoMedWrapperFactory
InconsistentException
public Model getAutoMedModel()
getAutoMedModel
in class AutoMedWrapperFactory
public Schema createAutoMedSchema(AutoMedWrapper autoMedWrapper, java.lang.String str) throws IntegrityException, NotFoundException
createAutoMedSchema
in class AutoMedWrapperFactory
autoMedWrapper
- str
-
IntegrityException
NotFoundException
protected void populateSchema(AutoMedWrapper wrapper) throws DataSourceException
populateSchema
in class AutoMedWrapperFactory
DataSourceException
protected AutoMedWrapper newAutoMedWrapper()
AutoMedWrapperFactory
newAutoMedWrapper
in class AutoMedWrapperFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |