
public class ValueMappingMethod extends MappingMethod
ValueMappingMethod which maps one value type to another, optionally configured by one or more
ValueMappingOptionss. 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
Types 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, toStringgetTemplateName, getTemplateNameForClass, writepublic Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in class MappingMethodnull.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.