|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Request<E>
This interface encapsulates the request for a retrieval of a set of objects from the KAON2 API. Its state represents the parameters of the retrieval.
| Method Summary | |
|---|---|
Request<E> |
addCondition(java.lang.String conditionName,
java.lang.Object value)
Sets the value a condition for the retrieval. |
java.util.Set<E> |
get()
Returns the entire result set by considering axioms only from the given ontology. |
java.util.Set<E> |
get(int fromIndex,
int toIndex)
Returns the window of the result set by considering axioms only from the given ontology. |
java.util.Set<E> |
getAll()
Returns the entire result set by considering axioms only from the given and all included ontologies. |
java.util.Set<E> |
getAll(int fromIndex,
int toIndex)
Returns the window of the result set by considering axioms only from the given and all included ontologies. |
Cursor<E> |
openCursor()
Returns a cursor containing results from the given ontology. |
int |
size()
Returns the number of results in this ontology. |
int |
sizeAll()
Returns the number of results in this and all included ontologies. |
| Method Detail |
|---|
Request<E> addCondition(java.lang.String conditionName,
java.lang.Object value)
conditionName - the name of the conditionvalue - the value of the condition
int size()
throws KAON2Exception
KAON2Exception
java.util.Set<E> get()
throws KAON2Exception
KAON2Exception - thrown if there is an error
java.util.Set<E> get(int fromIndex,
int toIndex)
throws KAON2Exception
fromIndex - the index of the first elementtoIndex - the index of the last element
KAON2Exception - thrown if there is an error
int sizeAll()
throws KAON2Exception
KAON2Exception - thrown if there is an error
java.util.Set<E> getAll()
throws KAON2Exception
KAON2Exception - thrown if there is an error
java.util.Set<E> getAll(int fromIndex,
int toIndex)
throws KAON2Exception
fromIndex - the index of the first elementtoIndex - the index of the last element
KAON2Exception - thrown if there is an error
Cursor<E> openCursor()
throws KAON2Exception
KAON2Eception - thrown if there is an error
KAON2Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||