com.evernote.edam.type
Class NoteAttributes

java.lang.Object
  extended by com.evernote.edam.type.NoteAttributes
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<NoteAttributes>, org.apache.thrift.TBase<NoteAttributes._Fields>

public class NoteAttributes
extends java.lang.Object
implements org.apache.thrift.TBase<NoteAttributes._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<NoteAttributes>

The list of optional attributes that can be stored on a note.

subjectDate
time that the note refers to
latitude
the latitude where the note was taken
longitude
the longitude where the note was taken
altitude
the altitude where the note was taken
author
the author of the content of the note
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
source
the method that the note was added to the account, if the note wasn't directly authored in an Evernote client.
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
sourceURL
the original location where the resource was hosted
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
sourceApplication
an identifying string for the application that created this note. This string does not have a guaranteed syntax or structure -- it is intended for human inspection and tracking.
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX

See Also:
Serialized Form

Nested Class Summary
static class NoteAttributes._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<NoteAttributes._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
NoteAttributes()
           
NoteAttributes(NoteAttributes other)
          Performs a deep copy on other.
 
Method Summary
 NoteAttributes clone()
          Deprecated. 
 int compareTo(NoteAttributes other)
           
 NoteAttributes deepCopy()
           
 boolean equals(NoteAttributes that)
           
 boolean equals(java.lang.Object that)
           
 double getAltitude()
           
 java.lang.String getAuthor()
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(NoteAttributes._Fields field)
           
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getSource()
           
 java.lang.String getSourceApplication()
           
 java.lang.String getSourceURL()
           
 long getSubjectDate()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(NoteAttributes._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetAltitude()
          Returns true if field altitude is set (has been asigned a value) and false otherwise
 boolean isSetAuthor()
          Returns true if field author is set (has been asigned a value) and false otherwise
 boolean isSetLatitude()
          Returns true if field latitude is set (has been asigned a value) and false otherwise
 boolean isSetLongitude()
          Returns true if field longitude is set (has been asigned a value) and false otherwise
 boolean isSetSource()
          Returns true if field source is set (has been asigned a value) and false otherwise
 boolean isSetSourceApplication()
          Returns true if field sourceApplication is set (has been asigned a value) and false otherwise
 boolean isSetSourceURL()
          Returns true if field sourceURL is set (has been asigned a value) and false otherwise
 boolean isSetSubjectDate()
          Returns true if field subjectDate is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setAltitude(double altitude)
           
 void setAltitudeIsSet(boolean value)
           
 void setAuthor(java.lang.String author)
           
 void setAuthorIsSet(boolean value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(NoteAttributes._Fields field, java.lang.Object value)
           
 void setLatitude(double latitude)
           
 void setLatitudeIsSet(boolean value)
           
 void setLongitude(double longitude)
           
 void setLongitudeIsSet(boolean value)
           
 void setSource(java.lang.String source)
           
 void setSourceApplication(java.lang.String sourceApplication)
           
 void setSourceApplicationIsSet(boolean value)
           
 void setSourceIsSet(boolean value)
           
 void setSourceURL(java.lang.String sourceURL)
           
 void setSourceURLIsSet(boolean value)
           
 void setSubjectDate(long subjectDate)
           
 void setSubjectDateIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetAltitude()
           
 void unsetAuthor()
           
 void unsetLatitude()
           
 void unsetLongitude()
           
 void unsetSource()
           
 void unsetSourceApplication()
           
 void unsetSourceURL()
           
 void unsetSubjectDate()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final java.util.Map<NoteAttributes._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

NoteAttributes

public NoteAttributes()

NoteAttributes

public NoteAttributes(NoteAttributes other)
Performs a deep copy on other.

Method Detail

deepCopy

public NoteAttributes deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<NoteAttributes._Fields>

clone

@Deprecated
public NoteAttributes clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getSubjectDate

public long getSubjectDate()

setSubjectDate

public void setSubjectDate(long subjectDate)

unsetSubjectDate

public void unsetSubjectDate()

isSetSubjectDate

public boolean isSetSubjectDate()
Returns true if field subjectDate is set (has been asigned a value) and false otherwise


setSubjectDateIsSet

public void setSubjectDateIsSet(boolean value)

getLatitude

public double getLatitude()

setLatitude

public void setLatitude(double latitude)

unsetLatitude

public void unsetLatitude()

isSetLatitude

public boolean isSetLatitude()
Returns true if field latitude is set (has been asigned a value) and false otherwise


setLatitudeIsSet

public void setLatitudeIsSet(boolean value)

getLongitude

public double getLongitude()

setLongitude

public void setLongitude(double longitude)

unsetLongitude

public void unsetLongitude()

isSetLongitude

public boolean isSetLongitude()
Returns true if field longitude is set (has been asigned a value) and false otherwise


setLongitudeIsSet

public void setLongitudeIsSet(boolean value)

getAltitude

public double getAltitude()

setAltitude

public void setAltitude(double altitude)

unsetAltitude

public void unsetAltitude()

isSetAltitude

public boolean isSetAltitude()
Returns true if field altitude is set (has been asigned a value) and false otherwise


setAltitudeIsSet

public void setAltitudeIsSet(boolean value)

getAuthor

public java.lang.String getAuthor()

setAuthor

public void setAuthor(java.lang.String author)

unsetAuthor

public void unsetAuthor()

isSetAuthor

public boolean isSetAuthor()
Returns true if field author is set (has been asigned a value) and false otherwise


setAuthorIsSet

public void setAuthorIsSet(boolean value)

getSource

public java.lang.String getSource()

setSource

public void setSource(java.lang.String source)

unsetSource

public void unsetSource()

isSetSource

public boolean isSetSource()
Returns true if field source is set (has been asigned a value) and false otherwise


setSourceIsSet

public void setSourceIsSet(boolean value)

getSourceURL

public java.lang.String getSourceURL()

setSourceURL

public void setSourceURL(java.lang.String sourceURL)

unsetSourceURL

public void unsetSourceURL()

isSetSourceURL

public boolean isSetSourceURL()
Returns true if field sourceURL is set (has been asigned a value) and false otherwise


setSourceURLIsSet

public void setSourceURLIsSet(boolean value)

getSourceApplication

public java.lang.String getSourceApplication()

setSourceApplication

public void setSourceApplication(java.lang.String sourceApplication)

unsetSourceApplication

public void unsetSourceApplication()

isSetSourceApplication

public boolean isSetSourceApplication()
Returns true if field sourceApplication is set (has been asigned a value) and false otherwise


setSourceApplicationIsSet

public void setSourceApplicationIsSet(boolean value)

setFieldValue

public void setFieldValue(NoteAttributes._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<NoteAttributes._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<NoteAttributes._Fields>

getFieldValue

public java.lang.Object getFieldValue(NoteAttributes._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<NoteAttributes._Fields>

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<NoteAttributes._Fields>

isSet

public boolean isSet(NoteAttributes._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<NoteAttributes._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<NoteAttributes._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(NoteAttributes that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(NoteAttributes other)
Specified by:
compareTo in interface java.lang.Comparable<NoteAttributes>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<NoteAttributes._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<NoteAttributes._Fields>
Throws:
org.apache.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException