Package com.day.cq.dam.api.smartcrop
Enum SmartCrop.CropType
- java.lang.Object
-
- java.lang.Enum<SmartCrop.CropType>
-
- com.day.cq.dam.api.smartcrop.SmartCrop.CropType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SmartCrop.CropType>
- Enclosing interface:
- SmartCrop
public static enum SmartCrop.CropType extends java.lang.Enum<SmartCrop.CropType>
Type of crop - banner or swatch.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SmartCrop.CropType
fromString(java.lang.String value)
Parses string value to return corresponding enum value ofSmartCrop.CropType
, defaults to bannerstatic SmartCrop.CropType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SmartCrop.CropType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BANNER
public static final SmartCrop.CropType BANNER
Represents crop is a banner
-
SWATCH
public static final SmartCrop.CropType SWATCH
Represents crop is swatch
-
-
Method Detail
-
values
public static SmartCrop.CropType[] 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.CropType c : SmartCrop.CropType.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.CropType 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.CropType fromString(java.lang.String value)
Parses string value to return corresponding enum value ofSmartCrop.CropType
, defaults to banner- Parameters:
string
- value of croptype- Returns:
SmartCrop.CropType
-
-