
public class TargetReference extends Object
It contains the target 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 |
TargetReference.BuilderFromTargetMapping
Builds a
TargetReference from an @Mappping. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getElementNames() |
Parameter |
getParameter() |
List<PropertyEntry> |
getPropertyEntries() |
boolean |
isValid() |
TargetReference |
pop() |
public Parameter getParameter()
public List<PropertyEntry> getPropertyEntries()
public boolean isValid()
public TargetReference pop()
Copyright © 2012-2019 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.