@ProviderType
public interface AssetMetadata
AssetMetadata defines the Asset metadata.
To get AssetMetadata, use Asset.getAssetMetadata()
Example:
Asset asset = assetManager.getAsset("/path/to/asset/document.pdf");
// get metadata
AssetMetadata assetMetadata = asset.getAssetMetadata();
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getProperty(XMPPath path,
java.lang.Class<T> type)
Get a simple xmp property value.
|
XMPMetadata |
getXMP()
Get XMP.
|
<T> void |
setProperty(XMPPath path,
T value)
Set a simple XMP property.
|
void |
setXMP(XMPMetadata meta,
SchemaService schemaService)
Set XMP.
|
void |
setXMP(XMPMetadata meta,
SchemaService schemaService,
java.util.List ignoreHierarchy)
Set XMP.
|
XMPMetadata getXMP()
AssetException - If an error occurs trying to load the XMPMetadata objectvoid setXMP(XMPMetadata meta, SchemaService schemaService)
To update existing XMP data, either use #setProperty or #getXMP- update the resulting object and #setXMP
meta, - XMP metadata object to be setschemaService, - optional schema service to be used to persist property typesAssetException - if the given XMP cannot be stored in Assetjava.lang.NullPointerException - if the given XMPMetadata is nullvoid setXMP(XMPMetadata meta, SchemaService schemaService, java.util.List ignoreHierarchy)
To update existing XMP data, either use #setProperty or #getXMP- update the resulting object and #setXMP.
ignoreHierarchy parameter defines a list of fully qualified xmp node names for which qualifiers and language alternatives needs to be ignored.
meta, - XMP metadata object to be setschemaService, - optional schema service to be used to persist property typesignoreHierarchy, - list of nodes for which hierarchy needs to be ignoredAssetException - if the given XMP cannot be stored in Assetjava.lang.NullPointerException - if the given XMPMetadata is null<T> void setProperty(XMPPath path, T value)
This method supports String, Calendar, Long, BigDecimal & Boolean
T - the type of the valuepath, - XMP path including the property name which needs to be updatedvalue, - to be setAssetException - if property cannot be setjava.lang.NullPointerException - if the given XMPPath is null<T> T getProperty(XMPPath path, java.lang.Class<T> type)
This method supports String, Calendar, Long, BigDecimal & Boolean
T - the typepath, - XMP pathtype, - type of the value expectedAssetException - if property cannot be read or typed to a requested typejava.lang.NullPointerException - if the given XMPPath is nullCopyright © 2010 - 2023 Adobe. All Rights Reserved