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 in
propertyEntries[0]
will describe propA
propertyEntries[1]
will describe propB
isValid()
will return true when when no problems are detected during building.Modifier and Type | Class and Description |
---|---|
static class |
SourceReference.BuilderFromMapping
Builds a
SourceReference from an @Mappping . |
static class |
SourceReference.BuilderFromProperty
Builds a
SourceReference from 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<PropertyEntry> |
getPropertyEntries() |
boolean |
isValid() |
public Parameter getParameter()
public List<PropertyEntry> getPropertyEntries()
public boolean isValid()
public SourceReference copyForInheritanceTo(SourceMethod method)
method
- the method to create the copy forCopyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.