|
|||||||||
| 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.bbk.dcs.automed.xml.wrappers.XMLWrapperFactory
public abstract class XMLWrapperFactory
XMLWrapperFactory class. Contains a switch that tells the wrappers produced by the factory class to validate the XML file against a referenced schema. Nevertheless, this class also contains switches for controlling whitespace if the validating switch is off but whitespace control is still needed.
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
_logger
|
static int |
EXTRACT_USING_DOM
|
static int |
EXTRACT_USING_DTD
|
static int |
EXTRACT_USING_SAX
|
static int |
EXTRACT_USING_XML_SCHEMA
|
static int |
VALIDATING
A feature stating whether the parser of the XML file should validate the file against the accompanying XML Schema/DTD. |
static int |
WHITESPACE_COLLAPSE
A feature stating that after the processing implied by replace, contiguous sequences of #x20's are collapsed to a single #x20, and leading and trailing #x20's are removed. |
static int |
WHITESPACE_REPLACE
A feature stating that all occurrences of #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space). |
protected int |
xmldssExtractionMethod
|
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
|---|
automedModelName, baseName, empty, factoryInUse, modelName, SOURCE_PREFIX |
| Constructor Summary | |
|---|---|
XMLWrapperFactory()
Creates a new XMLWrapperFactory and sets the model name. |
|
| Method Summary | |
|---|---|
Schema |
createAutoMedSchema(AutoMedWrapper wrapper,
java.lang.String schemaName)
Create an AutoMed oriented schema from the source oriented schema. |
java.lang.String |
getAccompanyingSchemaRootName()
|
java.lang.String |
getAccompanyingSchemaURI()
|
Model |
getAutoMedModel()
Return the AutoMed oriented Model used to represent the
Schema of the datasource. |
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 source oriented Model used to represent the
Schema of the datasource. |
int |
getXMLDSSExtractionMethod()
|
protected AutoMedWrapper |
newAutoMedWrapper()
Create a new empty wrapper instance that this wrapper factory is then able to populate. |
protected void |
populateSchema(AutoMedWrapper wrapper)
Read the metadata from the wrapper connection, and store in existing Schema within the wrapper. |
void |
setAccompanyingSchemaRootName(java.lang.String rootName)
|
void |
setAccompanyingSchemaURI(java.lang.String uri)
|
void |
setXMLDSSExtractionMethod(int method)
|
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
|---|
clearFeatures, getAttributeDomains, getAutoMedModelName, getFeatures, getModelBaseName, getModelName, isFeatureInUse, safeIQL, setAttributeDomains, setFeatures, setFeatures, setModelBaseName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger _logger
protected int xmldssExtractionMethod
public static final int VALIDATING
public static final int WHITESPACE_REPLACE
public static final int WHITESPACE_COLLAPSE
public static final int EXTRACT_USING_DOM
public static final int EXTRACT_USING_SAX
public static final int EXTRACT_USING_XML_SCHEMA
public static final int EXTRACT_USING_DTD
| Constructor Detail |
|---|
public XMLWrapperFactory()
| Method Detail |
|---|
public final java.lang.String[] getFeatureNames()
getFeatureNames in class AutoMedWrapperFactorypublic void setAccompanyingSchemaURI(java.lang.String uri)
public java.lang.String getAccompanyingSchemaURI()
public void setAccompanyingSchemaRootName(java.lang.String rootName)
public java.lang.String getAccompanyingSchemaRootName()
public void setXMLDSSExtractionMethod(int method)
public int getXMLDSSExtractionMethod()
protected AutoMedWrapper newAutoMedWrapper()
AutoMedWrapperFactory
newAutoMedWrapper in class AutoMedWrapperFactorypublic final Model getModel()
AutoMedWrapperFactoryModel used to represent the
Schema of the datasource. For some wrappers, this may be
the same as AutoMed oriented Model returned by
AutoMedWrapperFactory.getAutoMedModel()
getModel in class AutoMedWrapperFactorypublic final Model getAutoMedModel()
AutoMedWrapperFactoryModel used to represent the
Schema of the datasource.
getAutoMedModel in class AutoMedWrapperFactory
public final Schema createAutoMedSchema(AutoMedWrapper wrapper,
java.lang.String schemaName)
AutoMedWrapperFactory
createAutoMedSchema in class AutoMedWrapperFactorywrapper - 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.protected void populateSchema(AutoMedWrapper wrapper)
AutoMedWrapperFactoryAutoMedWrapper
instances as part of the wrapper creation process.
populateSchema in class AutoMedWrapperFactory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||