public class SelectionCriteria extends Object
Constructor and Description |
---|
SelectionCriteria(SelectionParameters selectionParameters,
MappingControl mappingControl,
String targetPropertyName,
boolean preferUpdateMapping,
boolean objectFactoryRequired,
boolean lifecycleCallbackRequired) |
Modifier and Type | Method and Description |
---|---|
static SelectionCriteria |
forFactoryMethods(SelectionParameters selectionParameters) |
static SelectionCriteria |
forLifecycleMethods(SelectionParameters selectionParameters) |
static SelectionCriteria |
forMappingMethods(SelectionParameters selectionParameters,
MappingControl mappingControl,
String targetPropertyName,
boolean preferUpdateMapping) |
List<String> |
getQualifiedByNames() |
List<TypeMirror> |
getQualifiers() |
TypeMirror |
getQualifyingResultType() |
SourceRHS |
getSourceRHS() |
String |
getTargetPropertyName() |
boolean |
hasQualfiers() |
boolean |
isAllow2Steps() |
boolean |
isAllowConversion() |
boolean |
isAllowDirect() |
boolean |
isAllowMappingMethod() |
boolean |
isLifecycleCallbackRequired() |
boolean |
isObjectFactoryRequired() |
boolean |
isPreferUpdateMapping() |
void |
setPreferUpdateMapping(boolean preferUpdateMapping) |
public SelectionCriteria(SelectionParameters selectionParameters, MappingControl mappingControl, String targetPropertyName, boolean preferUpdateMapping, boolean objectFactoryRequired, boolean lifecycleCallbackRequired)
public boolean isObjectFactoryRequired()
public boolean isLifecycleCallbackRequired()
public List<TypeMirror> getQualifiers()
public String getTargetPropertyName()
public TypeMirror getQualifyingResultType()
public boolean isPreferUpdateMapping()
public SourceRHS getSourceRHS()
public void setPreferUpdateMapping(boolean preferUpdateMapping)
public boolean hasQualfiers()
public boolean isAllowDirect()
public boolean isAllowConversion()
public boolean isAllowMappingMethod()
public boolean isAllow2Steps()
public static SelectionCriteria forMappingMethods(SelectionParameters selectionParameters, MappingControl mappingControl, String targetPropertyName, boolean preferUpdateMapping)
public static SelectionCriteria forFactoryMethods(SelectionParameters selectionParameters)
public static SelectionCriteria forLifecycleMethods(SelectionParameters selectionParameters)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.