| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.persistence.config
public class SchemaConfigParser
Parses a XML based schema configuration. schema.xsd
Uses xpath to query
fields, and relies on DbConfigurationParser to parse the keeper
definitions.
DOM based parsing.
Author:
msimonsen
| Field Summary |
private final static String |
|
private final static Logger |
|
| Method Summary |
|
|
|
parse(InputSource source) |
|
parse(InputStream stream) |
private final static String className
Final.
Multiplicity:
1
Static.
private final static Logger logger
Final.
Multiplicity:
1
Static.
Parses the Node to construct a Schema Config Object.
The Schema Config Object is composed of a ConnectionConfig object and a List of
dbKeeperConfig Objects.
TODO: Can be later enhanced to have specific connectionParsers?
Constructing/Parsing the ConnectionConfig Object.
Constructing the list of dbKeeperConfig objects..
Parameters:
node
Exceptions:
PersistenceException - Error in Parsing Schema
Return:
SchemaConfig Object.
Throws:
PersistenceException
Returns a parsed SchemaConfig. Returns null if the file can not
be parsed.
Parameters:
source
Exceptions:
PersistenceException - throws PersistenceException upon parsing errors.
Return:
The schema configuration.
Throws:
PersistenceException
Returns a parsed SchemaConfig from an inputstream. Returns null
if the file can not be parsed.
Parameters:
stream
Exceptions:
PersistenceException - throws PersistenceException upon parsing errors.
Return:
The schema configuration.
Throws:
PersistenceException
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|