Package org.modelmapper.convention
Class NameTransformers
- java.lang.Object
-
- org.modelmapper.convention.NameTransformers
-
public class NameTransformers extends Object
NameTransformer
implementations.
-
-
Field Summary
Fields Modifier and Type Field Description static NameTransformer
JAVABEANS_ACCESSOR
Transforms accessor names to their simple property name according to the JavaBeans convention.static NameTransformer
JAVABEANS_MUTATOR
Transforms mutator names to their simple property name according to the JavaBeans convention.
-
Constructor Summary
Constructors Constructor Description NameTransformers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NameTransformer
builder()
Creates NameTransformer for builder.static NameTransformer
builder(String prefix)
Creates NameTransformer for builder.
-
-
-
Field Detail
-
JAVABEANS_ACCESSOR
public static final NameTransformer JAVABEANS_ACCESSOR
Transforms accessor names to their simple property name according to the JavaBeans convention. Class and field names are unchanged.
-
JAVABEANS_MUTATOR
public static final NameTransformer JAVABEANS_MUTATOR
Transforms mutator names to their simple property name according to the JavaBeans convention. Class and field names are unchanged.
-
-
Method Detail
-
builder
public static NameTransformer builder()
Creates NameTransformer for builder.- Returns:
- a NameTransformer
-
builder
public static NameTransformer builder(String prefix)
Creates NameTransformer for builder.- Parameters:
prefix
- the prefix for the setter of the builder- Returns:
- a NameTransformer
-
-