public class SimplePropertyMapping extends Object implements PropertyMapping
PropertyMapping.| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PROPERTY_NAME_MAPPER |
static String |
PROPERTY_NAME_SEPARATOR |
| 构造器和说明 |
|---|
SimplePropertyMapping(String source,
String reference)
Create a property mapping configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Set<PropertyMapping> |
from(String propertyMappings)
Resolve the property mappings from string.
|
boolean |
hasSource()
Whether
PropertyMapping.getSource() is empty. |
static PropertyMapping |
of(String mapping)
Resolve the property mapping from string.
|
String |
toString()
Get string as "s.source -> t.reference"
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReference, getSourcepublic static Set<PropertyMapping> from(String propertyMappings)
Resolve the property mappings from string.
the string format is "source1:reference1,source2:reference2,source3:reference3",
also can be "reference1,reference2,reference3" if the source property is same as the reference property.
propertyMappings - property mappings stringof(java.lang.String)public static PropertyMapping of(String mapping)
Resolve the property mapping from string.
the string format is "source:reference".
mapping - property mappingpublic boolean hasSource()
PropertyMapping.getSource() is empty.hasSource 在接口中 PropertyMappingCopyright © 2024. All rights reserved.