public class SourceReference extends Object
It contains the source parameter, and all individual (nested) property entries. So consider the following mapping method:
@Mapping(source = "in.propA.propB" target = "propC") TypeB mappingMethod(TypeA in);Then:
parameter will describe inpropertyEntries[0] will describe propApropertyEntries[1] will describe propBisValid() will return true when when no problems are detected during building.| Modifier and Type | Class and Description | 
|---|---|
| static class  | SourceReference.BuilderFromMappingBuilds a  SourceReferencefrom an@Mappping. | 
| static class  | SourceReference.BuilderFromPropertyBuilds a  SourceReferencefrom a property. | 
| static class  | SourceReference.PropertyEntryA PropertyEntry contains information on the name, accessor and return type of a property. | 
| Modifier and Type | Method and Description | 
|---|---|
| SourceReference | copyForInheritanceTo(SourceMethod method)Creates a copy of this reference, which is adapted to the given method | 
| List<String> | getElementNames() | 
| Parameter | getParameter() | 
| List<SourceReference.PropertyEntry> | getPropertyEntries() | 
| boolean | isValid() | 
public Parameter getParameter()
public List<SourceReference.PropertyEntry> getPropertyEntries()
public boolean isValid()
public SourceReference copyForInheritanceTo(SourceMethod method)
method - the method to create the copy forCopyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.