Package org.mapstruct
Annotation Type AnnotateWith.Element
- Enclosing class:
AnnotateWith
public static @interface AnnotateWith.Element
Used in combination with
AnnotateWith to configure the annotation elements. Only 1 value type may be used
within the same annotation at a time. For example mixing shorts and ints is not allowed.- Since:
- 1.6
- Author:
- Ben Zegveld
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean[]cannot be used in conjunction with other value fields.byte[]cannot be used in conjunction with other value fields.char[]cannot be used in conjunction with other value fields.Class<?>[]cannot be used in conjunction with other value fields.double[]cannot be used in conjunction with other value fields.only used in conjunction with theenums()annotation element.String[]cannot be used in conjunction with other value fields.float[]cannot be used in conjunction with other value fields.int[]cannot be used in conjunction with other value fields.long[]cannot be used in conjunction with other value fields.The name of the annotation element.short[]cannot be used in conjunction with other value fields.String[]cannot be used in conjunction with other value fields.
-
Element Details
-
name
String nameThe name of the annotation element.- Returns:
- name of the annotation element.
- Default:
"value"
-
shorts
short[] shortscannot be used in conjunction with other value fields.- Returns:
- short value(s) for the annotation element.
- Default:
{}
-
bytes
byte[] bytescannot be used in conjunction with other value fields.- Returns:
- byte value(s) for the annotation element.
- Default:
{}
-
ints
int[] intscannot be used in conjunction with other value fields.- Returns:
- int value(s) for the annotation element.
- Default:
{}
-
longs
long[] longscannot be used in conjunction with other value fields.- Returns:
- long value(s) for the annotation element.
- Default:
{}
-
floats
float[] floatscannot be used in conjunction with other value fields.- Returns:
- float value(s) for the annotation element.
- Default:
{}
-
doubles
double[] doublescannot be used in conjunction with other value fields.- Returns:
- double value(s) for the annotation element.
- Default:
{}
-
chars
char[] charscannot be used in conjunction with other value fields.- Returns:
- char value(s) for the annotation element.
- Default:
{}
-
booleans
boolean[] booleanscannot be used in conjunction with other value fields.- Returns:
- boolean value(s) for the annotation element.
- Default:
{}
-
strings
String[] stringscannot be used in conjunction with other value fields.- Returns:
- string value(s) for the annotation element.
- Default:
{}
-
classes
Class<?>[] classescannot be used in conjunction with other value fields.- Returns:
- class value(s) for the annotation element.
- Default:
{}
-
enumClass
only used in conjunction with theenums()annotation element.- Returns:
- the class of the enum.
- Default:
org.mapstruct.NullEnum.class
-
enums
String[] enumscannot be used in conjunction with other value fields.enumClass()is also required when usingenums()- Returns:
- enum value(s) for the annotation element.
- Default:
{}
-