Class 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 Detail

      • CvTermCloner

        public CvTermCloner()
    • 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 from
        target - : 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 from
        target - : the cv term target to copy to
      • copyAndOverrideSourceProperties

        public static void copyAndOverrideSourceProperties​(Source source,
                                                           Source target)
        This method will copy basic properties and source specific properties from a source to a target
        Parameters:
        source - : the source to copy from
        target - : the source target to copy to