Package com.mindee.v2.parsing.search
Class BaseSearchResponse
- java.lang.Object
-
- com.mindee.v2.parsing.CommonResponse
-
- com.mindee.v2.parsing.search.BaseSearchResponse
-
- Direct Known Subclasses:
ModelSearchResponse,RagDocumentSearchResponse
public abstract class BaseSearchResponse extends CommonResponse
Base class for search responses.
-
-
Field Summary
Fields Modifier and Type Field Description protected PaginationMetadatapaginationPagination metadata.
-
Constructor Summary
Constructors Constructor Description BaseSearchResponse()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List<String>bodyLines()Lines composing the response-specific body (header + items).PaginationMetadatagetPagination()Pagination metadata.StringtoString()String representation of the search response.-
Methods inherited from class com.mindee.v2.parsing.CommonResponse
canEqual, equals, getRawResponse, hashCode, setRawResponse
-
-
-
-
Field Detail
-
pagination
protected PaginationMetadata pagination
Pagination metadata.
-
-
Method Detail
-
toString
public String toString()
String representation of the search response.- Overrides:
toStringin classCommonResponse- Returns:
- cleaned string summary
-
bodyLines
protected abstract List<String> bodyLines()
Lines composing the response-specific body (header + items).- Returns:
- A list of body lines.
-
getPagination
public PaginationMetadata getPagination()
Pagination metadata.
-
-