Package org.mapstruct
Enum ClassAccessibility
- All Implemented Interfaces:
Serializable,Comparable<ClassAccessibility>,java.lang.constant.Constable
Determines whether a generated Mapper implementation class will be declared
public or not.- Since:
- 1.7.0
- Author:
- Raimund Klein
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe generated Mapper will have the same modifier (publicor none) as the annotated class or interface.The generated Mapper will have no visibility modifier ("package-private").The generated Mapper will be declaredpublic. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassAccessibilityReturns the enum constant of this type with the specified name.static ClassAccessibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
The generated Mapper will have the same modifier (publicor none) as the annotated class or interface. -
PUBLIC
The generated Mapper will be declaredpublic. -
PACKAGE_PRIVATE
The generated Mapper will have no visibility modifier ("package-private").
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-