net.ontopia.topicmaps.query.parser
Class TologParser

java.lang.Object
  extended by net.ontopia.topicmaps.query.parser.TologParser

public class TologParser
extends java.lang.Object

INTERNAL: The tolog query parser.


Field Summary
protected  ParseContextIF context
           
protected  TologOptions options
           
 
Constructor Summary
TologParser(ParseContextIF context, TologOptions options)
           
 
Method Summary
 ParseContextIF getContext()
           
 void load(java.io.Reader reader)
           
 void load(java.lang.String ruleset)
           
 ParseContextIF parseDeclarations(java.lang.String decls)
           
 TologQuery parseQuery(java.io.Reader queryReader)
          Returns a parsed SELECT statement.
 TologQuery parseQuery(java.lang.String query)
          Returns a parsed SELECT statement.
 TologStatement parseStatement(java.lang.String query)
          Returns a parsed INSERT/UPDATE/MERGE/DELETE statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected ParseContextIF context

options

protected TologOptions options
Constructor Detail

TologParser

public TologParser(ParseContextIF context,
                   TologOptions options)
Method Detail

parseQuery

public TologQuery parseQuery(java.lang.String query)
                      throws InvalidQueryException
Returns a parsed SELECT statement.

Throws:
InvalidQueryException

parseQuery

public TologQuery parseQuery(java.io.Reader queryReader)
                      throws InvalidQueryException
Returns a parsed SELECT statement.

Throws:
InvalidQueryException

parseStatement

public TologStatement parseStatement(java.lang.String query)
                              throws InvalidQueryException
Returns a parsed INSERT/UPDATE/MERGE/DELETE statement.

Throws:
InvalidQueryException

parseDeclarations

public ParseContextIF parseDeclarations(java.lang.String decls)
                                 throws InvalidQueryException
Throws:
InvalidQueryException

load

public void load(java.lang.String ruleset)
          throws InvalidQueryException
Throws:
InvalidQueryException

load

public void load(java.io.Reader reader)
          throws InvalidQueryException
Throws:
InvalidQueryException

getContext

public ParseContextIF getContext()


Copyright © 2000-2012 Ontopia.