Package io.wcm.handler.mediasource.dam
Enum AemRenditionType
- java.lang.Object
-
- java.lang.Enum<AemRenditionType>
-
- io.wcm.handler.mediasource.dam.AemRenditionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AemRenditionType>
public enum AemRenditionType extends java.lang.Enum<AemRenditionType>
Defines the different types of renditions generated automatically by AEM.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OTHER_RENDITION
Any other rendition generated by AEM (withcq5dam.
orcqdam.
prefix).THUMBNAIL_RENDITION
Thumbnail rendition (withcq5dam.thumbnail.
prefix).VIDEO_RENDITION
Video rendition (withcq5dam.video.
prefix).WEB_RENDITION
Web rendition for the image editor/cropping (withcq5dam.web.
prefix).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable AemRenditionType
forRendition(@NotNull com.day.cq.dam.api.Rendition rendition)
static @Nullable AemRenditionType
forRendition(@NotNull java.lang.String renditionName)
boolean
matches(@NotNull com.day.cq.dam.api.Rendition rendition)
boolean
matches(@NotNull java.lang.String renditionName)
static AemRenditionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AemRenditionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THUMBNAIL_RENDITION
public static final AemRenditionType THUMBNAIL_RENDITION
Thumbnail rendition (withcq5dam.thumbnail.
prefix).
-
WEB_RENDITION
public static final AemRenditionType WEB_RENDITION
Web rendition for the image editor/cropping (withcq5dam.web.
prefix).
-
VIDEO_RENDITION
public static final AemRenditionType VIDEO_RENDITION
Video rendition (withcq5dam.video.
prefix).
-
OTHER_RENDITION
public static final AemRenditionType OTHER_RENDITION
Any other rendition generated by AEM (withcq5dam.
orcqdam.
prefix).
-
-
Method Detail
-
values
public static AemRenditionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AemRenditionType c : AemRenditionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AemRenditionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
matches
public boolean matches(@NotNull @NotNull java.lang.String renditionName)
- Parameters:
renditionName
- Rendition name- Returns:
- true if Rendition name matches with this type
-
matches
public boolean matches(@NotNull @NotNull com.day.cq.dam.api.Rendition rendition)
- Parameters:
rendition
- Rendition- Returns:
- true if Rendition name matches with this type
-
forRendition
@Nullable public static @Nullable AemRenditionType forRendition(@NotNull @NotNull java.lang.String renditionName)
- Parameters:
renditionName
- Rendition name- Returns:
- Matching AEM rendition type or null if no match
-
forRendition
@Nullable public static @Nullable AemRenditionType forRendition(@NotNull @NotNull com.day.cq.dam.api.Rendition rendition)
- Parameters:
rendition
- Rendition- Returns:
- Matching AEM rendition type or null if no match
-
-