public class Query extends Object
Constructor and Description |
---|
Query(String query)
Parses the query from a string into query terms.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getFromResult()
Returns the from result.
|
String[] |
getReturnAttributes()
Returns the return attributes.
|
String |
getSearchRestrictions()
Returns the search restrictions.
|
String[] |
getTerms()
Returns the terms.
|
Integer |
getToResult()
Returns the to result.
|
void |
setFromResult(Integer i)
Sets the index of the result to begin searching.
|
void |
setReturnAttributes(String[] attrs)
Sets the return attributes.
|
void |
setSearchRestrictions(String restrictions)
Sets the search restrictions.
|
void |
setToResult(Integer i)
Sets the index of the result to stop searching.
|
String |
toString() |
public Query(String query)
query
- to parsepublic String[] getTerms()
public void setReturnAttributes(String[] attrs)
attrs
- return attributespublic String[] getReturnAttributes()
public void setSearchRestrictions(String restrictions)
restrictions
- search restrictionspublic String getSearchRestrictions()
public void setFromResult(Integer i)
i
- from indexpublic Integer getFromResult()
public void setToResult(Integer i)
i
- to resultpublic Integer getToResult()
Copyright © 2023. All rights reserved.