Package org.mapstruct
Annotation Type AnnotateWith.Element
-
public static @interface AnnotateWith.ElementUsed in combination withAnnotateWithto 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[]booleanscannot be used in conjunction with other value fields.byte[]bytescannot be used in conjunction with other value fields.char[]charscannot be used in conjunction with other value fields.Class<?>[]classescannot be used in conjunction with other value fields.double[]doublescannot be used in conjunction with other value fields.Class<? extends Enum<?>>enumClassonly used in conjunction with theenums()annotation element.String[]enumscannot be used in conjunction with other value fields.float[]floatscannot be used in conjunction with other value fields.int[]intscannot be used in conjunction with other value fields.long[]longscannot be used in conjunction with other value fields.Stringnameshort[]shortscannot be used in conjunction with other value fields.String[]stringscannot 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:
- {}
-
-