public static final class PropertyMapping.DefaultOperations extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MERGE
Mapping is merged at the destination, for example:
// { listA: ['A', 'B', 'C'], listB: ['1', '2', '3'] } ==> { listA: ['A', 'B', 'C', '1', '2', // '3'] // } PropertyMapping.map("listB", "listA", Operation.MERGE); |
static String |
REPLACE
Mapping is replaced at the destination, for example:
// { listA: ['A', 'B', 'C'], listB: ['1', '2', '3'] } ==> { listA: ['1', '2', '3'] } PropertyMapping.map("listB", "listA", Operation.REPLACE); |
public static final String MERGE
// { listA: ['A', 'B', 'C'], listB: ['1', '2', '3'] } ==> { listA: ['A', 'B', 'C', '1', '2', // '3'] // } PropertyMapping.map("listB", "listA", Operation.MERGE);
public static final String REPLACE
// { listA: ['A', 'B', 'C'], listB: ['1', '2', '3'] } ==> { listA: ['1', '2', '3'] } PropertyMapping.map("listB", "listA", Operation.REPLACE);
Copyright © 2021. All rights reserved.