public class ExifTags extends ExtensionPoint implements Extensible, Extension
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
ExifTags() |
Modifier and Type | Method and Description |
---|---|
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
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.
|
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtension
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 profilejava.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
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