public class StructureVariablesPageIterator extends Object implements PageIterator<VariableListResource>
DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE
Modifier | Constructor and Description |
---|---|
protected |
StructureVariablesPageIterator(StructureClient structureClient,
String id,
Integer pageNumber,
Integer pageSize) |
Modifier and Type | Method and Description |
---|---|
static StructureVariablesPageIterator |
getInstance(StructureClient structureClient,
String id)
Returns an StructureVariablesPageIterator instance initialized with the structureClient
|
static StructureVariablesPageIterator |
getInstance(StructureClient structureClient,
String id,
Integer pageSize)
Returns an StructureVariablesPageIterator instance initialized with the structureClient
|
static StructureVariablesPageIterator |
getInstance(StructureClient structureClient,
String id,
Integer pageSize,
Integer pageNumber)
Returns an StructureVariablesPageIterator instance initialized with the structureClient
|
VariableListResource |
getPage(int pageNumber)
Returns the Structure Variables at a requested page number
|
VariableListResource |
next()
Returns the next page of Structure Variables
|
VariableListResource |
previous()
Returns the previous page of Structure Variables
|
protected StructureVariablesPageIterator(StructureClient structureClient, String id, Integer pageNumber, Integer pageSize) throws MindsphereClientException
MindsphereClientException
public static StructureVariablesPageIterator getInstance(StructureClient structureClient, String id, Integer pageSize, Integer pageNumber) throws MindsphereClientException
structureClient
- structureClient that will be used to make API calls to fetch the structure variablespageSize
- number of records that should be available in each page. Default is 2000pageNumber
- Page number to be fetched. Default is -1id
- Unique identifierMindsphereClientException
- thrown if an error occurs while creating an instance with invalid page sizepublic static StructureVariablesPageIterator getInstance(StructureClient structureClient, String id, Integer pageSize) throws MindsphereClientException
structureClient
- structureClient that will be used to make API calls to fetch the structure variablespageSize
- number of records that should be available in each page. Default is 2000id
- Unique identifierMindsphereClientException
- thrown if an error occurs while creating an instance with invalid page sizepublic static StructureVariablesPageIterator getInstance(StructureClient structureClient, String id) throws MindsphereClientException
structureClient
- structureClient that will be used to make API calls to fetch the structure variablesid
- Unique identifierMindsphereClientException
- thrown if an error occurs while creating an instancepublic VariableListResource next() throws MindsphereException
next
in interface PageIterator<VariableListResource>
MindsphereException
- thrown if an error occurs while attempting to invoke the APIpublic VariableListResource previous() throws MindsphereException
previous
in interface PageIterator<VariableListResource>
MindsphereException
- thrown if an error occurs while attempting to invoke the APIpublic VariableListResource getPage(int pageNumber) throws MindsphereException
getPage
in interface PageIterator<VariableListResource>
MindsphereException
- thrown if an error occurs while attempting to invoke the API