|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evernote.edam.type.SavedSearch
public class SavedSearch
A named search associated with the account that can be quickly re-used.
Specifies the set of notes that should be included in the search, if possible.
Clients are expected to search as much of the desired scope as possible, with the understanding that a given client may not be able to cover the full specified scope. For example, when executing a search that includes notes in both the owner's account and business notebooks, a mobile client may choose to only search within the user's account because it is not capable of searching both scopes simultaneously. When a search across multiple scopes is not possible, a client may choose which scope to search based on the current application context. If a client cannot search any of the desired scopes, it should refuse to execute the search.
Constructor Summary | |
---|---|
SavedSearch()
|
|
SavedSearch(SavedSearch other)
Performs a deep copy on other. |
Method Summary | |
---|---|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(SavedSearch other)
|
SavedSearch |
deepCopy()
Creates a deep copy of the object. |
boolean |
equals(java.lang.Object that)
|
boolean |
equals(SavedSearch that)
|
QueryFormat |
getFormat()
|
java.lang.String |
getGuid()
|
java.lang.String |
getName()
|
java.lang.String |
getQuery()
|
SavedSearchScope |
getScope()
|
int |
getUpdateSequenceNum()
|
int |
hashCode()
|
boolean |
isSetFormat()
Returns true if field format is set (has been asigned a value) and false otherwise |
boolean |
isSetGuid()
Returns true if field guid is set (has been asigned a value) and false otherwise |
boolean |
isSetName()
Returns true if field name is set (has been asigned a value) and false otherwise |
boolean |
isSetQuery()
Returns true if field query is set (has been asigned a value) and false otherwise |
boolean |
isSetScope()
Returns true if field scope is set (has been asigned a value) and false otherwise |
boolean |
isSetUpdateSequenceNum()
Returns true if field updateSequenceNum is set (has been asigned a value) and false otherwise |
void |
read(com.evernote.thrift.protocol.TProtocol iprot)
Reads an instance of the object from the given protocol. |
void |
setFormat(QueryFormat format)
|
void |
setFormatIsSet(boolean value)
|
void |
setGuid(java.lang.String guid)
|
void |
setGuidIsSet(boolean value)
|
void |
setName(java.lang.String name)
|
void |
setNameIsSet(boolean value)
|
void |
setQuery(java.lang.String query)
|
void |
setQueryIsSet(boolean value)
|
void |
setScope(SavedSearchScope scope)
|
void |
setScopeIsSet(boolean value)
|
void |
setUpdateSequenceNum(int updateSequenceNum)
|
void |
setUpdateSequenceNumIsSet(boolean value)
|
java.lang.String |
toString()
|
void |
unsetFormat()
|
void |
unsetGuid()
|
void |
unsetName()
|
void |
unsetQuery()
|
void |
unsetScope()
|
void |
unsetUpdateSequenceNum()
|
void |
validate()
|
void |
write(com.evernote.thrift.protocol.TProtocol oprot)
Writes the object to the given protocol. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SavedSearch()
public SavedSearch(SavedSearch other)
Method Detail |
---|
public SavedSearch deepCopy()
com.evernote.thrift.TBase
deepCopy
in interface com.evernote.thrift.TBase<SavedSearch>
public void clear()
com.evernote.thrift.TBase
clear
in interface com.evernote.thrift.TBase<SavedSearch>
public java.lang.String getGuid()
public void setGuid(java.lang.String guid)
public void unsetGuid()
public boolean isSetGuid()
public void setGuidIsSet(boolean value)
public java.lang.String getName()
public void setName(java.lang.String name)
public void unsetName()
public boolean isSetName()
public void setNameIsSet(boolean value)
public java.lang.String getQuery()
public void setQuery(java.lang.String query)
public void unsetQuery()
public boolean isSetQuery()
public void setQueryIsSet(boolean value)
public QueryFormat getFormat()
QueryFormat
public void setFormat(QueryFormat format)
QueryFormat
public void unsetFormat()
public boolean isSetFormat()
public void setFormatIsSet(boolean value)
public int getUpdateSequenceNum()
public void setUpdateSequenceNum(int updateSequenceNum)
public void unsetUpdateSequenceNum()
public boolean isSetUpdateSequenceNum()
public void setUpdateSequenceNumIsSet(boolean value)
public SavedSearchScope getScope()
public void setScope(SavedSearchScope scope)
public void unsetScope()
public boolean isSetScope()
public void setScopeIsSet(boolean value)
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(SavedSearch that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(SavedSearch other)
compareTo
in interface java.lang.Comparable<SavedSearch>
public void read(com.evernote.thrift.protocol.TProtocol iprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
read
in interface com.evernote.thrift.TBase<SavedSearch>
iprot
- Input protocol
com.evernote.thrift.TException
public void write(com.evernote.thrift.protocol.TProtocol oprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
write
in interface com.evernote.thrift.TBase<SavedSearch>
oprot
- Output protocol
com.evernote.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws com.evernote.thrift.TException
com.evernote.thrift.TException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |