Welcome, Guest. Please Login or Register
WebLab Project
  Documentation has been updated, see here for more information
  Warning ! This forum is now locked, new posts have been disabled. If you want to contact us about a problem or have question, please use the following mailing list:
user@weblab-project.org !
  HomeHelpSearchLoginRegister  
 
 
Page Index Toggle Pages: 1
Send Topic Print
SourceReader: Definition of 'limit' (Read 1247 times)
11.08.2010 at 18:11:00

Tonio Wandmacher   Offline
Junior WebLab Member
I Love WebLab

Gender: male
Posts: 19
**
 
Hello,

The method 'getResource' of the SourceReader interface takes three arguments: 'usageContext', 'offset' and 'limit'.
While 'offset' is defined to be the start index for the collection to be returned, 'limit' can be interpreted in two ways, number of items starting from 'offset' or end index.
I tend to interprete it in the 'number of items' way, but to be sure I would be glad for your confirmation. (It  makes quite a difference...)

Thanks in advance!
 
IP Logged
 
Reply #1 - 18.08.2010 at 15:00:20

Yann Mombrun   Offline
WebLab Administrator
I Love WebLab
Val de Reuil, France

Gender: male
Posts: 79
*****
 
Hi,

You are right, limit is the number of item returned by the SourceReader service.

Yann
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print