|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.lyo.client.oslc.resources.OslcQueryResult
public class OslcQueryResult
The results of an OSLC query. If the query was paged, subsequent pages can be retrieved using the Iterator interface. This class is not currently thread safe.
Field Summary | |
---|---|
static com.hp.hpl.jena.rdf.model.Property |
DEFAULT_MEMBER_PROPERTY
The default member property to look for in OSLC query results (rdfs:member). |
static String |
SELECT_ANY_MEMBER
If system property "org.eclipse.lyo.client.oslc.query.selectAnyMember" is set to true, find any member in the |
Constructor Summary | |
---|---|
OslcQueryResult(OslcQuery query,
org.apache.wink.client.ClientResponse response)
|
Method Summary | ||
---|---|---|
String |
getMemberProperty()
Returns the member property to find query result resources. |
|
|
getMembers(Class<T> clazz)
Return the enumeration of queried results from this page |
|
String[] |
getMembersUrls()
Return the subject URLs of the query response. |
|
OslcQuery |
getQuery()
|
|
org.apache.wink.client.ClientResponse |
getRawResponse()
Get the raw Wink client response to a query. |
|
boolean |
hasNext()
|
|
OslcQueryResult |
next()
|
|
void |
remove()
|
|
void |
setMemberProperty(String memberPredicate)
Sets the predicate to use to find query result resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final com.hp.hpl.jena.rdf.model.Property DEFAULT_MEMBER_PROPERTY
#setMemberProperty(Property)
.
public static final String SELECT_ANY_MEMBER
Constructor Detail |
---|
public OslcQueryResult(OslcQuery query, org.apache.wink.client.ClientResponse response)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<OslcQueryResult>
public OslcQueryResult next()
next
in interface Iterator<OslcQueryResult>
NoSuchElementException
- if there is no next pagepublic void remove()
remove
in interface Iterator<OslcQueryResult>
UnsupportedOperationException
- alwayspublic OslcQuery getQuery()
public String getMemberProperty()
setMemberProperty(String)
public void setMemberProperty(String memberPredicate)
http://www.w3.org/2000/01/rdf-schema#member
.
memberPredicate
- the RDF predicate for member resources from the provider's
query shapepublic org.apache.wink.client.ClientResponse getRawResponse()
public String[] getMembersUrls()
public <T> Iterable<T> getMembers(Class<T> clazz)
T
- clazz
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |