public static class CommerceQuery.Builder
extends java.lang.Object
CommerceService.search(CommerceQuery)
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CommerceQuery |
build()
Build a query from this builder
|
CommerceQuery.Builder |
setPage(int page)
Set the current page within the search results page set.
|
CommerceQuery.Builder |
setPageSize(int pageSize)
Set the number of hits to display per page of the search results.
|
CommerceQuery.Builder |
setQueryText(java.lang.String queryText)
Set the actual query string.
|
void |
setSortId(java.lang.String sortId)
Set the sort type's identifier.
|
public CommerceQuery.Builder setQueryText(java.lang.String queryText)
public CommerceQuery.Builder setPage(int page)
public CommerceQuery.Builder setPageSize(int pageSize)
public void setSortId(java.lang.String sortId)
CommerceResult.getSorts()
.public CommerceQuery build() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if no queryText has been setCopyright © 2010 - 2020 Adobe. All Rights Reserved