org.meta2project.model.helper
Class OntoBaseCopier

java.lang.Object
  extended by org.meta2project.model.helper.OntoBaseCopier

public class OntoBaseCopier
extends java.lang.Object

The ontobase copier.

Author:
Anton Malykh

Constructor Summary
OntoBaseCopier()
           
 
Method Summary
static void copy(Connection source, AnnotatedEntity projectSrc, Connection destination, AnnotatedEntity projectDst, ProcessListener listener)
          Copy the ontobase through an intermediate backup.
static void copy(Connection source, Connection destination)
          Copy the ontobase through an intermediate backup.
static void copy(Connection source, Connection destination, ProcessListener listener)
          Copy the ontobase through an intermediate backup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntoBaseCopier

public OntoBaseCopier()
Method Detail

copy

public static void copy(Connection source,
                        AnnotatedEntity projectSrc,
                        Connection destination,
                        AnnotatedEntity projectDst,
                        ProcessListener listener)
                 throws java.io.IOException,
                        org.xmlpull.v1.XmlPullParserException
Copy the ontobase through an intermediate backup.

Parameters:
source - source ontobase
projectSrc - source project (to read project annotations)
destination - destination ontobase
projectDst - destination project (to write project annotations)
listener - process listener
Throws:
java.io.IOException - error
org.xmlpull.v1.XmlPullParserException - error

copy

public static void copy(Connection source,
                        Connection destination,
                        ProcessListener listener)
                 throws java.io.IOException,
                        org.xmlpull.v1.XmlPullParserException
Copy the ontobase through an intermediate backup.

Parameters:
source - source ontobase
destination - destination ontobase
listener - process listener
Throws:
java.io.IOException - error
org.xmlpull.v1.XmlPullParserException - error

copy

public static void copy(Connection source,
                        Connection destination)
                 throws java.io.IOException,
                        org.xmlpull.v1.XmlPullParserException
Copy the ontobase through an intermediate backup.

Parameters:
source - source ontobase
destination - destination ontobase
Throws:
java.io.IOException - error
org.xmlpull.v1.XmlPullParserException - error