uk.org.ogsadai.converters.databaseschema.fromxml
Class XMLToSchemaConverter
java.lang.Object
|
+--uk.org.ogsadai.converters.databaseschema.fromxml.XMLToSchemaConverter
- public class XMLToSchemaConverter
- extends java.lang.Object
Convert a fragment of XML in a org.w3c.dom.Element
into a DatabaseSchemaMetaData
object.
- Author:
- The OGSA-DAI Team.
- See Also:
TableMetaData
Method Summary |
static DatabaseSchemaMetaData |
convert(org.w3c.dom.Element schema)
Converts an XML element into a database schema object. |
private static org.w3c.dom.Element |
getLogicalSchemaElement(org.w3c.dom.Element databaseSchema)
Extracts the logicalSchema element from the databaseSchema element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
Copyright statement.
- See Also:
- Constant Field Values
DATABASE_SCHEMA_ELT
public static final java.lang.String DATABASE_SCHEMA_ELT
-
Local name of JDBC database schema
- See Also:
- Constant Field Values
LOGICAL_SCHEMA_ELT
public static final java.lang.String LOGICAL_SCHEMA_ELT
-
Local name of JDBC logical schema
- See Also:
- Constant Field Values
XMLToSchemaConverter
public XMLToSchemaConverter()
convert
public static DatabaseSchemaMetaData convert(org.w3c.dom.Element schema)
throws RelationalSchemaParseException
-
Converts an XML element into a database schema object.
-
- Parameters:
schema
- XML representation of a database schema.
- Returns:
- database schema object.
- Throws:
RelationalSchemaParseException
- if there is a problem during the parse, in particular if an expected element is missing from the XML.
getLogicalSchemaElement
private static org.w3c.dom.Element getLogicalSchemaElement(org.w3c.dom.Element databaseSchema)
throws RelationalSchemaParseException
-
Extracts the
logicalSchema
element from the databaseSchema
element.
-
- Parameters:
databaseSchema
- Element
corresponding to the databaseSchema
element.
- Returns:
Element
corresponding to the logicalSchema
element.
- Throws:
RelationalSchemaParseException
- if there is a problem during the parse, in particular if an expected element is missing from the XML.