Class DigitalAssetRendition
java.lang.Object
com.oracle.content.sdk.model.AssetObject
com.oracle.content.sdk.model.AssetLinksObject
com.oracle.content.sdk.model.digital.DigitalAssetRendition
- All Implemented Interfaces:
Serializable
Information for a digital asset rendition, which can also have multiple formats.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A format for a specific rendition. -
Field Summary
Fields inherited from class com.oracle.content.sdk.model.AssetLinksObject
links
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBestMatchingFormat
(String formatName) Search for a specific format (e.g.getName()
Get raw name string for the rendition.Get the enum value for the rendition.getType()
This will normally be a string such as "responsiveimage"Methods inherited from class com.oracle.content.sdk.model.AssetLinksObject
getLinks
-
Constructor Details
-
DigitalAssetRendition
public DigitalAssetRendition()
-
-
Method Details
-
getName
Get raw name string for the rendition. See alsogetRendition()
- Returns:
- rendition name
-
getRendition
Get the enum value for the rendition. If not one of the common renditions, this will return RenditionType.Unknown andgetName()
can get used to get the custom name.- Returns:
- enum rendition value
-
getFormats
-
getType
This will normally be a string such as "responsiveimage"- Returns:
- rendition type such as "responsiveimage"
-
getBestMatchingFormat
Search for a specific format (e.g. "jpg") but will return the first format in the list if there is not an exact match.- Parameters:
formatName
- preferred format name.- Returns:
- first format in list or format that exactly matches formatName, or null if no formats
-