public abstract class AbstractNodeMapping extends java.lang.Object implements NodeMapping
| Modifier and Type | Field and Description |
|---|---|
protected GraphMapping |
graph |
protected java.util.Map<java.lang.String,PropertyMapping> |
propertyMappings |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNodeMapping(GraphMapping graph) |
|
AbstractNodeMapping(GraphMapping graph,
NodeConfig sourcetype,
NodeConfig targetType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
NodeFactory |
getNodeFactory()
Returns a
NodeFactory or null. |
GraphMapping |
getParentMapping()
Returns the parent mapping which this mapping belongs too.
|
NodeProcessor |
getProcessor()
Returns the
NodeProcessor which is used for processing a concrete node value with this configuration |
java.util.Map<java.lang.String,PropertyMapping> |
getPropertyMappings()
Returns a view of all property mappings.
|
NodeConfig |
getSourceConfig()
Returns the source configuration for this mapping.
|
NodeConfig |
getTargetConfig()
Returns the target configuration for this mapping
|
void |
initialize()
Initializes this node.
|
protected abstract boolean |
initializeNode() |
protected boolean |
initializeProperties()
Initializes each
PropertyMapping of this node. |
protected boolean |
isDebugEnabled() |
boolean |
isInitialized() |
boolean |
isVirtual()
Virtual nodes are treated with their parent node as "one" final node.
|
void |
putPropertyMapping(PropertyMapping property)
Puts a new
PropertyMapping to this node. |
void |
removeAllPropertyMappings() |
PropertyMapping |
removePropertyMapping(java.lang.String propId)
Removes a property from this node.
|
protected void |
setInitialized(boolean initialized) |
protected void |
setNodeFactory(NodeFactory nodeFactory) |
void |
setNodeProcessor(NodeProcessor nodeProcessor) |
protected void |
setSourceConfig(NodeConfig sourceNode) |
protected void |
setTargetConfig(NodeConfig targetNode) |
void |
setVirtual(boolean virtual) |
java.lang.String |
toString() |
protected java.util.Map<java.lang.String,PropertyMapping> propertyMappings
protected GraphMapping graph
protected AbstractNodeMapping(GraphMapping graph)
public AbstractNodeMapping(GraphMapping graph, NodeConfig sourcetype, NodeConfig targetType)
sourcetype - type of source nodetargetType - type of target nodepublic NodeFactory getNodeFactory()
NodeMappingNodeFactory or null.getNodeFactory in interface NodeMappingNodeFactoryprotected void setNodeFactory(NodeFactory nodeFactory)
public NodeConfig getSourceConfig()
NodeMappinggetSourceConfig in interface NodeMappingNodeConfigprotected void setSourceConfig(NodeConfig sourceNode)
public NodeConfig getTargetConfig()
NodeMappinggetTargetConfig in interface NodeMappingNodeConfigprotected void setTargetConfig(NodeConfig targetNode)
public java.util.Map<java.lang.String,PropertyMapping> getPropertyMappings()
NodeMappinggetPropertyMappings in interface NodeMappingpublic void putPropertyMapping(PropertyMapping property)
PropertyMapping to this node. If a property with same ID already exists it gets overwritten
otherwise property simply gets added.property - property to addpublic PropertyMapping removePropertyMapping(java.lang.String propId)
propId - id of propertyPropertyMappingpublic void removeAllPropertyMappings()
public NodeProcessor getProcessor()
NodeProcessor which is used for processing a concrete node value with this configurationgetProcessor in interface NodeMappingAbstractNodeProcessorpublic void setNodeProcessor(NodeProcessor nodeProcessor)
public boolean isVirtual()
NodeMappingisVirtual in interface NodeMappingpublic void setVirtual(boolean virtual)
public GraphMapping getParentMapping()
NodeMappinggetParentMapping in interface NodeMappingGraphMappingpublic java.lang.String toString()
toString in class java.lang.Objectpublic void initialize()
protected abstract boolean initializeNode()
protected boolean initializeProperties()
PropertyMapping of this node.
If PropertyMapping is already initialized, it gets skipped.PropertyMapping is not initialized, their initializer method gets called. If initialization fails,
property gets removed from that node.public boolean isInitialized()
protected void setInitialized(boolean initialized)
protected boolean isDebugEnabled()
Copyright © 2018 SAP SE. All Rights Reserved.