|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecteworks.RQL.model.Range
An abstract base class for classes that represent RQL ranges.
A RQL range is used to define a query's "data source", that's the expression after "FROM" according to the RQL syntax. A range is compareable to the list of table names (after "FROM" as well) according to the SQL syntax.
| Field Summary | |
protected String |
expression
This range's expression, used for toString(). |
protected Model |
model
The RDF model to which this range is bound. |
| Constructor Summary | |
Range(String expression)
Creates a new range that is defined by the given expression. |
|
| Method Summary | |
void |
bindModel(Model model)
Binds this range to a certain model. |
abstract void |
bindSymbols(SymbolTable symbols)
Binds the current hit's values to some symbols. |
abstract boolean |
hasMoreHits()
Checks if there are more hits that can be iteratively retrieved using nextHit(). |
abstract void |
nextHit()
Gets the next hit, if any. |
abstract void |
reset()
Resets this range so that a succeeding call of nextHit()
will return the first hit (if any). |
String |
toString()
Returns this range's string representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String expression
toString().
toString()protected Model model
| Constructor Detail |
public Range(String expression)
expression - The expression that defines this range according to
the RQL syntax.| Method Detail |
public String toString()
public void bindModel(Model model)
model - The model this range is bound to.
public abstract void reset()
throws NoModelBoundException
nextHit()
will return the first hit (if any).
NoModelBoundException - if no model has been bound using
bindModel().nextHit(),
bindModel(Model)
public abstract boolean hasMoreHits()
throws NoModelBoundException
nextHit().
true if and only if there are more hits.
NoModelBoundException - if no model has been bound using
bindModel().nextHit(),
bindModel(Model)
public abstract void nextHit()
throws NoModelBoundException,
NoSuchElementException
hasMoreHits()
before to ensure that there is a further hit. After calling this method
bindSymbols() can be used to bind the next hit's values to
some symbols.
NoModelBoundException - if no model has been bound using
bindModel().
NoSuchElementException - if there is no further hit.hasMoreHits(),
bindSymbols(SymbolTable),
bindModel(Model)
public abstract void bindSymbols(SymbolTable symbols)
throws NoModelBoundException,
VariableAlreadyBoundException,
URISyntaxException
hasMoreHits() and nextHit() to ensure that
there is are some hits and to navigate iteratively forward trough them.
NoModelBoundException - if no model has been bound using
bindModel().
NoSuchElementException - if there is no current hit.
VariableAlreadyBoundException - if the used variable has already
been bound to another value.
URISyntaxException - if a ressource is no valid URI, see
Universal Resource identifiers in WWW.hasMoreHits(),
nextHit(),
bindModel(Model)
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||