public class NoteRef
extends java.lang.Object
implements android.os.Parcelable
NoteRef.DefaultFactory class to instantiate objects. The easiest way to get a reference
is to use the EvernoteSearchHelper to find notes.| Modifier and Type | Class and Description |
|---|---|
static class |
NoteRef.DefaultFactory
The default factory to create
NoteRef instances. |
static interface |
NoteRef.Factory
A factory to construct
NoteRef instances. |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<NoteRef> |
CREATOR |
| Constructor and Description |
|---|
NoteRef(java.lang.String noteGuid,
java.lang.String notebookGuid,
java.lang.String title,
boolean linked) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
java.lang.String |
getGuid() |
java.lang.String |
getNotebookGuid() |
java.lang.String |
getTitle() |
boolean |
isLinked() |
LinkedNotebook |
loadLinkedNotebook() |
Note |
loadNote(boolean withContent,
boolean withResourcesData,
boolean withResourcesRecognition,
boolean withResourcesAlternateData)
Loads the concrete note from the server.
|
Notebook |
loadNotebook()
If this note is linked, then it loads the corresponding notebook for the linked notebook.
|
Note |
loadNoteFully() |
Note |
loadNotePartial() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<NoteRef> CREATOR
public NoteRef(java.lang.String noteGuid,
java.lang.String notebookGuid,
java.lang.String title,
boolean linked)
public java.lang.String getGuid()
null.public java.lang.String getNotebookGuid()
null, e.g. if the NotesMetadataResultSpec did not include the notebook
GUID. It's recommend to include the notebook GUID always.isLinked()public java.lang.String getTitle()
null.public boolean isLinked()
true if this note exists in linked notebook.public Note loadNote(boolean withContent,
boolean withResourcesData,
boolean withResourcesRecognition,
boolean withResourcesAlternateData)
throws TException,
EDAMUserException,
EDAMSystemException,
EDAMNotFoundException
withContent - If true the returned note contains its content.withResourcesData - If true the returned note contains its resources.withResourcesRecognition - If true the returned note contains in its resources
the recognition data.withResourcesAlternateData - If true the returned note contains in its resources
the alternate data.TExceptionEDAMUserExceptionEDAMSystemExceptionEDAMNotFoundExceptionpublic Note loadNotePartial()
throws EDAMUserException,
TException,
EDAMSystemException,
EDAMNotFoundException
EDAMUserExceptionTExceptionEDAMSystemExceptionEDAMNotFoundExceptionloadNote(boolean, boolean, boolean, boolean)public Note loadNoteFully()
throws EDAMUserException,
TException,
EDAMSystemException,
EDAMNotFoundException
EDAMUserExceptionTExceptionEDAMSystemExceptionEDAMNotFoundExceptionloadNote(boolean, boolean, boolean, boolean)public Notebook loadNotebook()
throws EDAMUserException,
EDAMSystemException,
TException,
EDAMNotFoundException
loadLinkedNotebook() to get the linked notebook.EDAMUserExceptionEDAMSystemExceptionTExceptionEDAMNotFoundExceptionisLinked(),
EvernoteLinkedNotebookHelper.getCorrespondingNotebook()public LinkedNotebook loadLinkedNotebook()
throws EDAMUserException,
EDAMSystemException,
TException,
EDAMNotFoundException
EDAMUserExceptionEDAMSystemExceptionTExceptionEDAMNotFoundExceptionisLinked()public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable