public class DefaultPropertyMapping extends AbstractPropertyMapping
_isInitialized, COMPLIANCE_LEVEL_HIGH, COMPLIANCE_LEVEL_LOW, COMPLIANCE_LEVEL_MEDIUM, nodeMapping| Constructor and Description |
|---|
DefaultPropertyMapping(NodeMapping nodeMapping,
DefaultPropertyConfig readProperty,
DefaultPropertyConfig writeProperty)
Constructs a new instance using the two passed arguments as read- and write property.
|
DefaultPropertyMapping(NodeMapping nodeMapping,
java.lang.String property)
Constructor.
|
DefaultPropertyMapping(NodeMapping nodeMapping,
java.lang.String readProp,
java.lang.String writeProp) |
DefaultPropertyMapping(NodeMapping nodeMapping,
java.lang.String readProp,
java.lang.String writeProp,
PropertyInterceptor readInterceptor,
PropertyInterceptor writeInterceptor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Returns the mapping id.
|
java.util.List<NodeMapping> |
getNewNodeMappings() |
PropertyProcessor |
getProcessor()
Returns the Processor which is used to transfer data from source to target for this mapping.
|
java.util.List<PropertyFilter> |
getPropertyFilters() |
DefaultPropertyConfig |
getSourceConfig()
Returns the source configuration for this mapping.
|
DefaultPropertyConfig |
getTargetConfig()
Returns the target configuration for this mapping.
|
protected boolean |
initialize(int complianceLevel)
Compiles configuration settings by assuming this property belongs to passed node which itself belongs to passed
graph.
|
boolean |
isNode()
True when type of read-property (source node property) represents a GraphNode which implies further processing
with deeper graph processing .
|
protected boolean |
isTypeCheckEnabled() |
boolean |
isVirtual()
True when this mapping is treated "virtual".
|
void |
setFilters(java.util.List<PropertyFilter> filters) |
void |
setNewNodeMappings(java.util.List<NodeMapping> nodeConfig) |
protected void |
setNode(boolean isNode) |
protected void |
setVirtual(boolean isVirtual) |
java.lang.String |
toExtString()
Enhanced toString representation.
|
java.lang.String |
toString() |
getParentMapping, isInitialized, setInitializedpublic DefaultPropertyMapping(NodeMapping nodeMapping, java.lang.String property)
property - public DefaultPropertyMapping(NodeMapping nodeMapping, java.lang.String readProp, java.lang.String writeProp)
readProp - writeProp - public DefaultPropertyMapping(NodeMapping nodeMapping, java.lang.String readProp, java.lang.String writeProp, PropertyInterceptor readInterceptor, PropertyInterceptor writeInterceptor)
PropertyInterceptor for both, read-value and write value, can be passed.
A configuration must be compiled before it can be used. Compiling binds the configuration to a specific
GraphNode and a GraphTransformer and verifies whether configuration is valid (e.g. property names)readProp - name of read property from source nodewriteProp - name of write property from target nodereadInterceptor - PropertyInterceptor for readwriteInterceptor - PropertyInterceptor for writepublic DefaultPropertyMapping(NodeMapping nodeMapping, DefaultPropertyConfig readProperty, DefaultPropertyConfig writeProperty)
readProperty - DefaultPropertyConfigwriteProperty - DefaultPropertyConfigpublic java.lang.String getId()
PropertyMappingpublic java.util.List<PropertyFilter> getPropertyFilters()
public boolean isNode()
PropertyMappingprotected void setNode(boolean isNode)
public boolean isVirtual()
PropertyMappingPropertyInterceptor. A PropertyFilter do not have any influence on virtual properties.protected void setVirtual(boolean isVirtual)
public void setFilters(java.util.List<PropertyFilter> filters)
public java.util.List<NodeMapping> getNewNodeMappings()
public void setNewNodeMappings(java.util.List<NodeMapping> nodeConfig)
public PropertyProcessor getProcessor()
PropertyMappingPropertyMapping this is always a PropertyProcessor.PropertyProcessorpublic DefaultPropertyConfig getSourceConfig()
PropertyMappingPropertyConfigpublic DefaultPropertyConfig getTargetConfig()
PropertyMappingPropertyConfigprotected boolean initialize(int complianceLevel)
initialize in class AbstractPropertyMappingcomplianceLevel - various levels for error handlingprotected boolean isTypeCheckEnabled()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toExtString()
Copyright © 2018 SAP SE. All Rights Reserved.