
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 propB| Modifier and Type | Class and Description |
|---|---|
static class |
TargetReference.Builder
Builds a
TargetReference from an @Mappping. |
| Constructor and Description |
|---|
TargetReference(Parameter parameter,
List<String> propertyEntries) |
TargetReference(Parameter parameter,
List<String> propertyEntries,
List<String> pathProperties) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getElementNames() |
List<String> |
getPathProperties() |
List<String> |
getPropertyEntries() |
String |
getShallowestPropertyName()
returns the property name on the shallowest nesting level
|
boolean |
isNested() |
TargetReference |
pop() |
String |
toString() |
public String getShallowestPropertyName()
public boolean isNested()
public TargetReference pop()
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.