public class ValueMappingMethod extends MappingMethod
ValueMappingMethod
which maps one value type to another, optionally configured by one or more
ValueMapping
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() |
String |
getNullTarget() |
Parameter |
getSourceParameter() |
List<ValueMappingMethod.MappingEntry> |
getValueMappings() |
boolean |
isThrowIllegalArgumentException() |
getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getImportTypes, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, isExistingInstanceMapping, isStatic, toString
write
getTemplateName, getTemplateNameForClass
public List<ValueMappingMethod.MappingEntry> getValueMappings()
public String getDefaultTarget()
public String getNullTarget()
public boolean isThrowIllegalArgumentException()
public Parameter getSourceParameter()
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.