public final class Search extends Object
<query/> element in the jabber:iq:search namespace.| Modifier and Type | Class and Description |
|---|---|
static class |
Search.Item
The implementation of a search result item.
|
| Constructor and Description |
|---|
Search()
Creates an empty search request.
|
Search(String first,
String last,
String nick,
String email)
Creates a search request, consisting of multiple search parameters.
|
Search(String first,
String last,
String nick,
String email,
ResultSet resultSet)
Creates a search request, consisting of multiple search parameters.
|
| Modifier and Type | Method and Description |
|---|---|
DataForm |
getAdditionalInformation()
Gets additional information for the search, e.g. for gender.
|
String |
getEmail()
Gets the email address.
|
String |
getFirst()
Gets the first name.
|
String |
getInstructions()
Gets the search instructions.
|
List<Search.Item> |
getItems()
Gets the items of a search result.
|
String |
getLast()
Gets the last name.
|
String |
getNick()
Gets the nick name.
|
ResultSet |
getResultSet()
Gets the result set information.
|
void |
setEmail(String email)
Sets the email address.
|
void |
setFirst(String first)
Sets the first name.
|
void |
setLast(String last)
Sets the last name.
|
void |
setNick(String nick)
Sets the nick name.
|
void |
setResultSet(ResultSet resultSet)
Sets the result set information.
|
public Search()
public Search(String first, String last, String nick, String email)
first - The first name.last - The last name.nick - The nick name.email - The email.public Search(String first, String last, String nick, String email, ResultSet resultSet)
first - The first name.last - The last name.nick - The nick name.email - The email.resultSet - The result set information.public String getInstructions()
public String getFirst()
setFirst(String)public void setFirst(String first)
first - The first name.getFirst()public String getLast()
setLast(String)public void setLast(String last)
last - The last name.getLast()public String getNick()
setNick(String)public void setNick(String nick)
nick - The nick name.getNick()public String getEmail()
setEmail(String)public void setEmail(String email)
email - The email address.getEmail()public List<Search.Item> getItems()
public DataForm getAdditionalInformation()
The fields defined in the 'jabber:iq:search' namespace are strictly limited to those specified in the schema. If a host needs to gather additional information, Data Forms SHOULD be used; a host MUST NOT add new fields to the 'jabber:iq:search' namespace. Support for extensibility via Data Forms is RECOMMENDED, but is not required for compliance with this document.
public ResultSet getResultSet()
public void setResultSet(ResultSet resultSet)
resultSet - The result set.Copyright © 2014 XMPP.rocks. All rights reserved.