public final class XmpBasicPackage extends XmpPackage
Represents the XMP basic namespace.
Modifier and Type | Field and Description |
---|---|
static float |
RatingMax
Rating max value.
|
static float |
RatingMin
Rating min value.
|
static float |
RatingRejected
Rating rejected value.
|
Constructor and Description |
---|
XmpBasicPackage()
Initializes a new instance of the
XmpBasicPackage class. |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
Gets the base URL for relative URLs in the document content.
|
Date |
getCreateDate()
Gets the date and time the resource was created.
|
String |
getCreatorTool()
Gets the name of the tool used to create the resource.
|
String[] |
getIdentifiers()
Gets an unordered array of text strings that unambiguously identify the resource within a given context.
|
String |
getLabel()
Gets a word or short phrase that identifies the resource as a member of a user-defined collection.
|
Date |
getMetadataDate()
Gets the date and time that any metadata for this resource was last changed.
|
Date |
getModifyDate()
Gets the date and time the resource was last modified.
|
String |
getNickname()
Gets a short informal name for the resource.
|
double |
getRating()
Gets a user-assigned rating for this file.
|
XmpThumbnail[] |
getThumbnails()
Gets an array of thumbnail images for the file, which can differ in characteristics such as size or image encoding.
|
void |
set(String name,
String value)
Adds string property.
|
void |
setBaseUrl(String value)
Sets the base URL for relative URLs in the document content.
|
void |
setCreateDate(Date value)
Sets the date and time the resource was created.
|
void |
setCreatorTool(String value)
Sets the name of the tool used to create the resource.
|
void |
setIdentifiers(String[] value)
Sets an unordered array of text strings that unambiguously identify the resource within a given context.
|
void |
setLabel(String value)
Sets a word or short phrase that identifies the resource as a member of a user-defined collection.
|
void |
setMetadataDate(Date value)
Sets the date and time that any metadata for this resource was last changed.
|
void |
setModifyDate(Date value)
Sets the date and time the resource was last modified.
|
void |
setNickname(String value)
Sets a short informal name for the resource.
|
void |
setRating(double value)
Sets a user-assigned rating for this file.
|
void |
setThumbnails(XmpThumbnail[] value)
Sets an array of thumbnail images for the file, which can differ in characteristics such as size or image encoding.
|
clear, getNamespaceUri, getPrefix, getXmlNamespace, getXmpRepresentation, remove, set, set, set, set, set, set, set
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, sanitize, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final float RatingRejected
Rating rejected value.
public static final float RatingMin
Rating min value.
public static final float RatingMax
Rating max value.
public XmpBasicPackage()
Initializes a new instance of the XmpBasicPackage
class.
public final String getBaseUrl()
Gets the base URL for relative URLs in the document content. If this document contains Internet links, and those links are relative, they are relative to this base URL.
public final void setBaseUrl(String value)
Sets the base URL for relative URLs in the document content. If this document contains Internet links, and those links are relative, they are relative to this base URL.
value
- The base URL.public final Date getCreateDate()
Gets the date and time the resource was created.
public final void setCreateDate(Date value)
Sets the date and time the resource was created.
value
- The resource creation date.public final String getCreatorTool()
Gets the name of the tool used to create the resource.
public final void setCreatorTool(String value)
Sets the name of the tool used to create the resource.
value
- The name of the tool used to create the resource.public final String[] getIdentifiers()
Gets an unordered array of text strings that unambiguously identify the resource within a given context.
public final void setIdentifiers(String[] value)
Sets an unordered array of text strings that unambiguously identify the resource within a given context.
value
- An array of the identifiers.public final String getLabel()
Gets a word or short phrase that identifies the resource as a member of a user-defined collection.
public final void setLabel(String value)
Sets a word or short phrase that identifies the resource as a member of a user-defined collection.
value
- The label of the resource.public final Date getMetadataDate()
Gets the date and time that any metadata for this resource was last changed.
public final void setMetadataDate(Date value)
Sets the date and time that any metadata for this resource was last changed.
value
- The metadata date.public final Date getModifyDate()
Gets the date and time the resource was last modified.
public final void setModifyDate(Date value)
Sets the date and time the resource was last modified.
value
- The last modification date.public final String getNickname()
Gets a short informal name for the resource.
public final void setNickname(String value)
Sets a short informal name for the resource.
value
- The nickname.public final double getRating()
Gets a user-assigned rating for this file. The value shall be -1 or in the range [0..5], where -1 indicates “rejected” and 0 indicates “unrated”.
public final void setRating(double value)
Sets a user-assigned rating for this file. The value shall be -1 or in the range [0..5], where -1 indicates “rejected” and 0 indicates “unrated”.
value
- The rating.public final XmpThumbnail[] getThumbnails()
Gets an array of thumbnail images for the file, which can differ in characteristics such as size or image encoding.
public final void setThumbnails(XmpThumbnail[] value)
Sets an array of thumbnail images for the file, which can differ in characteristics such as size or image encoding.
value
- The thumbnails.public void set(String name, String value)
Adds string property.
set
in class XmpPackage
name
- XmpBasic key.value
- String value.ArgumentNullException
- Metadata key is not provided.