Package org.modelmapper.convention
Class NameTransformers
java.lang.Object
org.modelmapper.convention.NameTransformers
NameTransformer
implementations.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NameTransformer
Transforms accessor names to their simple property name according to the JavaBeans convention.static final NameTransformer
Transforms mutator names to their simple property name according to the JavaBeans convention. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NameTransformer
builder()
Creates NameTransformer for builder.static NameTransformer
Creates NameTransformer for builder.
-
Field Details
-
JAVABEANS_ACCESSOR
Transforms accessor names to their simple property name according to the JavaBeans convention. Class and field names are unchanged. -
JAVABEANS_MUTATOR
Transforms mutator names to their simple property name according to the JavaBeans convention. Class and field names are unchanged.
-
-
Constructor Details
-
NameTransformers
public NameTransformers()
-
-
Method Details
-
builder
Creates NameTransformer for builder.- Returns:
- a NameTransformer
-
builder
Creates NameTransformer for builder.- Parameters:
prefix
- the prefix for the setter of the builder- Returns:
- a NameTransformer
-