Package com.day.cq.dam.api.smartcrop
Enum SmartCrop.Source
- java.lang.Object
-
- java.lang.Enum<SmartCrop.Source>
-
- com.day.cq.dam.api.smartcrop.SmartCrop.Source
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SmartCrop.Source>
- Enclosing interface:
- SmartCrop
public static enum SmartCrop.Source extends java.lang.Enum<SmartCrop.Source>
Generation source for crop - dynamicmedia or assetcompute.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SmartCrop.Source
fromString(java.lang.String value)
Parses string value to return corresponding enum value ofSmartCrop.Source
, defaults to dynamic mediastatic SmartCrop.Source
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SmartCrop.Source[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DM
public static final SmartCrop.Source DM
Represents crop was generated by dynamic media
-
NUI
public static final SmartCrop.Source NUI
Represents crop was generated by assetcompute
-
-
Method Detail
-
values
public static SmartCrop.Source[] 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 (SmartCrop.Source c : SmartCrop.Source.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SmartCrop.Source 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
-
fromString
public static SmartCrop.Source fromString(java.lang.String value)
Parses string value to return corresponding enum value ofSmartCrop.Source
, defaults to dynamic media- Parameters:
string
- value of source- Returns:
SmartCrop.Source
-
-