public class XmlElementDeclSelector extends Object implements MethodSelector
XmlElementRef annotation on a field (of the mapping result type or its super types) matching the
target property name. Then selects those methods with matching name and scope attributes of the
XmlElementDecl annotation, if that is present. Matching happens in the following order:
XmlElementDecl it will be considered as matching.| Constructor and Description |
|---|
XmlElementDeclSelector(Types typeUtils,
Elements elementUtils) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Method> |
getMatchingMethods(Method mappingMethod,
List<T> methods,
Type sourceType,
Type targetType,
SelectionCriteria criteria)
Selects those methods which match the given types and other criteria
|
public <T extends Method> List<T> getMatchingMethods(Method mappingMethod, List<T> methods, Type sourceType, Type targetType, SelectionCriteria criteria)
MethodSelectorgetMatchingMethods in interface MethodSelectorT - either SourceMethod or BuiltInMethodmappingMethod - mapping method, defined in Mapper for which this selection is carried outmethods - list of available methodssourceType - parameter type that should be matchedtargetType - return type that should be matchedcriteria - criteria used in the selection processCopyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.