public enum MethodType extends Enum<MethodType>
Enum Constant and Description |
---|
ADDER
An adder method, e.g.
|
GETTER
A JavaBeans getter method, e.g.
|
OTHER
Any method which is neither a JavaBeans getter, setter nor an adder method.
|
PRESENCE_CHECKER
A method to check whether a property is present, e.g.
|
SETTER
A JavaBeans setter method, e.g.
|
Modifier and Type | Method and Description |
---|---|
static MethodType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodType GETTER
public String getName()
.public static final MethodType SETTER
public void setName(String name)
.public static final MethodType ADDER
public void addItem(String item)
.public static final MethodType OTHER
public static final MethodType PRESENCE_CHECKER
public String hasName()
.public static MethodType[] values()
for (MethodType c : MethodType.values()) System.out.println(c);
public static MethodType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.