Class XmlElementDeclSelector
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.selector.XmlElementDeclSelector
-
public class XmlElementDeclSelector extends Object
Finds theXmlElementRefannotation on a field (of the mapping result type or its super types) matching the target property name. Then selects those methods with matchingnameandscopeattributes of theXmlElementDeclannotation, if that is present. Matching happens in the following order:- Name and Scope matches
- Scope matches
- Name matches
XmlElementDeclit will be considered as matching.- Author:
- Sjaak Derksen
-
-
Constructor Summary
Constructors Constructor Description XmlElementDeclSelector(TypeUtils typeUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Method>
List<SelectedMethod<T>>getMatchingMethods(Method mappingMethod, List<SelectedMethod<T>> methods, List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)
-
-
-
Constructor Detail
-
XmlElementDeclSelector
public XmlElementDeclSelector(TypeUtils typeUtils)
-
-
Method Detail
-
getMatchingMethods
public <T extends Method> List<SelectedMethod<T>> getMatchingMethods(Method mappingMethod, List<SelectedMethod<T>> methods, List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)
-
-