public class NodeContextImpl extends java.lang.Object implements NodeContext
NodeContext.| Modifier | Constructor and Description |
|---|---|
protected |
NodeContextImpl(GraphContextImpl graphCtx,
PropertyContextImpl propertyCtx,
AbstractNodeMapping nodeMapping,
CachedClassLookupMap<NodeMapping> nodeMappingsMap,
int distance,
int virtualDistance,
java.lang.Object source) |
| Modifier and Type | Method and Description |
|---|---|
protected PropertyContextImpl |
createChildPropertyContext(PropertyMapping propertyMapping) |
protected java.lang.String |
createSourcePathString() |
protected java.lang.String |
createTargetPathString() |
protected CachedClassLookupMap<NodeMapping> |
getChildNodeLookup() |
int |
getDistance()
Returns the general distance for the node this context belongs too.
|
GraphContextImpl |
getGraphContext()
Returns the
GraphContext |
AbstractNodeMapping |
getNodeMapping()
Returns the
NodeMapping which is used for current node processing. |
PropertyContextImpl |
getParentContext()
Returns the
PropertyContext which was used to create this NodeContext. |
java.util.List<NodeContext> |
getProcessingPath()
Returns a list of
NodeContext instances starting from a root context up to parent context of current
processed node. |
int |
getRealDistance()
Returns the real processed distance up to current node.
|
java.lang.Object |
getSourceNodeValue()
Returns the raw value from source graph which shall be used for node processing.
|
java.lang.Object |
getTargetNodeValue()
Returns the raw value from target graph which gets "merged" with the transformed source value from
NodeContext.getSourceNodeValue() |
protected void |
setSourceNodeValue(java.lang.Object sourceNode) |
protected void |
setTargetNodeValue(java.lang.Object targetNode) |
protected NodeContextImpl(GraphContextImpl graphCtx, PropertyContextImpl propertyCtx, AbstractNodeMapping nodeMapping, CachedClassLookupMap<NodeMapping> nodeMappingsMap, int distance, int virtualDistance, java.lang.Object source)
public int getRealDistance()
NodeContextgetRealDistance in interface NodeContextpublic int getDistance()
NodeContextNodeContext.getDistance in interface NodeContextpublic AbstractNodeMapping getNodeMapping()
NodeContextNodeMapping which is used for current node processing.getNodeMapping in interface NodeContextNodeMappingpublic java.lang.Object getSourceNodeValue()
NodeContextgetSourceNodeValue in interface NodeContextprotected void setSourceNodeValue(java.lang.Object sourceNode)
public java.lang.Object getTargetNodeValue()
NodeContextNodeContext.getSourceNodeValue()getTargetNodeValue in interface NodeContextprotected void setTargetNodeValue(java.lang.Object targetNode)
public PropertyContextImpl getParentContext()
PropertyContext which was used to create this NodeContext.
Returned PropertyContext is bound to a runtime value, which is a valid GraphProperty (a
PropertyConfig is available). It is the parent element of current processed runtime value, which itself is
of meta-type GraphNode and represented by this NodeContext instance.
This implementation of NodeContext returns always a PropertyContextImpl type.getParentContext in interface NodeContextPropertyContextpublic GraphContextImpl getGraphContext()
getGraphContext in interface NodeContextGraphContextpublic java.util.List<NodeContext> getProcessingPath()
NodeContextNodeContext instances starting from a root context up to parent context of current
processed node.getProcessingPath in interface NodeContextNodeContextprotected CachedClassLookupMap<NodeMapping> getChildNodeLookup()
protected PropertyContextImpl createChildPropertyContext(PropertyMapping propertyMapping)
protected java.lang.String createTargetPathString()
protected java.lang.String createSourcePathString()
Copyright © 2018 SAP SE. All Rights Reserved.