|
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.RangeList
A list of single "RQL ranges" represented by
Range
-instances.
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.
Constructor Summary | |
RangeList()
Creates a new and empty range list without any encapsulated range. |
|
RangeList(Range range)
Creates a new range list encapsulating a single range. |
Method Summary | |
void |
add(Range range)
Adds a new range to this range list. |
void |
bindModel(Model model)
Binds this range list to a certain model. |
void |
bindSymbols(SymbolTable symbols)
Binds the current hit's values to some symbols. |
Range |
get(int i)
Returns the i-th range that is encapsulated by this range list. |
int |
getLength()
Returns the number of ranges encapsulated by this range list. |
boolean |
hasMoreHits()
Checks if there are more hits that can be iteratively retrieved using nextHit() . |
void |
nextHit()
Gets the next hit, if any. |
String |
toString()
Returns this range list's string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RangeList()
public RangeList(Range range)
range
- The range to encapsulate.Method Detail |
public int getLength()
public Range get(int i)
i
- The number of the range to return.
getLength()
).
ArrayIndexOutOfBoundsException
- if i
is negative or not
lower than getLength()
.getLength()
public void bindModel(Model model)
model
- The model this range list is bound to.public 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 void bindSymbols(SymbolTable symbols) throws NoModelBoundException, NoSuchElementException, 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)
public 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 void add(Range range)
range
- The range to be added.public String toString()
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |