gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc
Class QueryParser

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc.QueryParser

public class QueryParser
extends Object

Parses that is responsible to extract form the input to the service query string all the available information need by the wrapper. It expects to find as first level elements in the xml query string the query, the driverName and the connectionString

Author:
UoA

Constructor Summary
QueryParser(String queryString)
          Creates a new QueryParser
QueryParser(URI queryString)
           
 
Method Summary
 String getConnectionString()
          Retrieves the content of the connectionString element
 String getDriverName()
          Retrieves the content of the driverName element
 String getQuery()
          Retrieves the content of the query element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParser

public QueryParser(String queryString)
            throws Exception
Creates a new QueryParser

Parameters:
queryString - The query string to parse
Throws:
Exception - An unrecoverable fo the operation error occured

QueryParser

public QueryParser(URI queryString)
            throws Exception
Throws:
Exception
Method Detail

getQuery

public String getQuery()
                throws Exception
Retrieves the content of the query element

Returns:
The retrieved query
Throws:
Exception - An unrecoverable for the operation error occured

getDriverName

public String getDriverName()
                     throws Exception
Retrieves the content of the driverName element

Returns:
The retrieved driverName
Throws:
Exception - An unrecoverable for the operation error occured

getConnectionString

public String getConnectionString()
                           throws Exception
Retrieves the content of the connectionString element

Returns:
The retrieved connectionString
Throws:
Exception - An unrecoverable for the operation error occured


Copyright © 2013. All Rights Reserved.