Class
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.persistence.config
Class SchemaConfigParser

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
protected SchemaConfig
parse(Node node)
parse(InputSource source)
parse(InputStream stream)
Field Detail
className
private final static String className
Final.
Multiplicity:
1
Static.
 

logger
private final static Logger logger
Final.
Multiplicity:
1
Static.
 
Method Detail
parse
protected SchemaConfig parse (Node node)
 
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
 

parse
public SchemaConfig parse (InputSource source)
 
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
 

parse
public SchemaConfig parse (InputStream stream)
 
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
 

Class
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD