Class OMRSAPIPagedResponse
java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIResponse
org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIPagedResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClassificationListResponse
,CohortListResponse
,CohortMembershipListResponse
,EntityListResponse
,RelationshipListResponse
OMRSRESTAPIPagedResponse provides the base definition for a paged response.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIResponse
actionDescription, exceptionCausedBy, exceptionClassName, exceptionErrorMessage, exceptionErrorMessageId, exceptionErrorMessageParameters, exceptionProperties, exceptionSystemAction, exceptionUserAction, relatedHTTPCode
-
Constructor Summary
ConstructorDescriptionDefault constructorOMRSAPIPagedResponse
(OMRSAPIPagedResponse template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.int
Return the starting element number for this set of results.int
Return the maximum number of elements that can be returned on this request.int
hashCode()
Create a hash code for this element type.void
setOffset
(int offset) Set up the starting element number for this set of results.void
setPageSize
(int pageSize) Set up the maximum number of elements that can be returned on this request.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIResponse
getActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSystemAction, getExceptionUserAction, getRelatedHTTPCode, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSystemAction, setExceptionUserAction, setRelatedHTTPCode
-
Field Details
-
offset
protected int offset -
pageSize
protected int pageSize
-
-
Constructor Details
-
OMRSAPIPagedResponse
public OMRSAPIPagedResponse()Default constructor -
OMRSAPIPagedResponse
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getOffset
public int getOffset()Return the starting element number for this set of results. This is used when retrieving elements beyond the first page of results. Zero means the results start from the first element.- Returns:
- offset number
-
setOffset
public void setOffset(int offset) Set up the starting element number for this set of results. This is used when retrieving elements beyond the first page of results. Zero means the results start from the first element.- Parameters:
offset
- offset number
-
getPageSize
public int getPageSize()Return the maximum number of elements that can be returned on this request.- Returns:
- page size
-
setPageSize
public void setPageSize(int pageSize) Set up the maximum number of elements that can be returned on this request.- Parameters:
pageSize
- integer number
-
toString
Standard toString method.- Overrides:
toString
in classOMRSAPIResponse
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classOMRSAPIResponse
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classOMRSAPIResponse
- Returns:
- int hash code
-