public class GraphConfigurationImpl extends java.lang.Object implements GraphConfiguration
NodeMapping instances. GraphTransformer already provides access to
NodeMapping instances but processing runtime adds dynamic behavior like different NodeMapping
instances for same node types based on depth of current processing (distance) or current processed property.| Constructor and Description |
|---|
GraphConfigurationImpl(CachedClassLookupMap<NodeMapping> baseConfiguration)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeMapping(int distance,
java.util.Collection<NodeMapping> nodeMappingList)
Adds a Collection of
NodeMapping under a specific distance. |
void |
addNodeMapping(int distance,
NodeMapping nodeMapping)
Adds a
NodeMapping under a specific distance. |
CachedClassLookupMap<NodeMapping> |
getAllNodeMappings(int distance) |
NodeMapping |
getNodeMapping(java.lang.Class<?> type)
Returns the
NodeMapping which was configured on root-level base. |
NodeMapping |
getNodeMapping(int distance,
java.lang.Class<?> type)
Returns the
NodeMapping for a requested node type and requested distance when that mapping shall be used. |
public GraphConfigurationImpl(CachedClassLookupMap<NodeMapping> baseConfiguration)
baseConfiguration - public CachedClassLookupMap<NodeMapping> getAllNodeMappings(int distance)
public void addNodeMapping(int distance,
NodeMapping nodeMapping)
GraphConfigurationNodeMapping under a specific distance. Distance specifies the level of processing depth when this
mapping shall become active.addNodeMapping in interface GraphConfigurationdistance - processing distance when NodeMapping shall become activatednodeMapping - NodeMapping to addpublic void addNodeMapping(int distance,
java.util.Collection<NodeMapping> nodeMappingList)
GraphConfigurationNodeMapping under a specific distance. Distance specifies the level of processing
depth when this mapping shall become active.addNodeMapping in interface GraphConfigurationdistance - processing distance when NodeMapping shall become activatednodeMappingList - NodeMapping to addpublic NodeMapping getNodeMapping(java.lang.Class<?> type)
GraphConfigurationNodeMapping which was configured on root-level base.
This call equals GraphConfiguration.getNodeMapping(int, Class) with a distance level of zero.getNodeMapping in interface GraphConfigurationtype - type of nodeNodeMappingpublic NodeMapping getNodeMapping(int distance, java.lang.Class<?> type)
GraphConfigurationNodeMapping for a requested node type and requested distance when that mapping shall be used.
A NodeMapping which was added under e.g. distance 2 is not returned here when requesting it under distance
level 3 (this only works at runtime during graph processing)getNodeMapping in interface GraphConfigurationCopyright © 2018 SAP SE. All Rights Reserved.