public class ValueMappingMethod extends MappingMethod
ValueMappingMethod
which maps one value type to another, optionally configured by one or more
ValueMappingOptions
s. For now, only enum-to-enum mapping is supported.Modifier and Type | Class and Description |
---|---|
static class |
ValueMappingMethod.Builder |
static class |
ValueMappingMethod.MappingEntry |
Writable.Context
Modifier and Type | Method and Description |
---|---|
String |
getDefaultTarget() |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
String |
getNullTarget() |
Parameter |
getSourceParameter() |
Type |
getUnexpectedValueMappingException() |
List<ValueMappingMethod.MappingEntry> |
getValueMappings() |
boolean |
isOverridden() |
equals, getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, hashCode, isExistingInstanceMapping, isStatic, toString
getTemplateName, getTemplateNameForClass, write
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class MappingMethod
null
.public List<ValueMappingMethod.MappingEntry> getValueMappings()
public String getDefaultTarget()
public String getNullTarget()
public Type getUnexpectedValueMappingException()
public Parameter getSourceParameter()
public boolean isOverridden()
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.