Package org.mapstruct
Annotation Type AnnotateWith.Element
-
public static @interface AnnotateWith.Element
Used in combination withAnnotateWith
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 Elements Modifier and Type Optional Element Description boolean[]
booleans
cannot be used in conjunction with other value fields.byte[]
bytes
cannot be used in conjunction with other value fields.char[]
chars
cannot be used in conjunction with other value fields.Class<?>[]
classes
cannot be used in conjunction with other value fields.double[]
doubles
cannot be used in conjunction with other value fields.Class<? extends Enum<?>>
enumClass
only used in conjunction with theenums()
annotation element.String[]
enums
cannot be used in conjunction with other value fields.float[]
floats
cannot be used in conjunction with other value fields.int[]
ints
cannot be used in conjunction with other value fields.long[]
longs
cannot be used in conjunction with other value fields.String
name
short[]
shorts
cannot be used in conjunction with other value fields.String[]
strings
cannot be used in conjunction with other value fields.
-
-
-
Element Detail
-
name
String name
- Returns:
- name of the annotation element.
- Default:
- "value"
-
-
-
strings
String[] strings
cannot be used in conjunction with other value fields.- Returns:
- string value(s) for the annotation element.
- Default:
- {}
-
-
-
classes
Class<?>[] classes
cannot be used in conjunction with other value fields.- Returns:
- class value(s) for the annotation element.
- Default:
- {}
-
-
-
enums
String[] enums
cannot be used in conjunction with other value fields.enumClass()
is also required when usingenums()
- Returns:
- enum value(s) for the annotation element.
- Default:
- {}
-
-