org.openrdf.query.parser
Class ParsedQuery

java.lang.Object
  extended by org.openrdf.query.parser.ParsedQuery
Direct Known Subclasses:
ParsedBooleanQuery, ParsedGraphQuery, ParsedTupleQuery

public abstract class ParsedQuery
extends Object

Abstract super class of all query types that a query parser can generate.

Author:
Arjohn Kampman

Constructor Summary
ParsedQuery()
          Creates a new query object.
ParsedQuery(TupleExpr tupleExpr)
          Creates a new query object.
ParsedQuery(TupleExpr tupleExpr, Dataset dataset)
          Creates a new query object.
 
Method Summary
 Dataset getDataset()
           
 TupleExpr getTupleExpr()
          Gets the tuple expression underlying this query.
 void setDataset(Dataset dataset)
           
 void setTupleExpr(TupleExpr tupleExpr)
          Gets the tuple expression underlying this query.
 String toString()
          Returns a string representation of the query that can be used for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsedQuery

public ParsedQuery()
Creates a new query object. To complete this query, a tuple expression needs to be supplied to it using setTupleExpr(TupleExpr).


ParsedQuery

public ParsedQuery(TupleExpr tupleExpr)
Creates a new query object.

Parameters:
tupleExpr - The tuple expression underlying this query.

ParsedQuery

public ParsedQuery(TupleExpr tupleExpr,
                   Dataset dataset)
Creates a new query object.

Parameters:
tupleExpr - The tuple expression underlying this query.
Method Detail

setTupleExpr

public void setTupleExpr(TupleExpr tupleExpr)
Gets the tuple expression underlying this query.


getTupleExpr

public TupleExpr getTupleExpr()
Gets the tuple expression underlying this query.


getDataset

public Dataset getDataset()

setDataset

public void setDataset(Dataset dataset)

toString

public String toString()
Returns a string representation of the query that can be used for debugging.

Overrides:
toString in class Object


Copyright © 2001-2008 Aduna. All Rights Reserved.