Search this API

y.util
Class GraphCopier.NodeMapCopyFactory

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

public static class GraphCopier.NodeMapCopyFactory
extends GraphCopier.GraphDataCopyFactory

A helper wrapping implementation of the GraphCopier.CopyFactory interface that copies the contents of the node maps from the source to the target graph.

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

Constructor Summary
GraphCopier.NodeMapCopyFactory(GraphCopier.CopyFactory delegatingFactory)
          Creates a new instance that copies the node map contents.
 
Method Summary
protected  java.lang.Object copy(Node src, Node dst, java.lang.Object value)
          Callback method that performs the actual copying of the data.
protected  void copyData(Node src, Node dst)
          Empty stub to be overwritten by subclass implementations.
protected  void preCopyData(Graph src, Graph dst)
          Empty stub to be overwritten by subclass implementations.
 
Methods inherited from class y.util.GraphCopier.GraphDataCopyFactory
copyData, 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.NodeMapCopyFactory

public GraphCopier.NodeMapCopyFactory(GraphCopier.CopyFactory delegatingFactory)
Creates a new instance that copies the node map contents.

Parameters:
delegatingFactory - the factory to delegate the copying of the entities to.
Method Detail

preCopyData

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

Overrides:
preCopyData in class GraphCopier.GraphDataCopyFactory

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

copy

protected java.lang.Object copy(Node src,
                                Node 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.