public class SearchParameters
extends java.lang.Object
Constructor and Description |
---|
SearchParameters() |
Modifier and Type | Method and Description |
---|---|
SearchParameters |
addProperty(java.lang.String property,
java.lang.String value)
Search for the value of a property.
|
SearchParameters |
addTextSearch(java.lang.String property,
java.lang.String searchQuery)
Full text search on a property.
|
java.lang.String |
getAncestor() |
java.util.Calendar |
getBefore() |
int |
getDepth() |
java.lang.String |
getName() |
long |
getPage() |
java.lang.String |
getParent() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
long |
getResultsPerPage() |
java.util.Map<java.lang.String,java.lang.String> |
getTextSearchQueries() |
Type |
getType() |
SearchParameters |
setAncestor(java.lang.String ancestor)
The desired ancestor of the CI.
|
void |
setBefore(java.util.Calendar before)
Sets the search parameters to search for CIs modified before the given date.
|
SearchParameters |
setDepth(int depth)
Set the depth of the search.
|
SearchParameters |
setName(java.lang.String name)
A search pattern for the name.
|
SearchParameters |
setPage(long page)
Sets the page to be retrieved.
|
SearchParameters |
setParent(java.lang.String parent)
The desired parent of the CI.
|
SearchParameters |
setResultsPerPage(long nrOfResults)
Sets the number of results to be retrieved per page.
|
SearchParameters |
setType(Type type)
The desired type of the CI.
|
java.lang.String |
toString() |
public SearchParameters setType(Type type)
public SearchParameters addProperty(java.lang.String property, java.lang.String value)
public SearchParameters addTextSearch(java.lang.String property, java.lang.String searchQuery)
property
- the name of the propertysearchQuery
- a Google-style query like burgers OR "fish and chips" -coke
public SearchParameters setParent(java.lang.String parent)
public SearchParameters setAncestor(java.lang.String ancestor)
public SearchParameters setName(java.lang.String name)
public void setBefore(java.util.Calendar before)
public SearchParameters setPage(long page)
public SearchParameters setResultsPerPage(long nrOfResults)
public SearchParameters setDepth(int depth)
public Type getType()
public java.lang.String getParent()
public java.lang.String getAncestor()
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public java.util.Map<java.lang.String,java.lang.String> getTextSearchQueries()
public java.util.Calendar getBefore()
public long getPage()
public long getResultsPerPage()
public int getDepth()
public java.lang.String toString()
toString
in class java.lang.Object