Package psidev.psi.mi.jami.utils.clone
Class CvTermCloner
- java.lang.Object
-
- psidev.psi.mi.jami.utils.clone.CvTermCloner
-
public class CvTermCloner extends Object
Utility class for cloning CvTerms- Since:
19/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CvTermCloner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyAndOverrideCvTermProperties(CvTerm source, CvTerm target)
This method will copy properties of cv term source in cv term target and will override all the other properties of Target cv term.static void
copyAndOverrideOntologyTermProperties(OntologyTerm source, OntologyTerm target)
This method will copy basic properties and parent/children from a ontology term source to a ontology term targetstatic void
copyAndOverrideSourceProperties(Source source, Source target)
This method will copy basic properties and source specific properties from a source to a target
-
-
-
Method Detail
-
copyAndOverrideCvTermProperties
public static void copyAndOverrideCvTermProperties(CvTerm source, CvTerm target)
This method will copy properties of cv term source in cv term target and will override all the other properties of Target cv term.- Parameters:
source
- : the cv term source to copy fromtarget
- : the cv term target to copy to
-
copyAndOverrideOntologyTermProperties
public static void copyAndOverrideOntologyTermProperties(OntologyTerm source, OntologyTerm target)
This method will copy basic properties and parent/children from a ontology term source to a ontology term target- Parameters:
source
- : the cv term source to copy fromtarget
- : the cv term target to copy to
-
-