Class SelectionCriteria
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.selector.SelectionCriteria
-
public class SelectionCriteria extends Object
This class groups the selection criteria in one class- Author:
- Sjaak Derksen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SelectionCriteria.Type
-
Constructor Summary
Constructors Constructor Description SelectionCriteria(SelectionParameters selectionParameters, MappingControl mappingControl, String targetPropertyName, SelectionCriteria.Type type)
-
Method Summary
-
-
-
Constructor Detail
-
SelectionCriteria
public SelectionCriteria(SelectionParameters selectionParameters, MappingControl mappingControl, String targetPropertyName, SelectionCriteria.Type type)
-
-
Method Detail
-
isObjectFactoryRequired
public boolean isObjectFactoryRequired()
- Returns:
- true if factory methods should be selected, false otherwise.
-
isLifecycleCallbackRequired
public boolean isLifecycleCallbackRequired()
- Returns:
- true if lifecycle callback methods should be selected, false otherwise.
-
isPresenceCheckRequired
public boolean isPresenceCheckRequired()
- Returns:
true
if presence check methods should be selected,false
otherwise
-
setIgnoreQualifiers
public void setIgnoreQualifiers(boolean ignoreQualifiers)
-
getQualifiers
public List<TypeMirror> getQualifiers()
-
getTargetPropertyName
public String getTargetPropertyName()
-
getQualifyingResultType
public TypeMirror getQualifyingResultType()
-
isPreferUpdateMapping
public boolean isPreferUpdateMapping()
-
getSourceRHS
public SourceRHS getSourceRHS()
-
setPreferUpdateMapping
public void setPreferUpdateMapping(boolean preferUpdateMapping)
-
hasQualfiers
public boolean hasQualfiers()
-
isAllowDirect
public boolean isAllowDirect()
-
isAllowConversion
public boolean isAllowConversion()
-
isAllowMappingMethod
public boolean isAllowMappingMethod()
-
isAllow2Steps
public boolean isAllow2Steps()
-
isSelfAllowed
public boolean isSelfAllowed()
-
forMappingMethods
public static SelectionCriteria forMappingMethods(SelectionParameters selectionParameters, MappingControl mappingControl, String targetPropertyName, boolean preferUpdateMapping)
-
forFactoryMethods
public static SelectionCriteria forFactoryMethods(SelectionParameters selectionParameters)
-
forLifecycleMethods
public static SelectionCriteria forLifecycleMethods(SelectionParameters selectionParameters)
-
forPresenceCheckMethods
public static SelectionCriteria forPresenceCheckMethods(SelectionParameters selectionParameters)
-
forSubclassMappingMethods
public static SelectionCriteria forSubclassMappingMethods(SelectionParameters selectionParameters, MappingControl mappingControl)
-
-