Search this API

y.util
Class GraphCopier.EdgeMapCopyFactory

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

public static class GraphCopier.EdgeMapCopyFactory
extends GraphCopier.GraphDataCopyFactory

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

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

Constructor Summary
GraphCopier.EdgeMapCopyFactory(GraphCopier.CopyFactory delegatingFactory)
          Creates a new instance that copies the node map contents.
 
Method Summary
protected  java.lang.Object copy(Edge src, Edge 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 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.EdgeMapCopyFactory

public GraphCopier.EdgeMapCopyFactory(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(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(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-2017,
yWorks GmbH.
All rights reserved.