com.evernote.edam.type
Class ResourceAttributes

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

public class ResourceAttributes
extends java.lang.Object
implements com.evernote.thrift.TBase<ResourceAttributes>, java.io.Serializable, java.lang.Cloneable

Structure holding the optional attributes of a Resource

sourceURL
the original location where the resource was hosted
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
timestamp
the date and time that is associated with this resource (e.g. the time embedded in an image from a digital camera with a clock)
latitude
the latitude where the resource was captured
longitude
the longitude where the resource was captured
altitude
the altitude where the resource was captured
cameraMake
information about an image's camera, e.g. as embedded in the image's EXIF data
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
cameraModel
information about an image's camera, e.g. as embedded in the image's EXIF data
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
clientWillIndex
if true, then the original client that submitted the resource plans to submit the recognition index for this resource at a later time.
recoType
DEPRECATED - this field is no longer set by the service, so should be ignored.
fileName
if the resource came from a source that provided an explicit file name, the original name will be stored here. Many resources come from unnamed sources, so this will not always be set.
attachment
this will be true if the resource should be displayed as an attachment, or false if the resource should be displayed inline (if possible).
applicationData
Provides a location for applications to store a relatively small (4kb) blob of data associated with a Resource that is not visible to the user and that is opaque to the Evernote service. A single application may use at most one entry in this map, using its API consumer key as the map key. See the documentation for LazyMap for a description of when the actual map values are returned by the service.

To safely add or modify your application's entry in the map, use NoteStore.setResourceApplicationDataEntry. To safely remove your application's entry from the map, use NoteStore.unsetResourceApplicationDataEntry.

Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN
Sum max size of key and value: EDAM_APPLICATIONDATA_ENTRY_LEN_MAX
Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX

See Also:
Serialized Form

Constructor Summary
ResourceAttributes()
           
ResourceAttributes(ResourceAttributes 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(ResourceAttributes other)
           
 ResourceAttributes deepCopy()
          Creates a deep copy of the object.
 boolean equals(java.lang.Object that)
           
 boolean equals(ResourceAttributes that)
           
 double getAltitude()
           
 LazyMap getApplicationData()
           
 java.lang.String getCameraMake()
           
 java.lang.String getCameraModel()
           
 java.lang.String getFileName()
           
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getRecoType()
           
 java.lang.String getSourceURL()
           
 long getTimestamp()
           
 int hashCode()
           
 boolean isAttachment()
           
 boolean isClientWillIndex()
           
 boolean isSetAltitude()
          Returns true if field altitude is set (has been asigned a value) and false otherwise
 boolean isSetApplicationData()
          Returns true if field applicationData is set (has been asigned a value) and false otherwise
 boolean isSetAttachment()
          Returns true if field attachment is set (has been asigned a value) and false otherwise
 boolean isSetCameraMake()
          Returns true if field cameraMake is set (has been asigned a value) and false otherwise
 boolean isSetCameraModel()
          Returns true if field cameraModel is set (has been asigned a value) and false otherwise
 boolean isSetClientWillIndex()
          Returns true if field clientWillIndex is set (has been asigned a value) and false otherwise
 boolean isSetFileName()
          Returns true if field fileName 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 isSetRecoType()
          Returns true if field recoType 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 isSetTimestamp()
          Returns true if field timestamp 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 setAltitude(double altitude)
           
 void setAltitudeIsSet(boolean value)
           
 void setApplicationData(LazyMap applicationData)
           
 void setApplicationDataIsSet(boolean value)
           
 void setAttachment(boolean attachment)
           
 void setAttachmentIsSet(boolean value)
           
 void setCameraMake(java.lang.String cameraMake)
           
 void setCameraMakeIsSet(boolean value)
           
 void setCameraModel(java.lang.String cameraModel)
           
 void setCameraModelIsSet(boolean value)
           
 void setClientWillIndex(boolean clientWillIndex)
           
 void setClientWillIndexIsSet(boolean value)
           
 void setFileName(java.lang.String fileName)
           
 void setFileNameIsSet(boolean value)
           
 void setLatitude(double latitude)
           
 void setLatitudeIsSet(boolean value)
           
 void setLongitude(double longitude)
           
 void setLongitudeIsSet(boolean value)
           
 void setRecoType(java.lang.String recoType)
           
 void setRecoTypeIsSet(boolean value)
           
 void setSourceURL(java.lang.String sourceURL)
           
 void setSourceURLIsSet(boolean value)
           
 void setTimestamp(long timestamp)
           
 void setTimestampIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetAltitude()
           
 void unsetApplicationData()
           
 void unsetAttachment()
           
 void unsetCameraMake()
           
 void unsetCameraModel()
           
 void unsetClientWillIndex()
           
 void unsetFileName()
           
 void unsetLatitude()
           
 void unsetLongitude()
           
 void unsetRecoType()
           
 void unsetSourceURL()
           
 void unsetTimestamp()
           
 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

ResourceAttributes

public ResourceAttributes()

ResourceAttributes

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

Method Detail

deepCopy

public ResourceAttributes deepCopy()
Description copied from interface: com.evernote.thrift.TBase
Creates a deep copy of the object.

Specified by:
deepCopy in interface com.evernote.thrift.TBase<ResourceAttributes>

clear

public void clear()
Description copied from interface: com.evernote.thrift.TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface com.evernote.thrift.TBase<ResourceAttributes>

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)

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)

unsetTimestamp

public void unsetTimestamp()

isSetTimestamp

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


setTimestampIsSet

public void setTimestampIsSet(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)

getCameraMake

public java.lang.String getCameraMake()

setCameraMake

public void setCameraMake(java.lang.String cameraMake)

unsetCameraMake

public void unsetCameraMake()

isSetCameraMake

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


setCameraMakeIsSet

public void setCameraMakeIsSet(boolean value)

getCameraModel

public java.lang.String getCameraModel()

setCameraModel

public void setCameraModel(java.lang.String cameraModel)

unsetCameraModel

public void unsetCameraModel()

isSetCameraModel

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


setCameraModelIsSet

public void setCameraModelIsSet(boolean value)

isClientWillIndex

public boolean isClientWillIndex()

setClientWillIndex

public void setClientWillIndex(boolean clientWillIndex)

unsetClientWillIndex

public void unsetClientWillIndex()

isSetClientWillIndex

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


setClientWillIndexIsSet

public void setClientWillIndexIsSet(boolean value)

getRecoType

public java.lang.String getRecoType()

setRecoType

public void setRecoType(java.lang.String recoType)

unsetRecoType

public void unsetRecoType()

isSetRecoType

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


setRecoTypeIsSet

public void setRecoTypeIsSet(boolean value)

getFileName

public java.lang.String getFileName()

setFileName

public void setFileName(java.lang.String fileName)

unsetFileName

public void unsetFileName()

isSetFileName

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


setFileNameIsSet

public void setFileNameIsSet(boolean value)

isAttachment

public boolean isAttachment()

setAttachment

public void setAttachment(boolean attachment)

unsetAttachment

public void unsetAttachment()

isSetAttachment

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


setAttachmentIsSet

public void setAttachmentIsSet(boolean value)

getApplicationData

public LazyMap getApplicationData()

setApplicationData

public void setApplicationData(LazyMap applicationData)

unsetApplicationData

public void unsetApplicationData()

isSetApplicationData

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


setApplicationDataIsSet

public void setApplicationDataIsSet(boolean value)

equals

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

equals

public boolean equals(ResourceAttributes that)

hashCode

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

compareTo

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

read

public void read(com.evernote.thrift.protocol.TProtocol iprot)
          throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Reads an instance of the object from the given protocol.

Specified by:
read in interface com.evernote.thrift.TBase<ResourceAttributes>
Parameters:
iprot - Input protocol
Throws:
com.evernote.thrift.TException

write

public void write(com.evernote.thrift.protocol.TProtocol oprot)
           throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Writes the object to the given protocol.

Specified by:
write in interface com.evernote.thrift.TBase<ResourceAttributes>
Parameters:
oprot - Output protocol
Throws:
com.evernote.thrift.TException

toString

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

validate

public void validate()
              throws com.evernote.thrift.TException
Throws:
com.evernote.thrift.TException