Interface EntitySet
- All Known Implementing Classes:
EntitySetImpl
The EntitySet model element.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidUse the nextLink to fetch more Entities.longgetCount()Get The total number of entities in the Set that exist on the server.Get the navigationProperty that manages this EntitySet.Get the nextLink, if it exists.booleanCheck if there is a nextLink.booleanisEmpty()Check if there are entities currently loaded in the set.iterator()Get an iterator that iterates over all entities, following nextLinks if needed.voidsetCount(long count) voidsetNextLink(String nextLink) voidsetService(SensorThingsService service) Sets the service for the set and all Entities in the set.intsize()Get the number of currently loaded Entities in the Set.toList()Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
add
-
getCount
long getCount()Get The total number of entities in the Set that exist on the server. Returns -1 if the count is not loaded.- Returns:
- The total number of entities in the Set that exist on the server.
-
setCount
void setCount(long count) -
iterator
Get an iterator that iterates over all entities, following nextLinks if needed. -
hasNextLink
boolean hasNextLink()Check if there is a nextLink.- Returns:
- true if there is a nextLink to fetch more Entities.
-
getNextLink
String getNextLink()Get the nextLink, if it exists. NULL otherwise.- Returns:
- the nextLink, if it exists.
-
setNextLink
-
fetchNext
Use the nextLink to fetch more Entities.- Throws:
ServiceFailureException- If there is a problem following the nextLink.
-
size
int size()Get the number of currently loaded Entities in the Set.- Returns:
- The number of currently loaded Entities in the Set.
-
isEmpty
boolean isEmpty()Check if there are entities currently loaded in the set.- Returns:
- true if there are no Entities currently loaded in the set.
-
toList
- Returns:
- the list of currently loaded entities.
-
getEntityType
EntityType getEntityType() -
setService
Sets the service for the set and all Entities in the set.- Parameters:
service- the service to set.
-