public static enum DataMapper.Semantic extends Enum<DataMapper.Semantic>
The mapping semantic steering the mapping logic
| Enum Constant and Description |
|---|
DEEP_COPY
Recursively copy data from source data structure into target data structure.
|
FLAT_COPY
Recursively copy data from source data structure into target Map structure.
|
MAP
Recursively map data from source data structure into target data structure.
|
MERGE
Recursively merge data from source data structure into target data structure.
|
MERGE_MAP
Recursively map data from source data structure into target data structure.
|
SHALLOW_COPY
Copy the reference from source properties to target properties.
|
| Modifier and Type | Method and Description |
|---|---|
static DataMapper.Semantic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataMapper.Semantic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataMapper.Semantic SHALLOW_COPY
public static final DataMapper.Semantic DEEP_COPY
public static final DataMapper.Semantic FLAT_COPY
public static final DataMapper.Semantic MERGE
DEEP_COPY except:
* if there are more properties in the target data, the extra properties will be left
untouched
* if there are existing data in collection of target data structure, the data will be
merged or untouchedpublic static final DataMapper.Semantic MAP
DEEP_COPY except:
* the terminate data type can be different, in which case type conversion will be used.public static final DataMapper.Semantic MERGE_MAP
MERGE except:
* the terminate data type can be different, in which case type conversion will be used.public static DataMapper.Semantic[] values()
for (DataMapper.Semantic c : DataMapper.Semantic.values()) System.out.println(c);
public static DataMapper.Semantic valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.