|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.photos.ExifTags
public class ExifTags
A photo's exif tags. Exif tags are represented as a collection element with nested elements, because that way clients can iterate over the exif tags without having to know ahead of time exactly what is in it. We also support retrieval of particular exif tags if the client knows what they want. Some standard tags are supported with helper methods to retrieve them by name.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary |
---|
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
ExifTags()
|
Method Summary | |
---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. |
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates an XML representation for the extension. |
java.lang.Float |
getApetureFNumber()
|
java.lang.String |
getCameraMake()
|
java.lang.String |
getCameraModel()
|
static ExtensionDescription |
getDefaultDescription()
|
java.lang.Float |
getDistance()
|
ExifTag |
getExifTag(java.lang.String exifName)
Get a particular exif tag by name. |
java.util.Collection<ExifTag> |
getExifTags()
Gets the exif tags as a collection of ExifTag . |
java.lang.String |
getExifTagValue(java.lang.String exifName)
Gets the value of a particular exif tag, or null if it doesn't exist. |
java.lang.Float |
getExposureTime()
|
java.lang.Boolean |
getFlashUsed()
|
java.lang.Float |
getFocalLength()
|
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle
parsing the extension. |
java.lang.String |
getImageUniqueID()
|
java.lang.Integer |
getIsoEquivalent()
|
java.util.Date |
getTime()
|
void |
setApetureFNumber(java.lang.Float fstop)
Set the fstop value used. |
void |
setCameraMake(java.lang.String make)
Set the make of the camera used. |
void |
setCameraModel(java.lang.String model)
Set the model of the camera used. |
void |
setDistance(java.lang.Float distance)
Set the distance to the subject. |
void |
setExifTagValue(java.lang.String name,
java.lang.Number value)
Convenience method to set an exif tag based on a float value. |
void |
setExifTagValue(java.lang.String name,
java.lang.String value)
Sets the value of a particular exif tag by name. |
void |
setExposureTime(java.lang.Float exposure)
Set the exposure time used. |
void |
setFlashUsed(java.lang.Boolean flash)
Set whether the flash was used. |
void |
setFocalLength(java.lang.Float focalLength)
Set the focal length used. |
void |
setImageUniqueID(java.lang.String imageUniqueID)
Set the unique image id for the photo. |
void |
setIsoEquivalent(java.lang.Integer iso)
Set the iso equivalent value used. |
void |
setTime(java.util.Date time)
Set the date/time the photo was taken. |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gdata.data.photos.Extensible |
---|
addExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtension |
Constructor Detail |
---|
public ExifTags()
Method Detail |
---|
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in interface Extensible
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.public static ExtensionDescription getDefaultDescription()
public java.util.Collection<ExifTag> getExifTags()
ExifTag
.
public ExifTag getExifTag(java.lang.String exifName)
public java.lang.String getExifTagValue(java.lang.String exifName)
public void setExifTagValue(java.lang.String name, java.lang.Number value)
public void setExifTagValue(java.lang.String name, java.lang.String value)
public java.lang.String getCameraMake()
public void setCameraMake(java.lang.String make)
public java.lang.String getCameraModel()
public void setCameraModel(java.lang.String model)
public java.lang.Integer getIsoEquivalent() throws ParseException
ParseException
- if the value was not parsable as an integer.public void setIsoEquivalent(java.lang.Integer iso)
public java.lang.Float getExposureTime() throws ParseException
ParseException
public void setExposureTime(java.lang.Float exposure)
public java.lang.Float getApetureFNumber() throws ParseException
ParseException
- if the value is not a valid floating point number.public void setApetureFNumber(java.lang.Float fstop)
public java.lang.Float getDistance() throws ParseException
ParseException
- if the value is not a valid floating point number.public void setDistance(java.lang.Float distance)
public java.util.Date getTime() throws ParseException
ParseException
- if the value is not a number, represented as a long.public void setTime(java.util.Date time)
public java.lang.Float getFocalLength() throws ParseException
ParseException
- if the value is not a valid floating point number.public void setFocalLength(java.lang.Float focalLength)
public java.lang.Boolean getFlashUsed()
Boolean.TRUE
if the flash was used.public void setFlashUsed(java.lang.Boolean flash)
public java.lang.String getImageUniqueID()
public void setImageUniqueID(java.lang.String imageUniqueID)
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extension
generate
in interface Extension
generate
in class AbstractExtension
w
- XML writerextProfile
- extension profile
java.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtension
AbstractExtension.AttributesHandler
to handle
parsing the extension.
getHandler
in interface Extension
getHandler
in class ExtensionPoint
extProfile
- extension profilenamespace
- extension namespacelocalName
- tag name, without the namespace prefixattrs
- tag attributes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |