Enum Assignment.AssignmentType
- java.lang.Object
-
- java.lang.Enum<Assignment.AssignmentType>
-
- org.mapstruct.ap.internal.model.common.Assignment.AssignmentType
-
- All Implemented Interfaces:
Serializable
,Comparable<Assignment.AssignmentType>
- Enclosing interface:
- Assignment
public static enum Assignment.AssignmentType extends Enum<Assignment.AssignmentType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECT
assignment is directMAPPED
assignment is mapped (builtin/custom)MAPPED_TWICE
2 mapping methods (builtin/custom) are applied to get the targetMAPPED_TYPE_CONVERTED
assignment is first mapped (builtin/custom), then the result is type convertedTYPE_CONVERTED
assignment is type convertedTYPE_CONVERTED_MAPPED
assignment is first type converted, and then mapped (builtin/custom)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isConverted()
boolean
isDirect()
static Assignment.AssignmentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Assignment.AssignmentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIRECT
public static final Assignment.AssignmentType DIRECT
assignment is direct
-
TYPE_CONVERTED
public static final Assignment.AssignmentType TYPE_CONVERTED
assignment is type converted
-
MAPPED
public static final Assignment.AssignmentType MAPPED
assignment is mapped (builtin/custom)
-
MAPPED_TWICE
public static final Assignment.AssignmentType MAPPED_TWICE
2 mapping methods (builtin/custom) are applied to get the target
-
MAPPED_TYPE_CONVERTED
public static final Assignment.AssignmentType MAPPED_TYPE_CONVERTED
assignment is first mapped (builtin/custom), then the result is type converted
-
TYPE_CONVERTED_MAPPED
public static final Assignment.AssignmentType TYPE_CONVERTED_MAPPED
assignment is first type converted, and then mapped (builtin/custom)
-
-
Method Detail
-
values
public static Assignment.AssignmentType[] 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 (Assignment.AssignmentType c : Assignment.AssignmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Assignment.AssignmentType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isDirect
public boolean isDirect()
-
isConverted
public boolean isConverted()
-
-