Search this API

y.util
Class GraphCopier.ItemDataProviderCopyFactory

java.lang.Object
  extended by y.util.GraphCopier.GraphDataCopyFactory
      extended by y.util.GraphCopier.DataProviderCopyFactory
          extended by y.util.GraphCopier.ItemDataProviderCopyFactory
All Implemented Interfaces:
GraphCopier.CopyFactory
Enclosing class:
GraphCopier

public static class GraphCopier.ItemDataProviderCopyFactory
extends GraphCopier.DataProviderCopyFactory

Helper class implementation of GraphCopier.CopyFactory that can be used to copy the contents of a DataProvider registered with the source graph onto the target graph storing the values in newly created HashMap based DataMaps.

See Also:
copy(Object,y.base.Node,y.base.Node,Object), copy(Object,y.base.Edge,y.base.Edge,Object)
 

Field Summary
 
Fields inherited from class y.util.GraphCopier.DataProviderCopyFactory
dpKey
 
Constructor Summary
GraphCopier.ItemDataProviderCopyFactory(GraphCopier.CopyFactory delegatingFactory, java.lang.Object dpKey)
           
 
Method Summary
protected  java.lang.Object copy(java.lang.Object dpKey, Edge src, Edge dst, java.lang.Object value)
          Callback method that performs the actual copying of the data.
protected  java.lang.Object copy(java.lang.Object dpKey, Node src, Node dst, java.lang.Object value)
          Callback method that performs the actual copying of the data.
protected  void copyData(Edge src, Edge dst)
          Empty stub to be overwritten by subclass implementations.
protected  void copyData(Node src, Node dst)
          Empty stub to be overwritten by subclass implementations.
protected  DataMap createMap(Graph dst)
          Factory callback to create the backing storage.
 
Methods inherited from class y.util.GraphCopier.DataProviderCopyFactory
getMap, preCopyData
 
Methods inherited from class y.util.GraphCopier.GraphDataCopyFactory
copyEdge, copyNode, createGraph, postCopyData, postCopyGraphData, preCopyGraphData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphCopier.ItemDataProviderCopyFactory

public GraphCopier.ItemDataProviderCopyFactory(GraphCopier.CopyFactory delegatingFactory,
                                               java.lang.Object dpKey)
Method Detail

createMap

protected DataMap createMap(Graph dst)
Description copied from class: GraphCopier.DataProviderCopyFactory
Factory callback to create the backing storage.

Specified by:
createMap in class GraphCopier.DataProviderCopyFactory

copyData

protected void copyData(Node src,
                        Node dst)
Description copied from class: GraphCopier.GraphDataCopyFactory
Empty stub to be overwritten by subclass implementations.

Overrides:
copyData in class GraphCopier.GraphDataCopyFactory
Parameters:
src - the old entity
dst - the new entity

copyData

protected void copyData(Edge src,
                        Edge dst)
Description copied from class: GraphCopier.GraphDataCopyFactory
Empty stub to be overwritten by subclass implementations.

Overrides:
copyData in class GraphCopier.GraphDataCopyFactory
Parameters:
src - the old entity
dst - the new entity

copy

protected java.lang.Object copy(java.lang.Object dpKey,
                                Node src,
                                Node dst,
                                java.lang.Object value)
Callback method that performs the actual copying of the data. This implementation simply returns the reference.


copy

protected java.lang.Object copy(java.lang.Object dpKey,
                                Edge src,
                                Edge dst,
                                java.lang.Object value)
Callback method that performs the actual copying of the data. This implementation simply returns the reference.


© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.