Package se.datadosen.jalbum
Class XmpManager
java.lang.Object
se.datadosen.jalbum.XmpManager
Interface to get and set XMP properties bound to an AlbumObject
- Since:
- 10.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) void
protected void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes for Object properties.getFlag()
getJAlbumProperty
(String key) getJAlbumProperty
(String key, String def) Get a comma separated list of keywords or null if keywords are missinggetTitle()
com.adobe.internal.xmp.XMPMeta
Get access to the underlying Adobe XMPMeta objectvoid
Removes a PropertyChangeListener from the listener list.void
save()
void
save
(boolean restoreLastModifiedDate) void
void
save
(byte[] bytes, OutputStream os) void
void
setCreator
(String creator) void
setDescription
(String description) void
void
setGpsLatitude
(double latitude) void
setGpsLocation
(String loc) void
setGpsLongitude
(double longitude) void
setJAlbumProperty
(String key, String value) void
setKeywords
(String keywords) void
setKeywords
(String[] keyArray) void
void
void
setRightsURL
(String rightsURL) void
static String
toGpsLocation
(double latitude, double longitude) Return Google Maps formatted GPS location, based on latitude and longitude
-
Field Details
-
dc_NS
- See Also:
-
rdf_NS
- See Also:
-
xap_NS
- See Also:
-
xapRights_NS
- See Also:
-
jalbum_NS
- See Also:
-
adobe_NS
- See Also:
-
gpano_NS
- See Also:
-
-
Constructor Details
-
XmpManager
public XmpManager(AlbumObject ao) throws com.adobe.internal.xmp.XMPException, IOException, org.apache.commons.imaging.ImageReadException - Throws:
com.adobe.internal.xmp.XMPException
IOException
org.apache.commons.imaging.ImageReadException
-
XmpManager
public XmpManager(File f) throws com.adobe.internal.xmp.XMPException, IOException, org.apache.commons.imaging.ImageReadException - Throws:
com.adobe.internal.xmp.XMPException
IOException
org.apache.commons.imaging.ImageReadException
-
-
Method Details
-
getXMPMeta
public com.adobe.internal.xmp.XMPMeta getXMPMeta()Get access to the underlying Adobe XMPMeta object- Returns:
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
saveThumb
- Throws:
IOException
-
save
- Throws:
IOException
-
getDescription
-
setDescription
- Throws:
com.adobe.internal.xmp.XMPException
-
getRating
-
setRating
- Throws:
com.adobe.internal.xmp.XMPException
-
getTitle
-
setTitle
- Throws:
com.adobe.internal.xmp.XMPException
-
getCreator
- Throws:
com.adobe.internal.xmp.XMPException
-
setCreator
- Throws:
com.adobe.internal.xmp.XMPException
-
getRights
- Throws:
com.adobe.internal.xmp.XMPException
-
setRights
- Throws:
com.adobe.internal.xmp.XMPException
-
getRightsURL
- Throws:
com.adobe.internal.xmp.XMPException
-
setRightsURL
- Throws:
com.adobe.internal.xmp.XMPException
-
getKeywordSet
- Throws:
com.adobe.internal.xmp.XMPException
-
getKeywords
Get a comma separated list of keywords or null if keywords are missing- Returns:
- Throws:
com.adobe.internal.xmp.XMPException
-
setKeywords
- Throws:
com.adobe.internal.xmp.XMPException
-
setKeywords
- Throws:
com.adobe.internal.xmp.XMPException
-
getFlag
- Throws:
com.adobe.internal.xmp.XMPException
-
setFlag
- Throws:
com.adobe.internal.xmp.XMPException
-
setGpsLatitude
public void setGpsLatitude(double latitude) throws com.adobe.internal.xmp.XMPException - Throws:
com.adobe.internal.xmp.XMPException
-
setGpsLongitude
public void setGpsLongitude(double longitude) throws com.adobe.internal.xmp.XMPException - Throws:
com.adobe.internal.xmp.XMPException
-
getGpsLatitude
- Throws:
com.adobe.internal.xmp.XMPException
-
getGpsLongitude
- Throws:
com.adobe.internal.xmp.XMPException
-
getGpsLocation
- Throws:
com.adobe.internal.xmp.XMPException
-
setGpsLocation
- Throws:
com.adobe.internal.xmp.XMPException
-
toGpsLocation
Return Google Maps formatted GPS location, based on latitude and longitude -
getJAlbumProperty
- Throws:
com.adobe.internal.xmp.XMPException
-
getJAlbumProperty
- Throws:
com.adobe.internal.xmp.XMPException
-
setJAlbumProperty
- Throws:
com.adobe.internal.xmp.XMPException
-
deleteJAlbumProperty
- Throws:
com.adobe.internal.xmp.XMPException
-
addPropertyChangeListener
-
removePropertyChangeListener
Removes a PropertyChangeListener from the listener list. This method should be used to remove PropertyChangeListeners that were registered for all bound properties of this class.If listener is null, no exception is thrown and no action is performed.
- Parameters:
listener
- the PropertyChangeListener to be removed- See Also:
-
addPropertyChangeListener
-
firePropertyChange
Support for reporting bound property changes for Object properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.- Parameters:
propertyName
- the property whose value has changedoldValue
- the property's previous valuenewValue
- the property's new value
-