3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.database
.update
.v34_35
;
12 import java
.util
.ArrayList
;
13 import java
.util
.List
;
15 import org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.database
.update
.ITermUpdater
;
18 import eu
.etaxonomy
.cdm
.database
.update
.ITermUpdaterStep
;
19 import eu
.etaxonomy
.cdm
.database
.update
.TermUpdaterBase
;
20 import eu
.etaxonomy
.cdm
.database
.update
.v33_34
.TermUpdater_33_34
;
21 import eu
.etaxonomy
.cdm
.database
.update
.v35_36
.TermUpdater_35_36
;
28 public class TermUpdater_34_35
extends TermUpdaterBase
implements ITermUpdater
{
29 @SuppressWarnings("unused")
30 private static final Logger logger
= Logger
.getLogger(TermUpdater_34_35
.class);
32 public static final String endTermVersion
= "3.5.0.0.201531030000";
33 private static final String startTermVersion
= "3.4.0.0.201407010000";
35 // *************************** FACTORY **************************************/
37 public static TermUpdater_34_35
NewInstance(){
38 return new TermUpdater_34_35(startTermVersion
, endTermVersion
);
41 // *************************** CONSTRUCTOR ***********************************/
43 protected TermUpdater_34_35(String startTermVersion
, String endTermVersion
) {
44 super(startTermVersion
, endTermVersion
);
49 protected List
<ITermUpdaterStep
> getUpdaterList() {
50 List
<ITermUpdaterStep
> list
= new ArrayList
<ITermUpdaterStep
>();
53 // UUID uuidTerm = UUID.fromString("8810d1ba-6a34-4ae3-a355-919ccd1cd1a5");
54 // String description = "Rank ''Proles''. Note: This rank is not compliant with the current nomenclatural codes";
55 // String label = "Proles";
56 // String abbrev = "prol.";
57 // String dtype = Rank.class.getSimpleName();
58 // boolean isOrdered = true;
59 // UUID uuidVocabulary = UUID.fromString("ef0d1ce1-26e3-4e83-b47b-ca74eed40b1b");
60 // UUID uuidAfterTerm = UUID.fromString("bff22f84-553a-4429-a4e7-c4b3796c3a18");
61 // UUID uuidLang = Language.uuidEnglish;
62 // RankClass rankClass = RankClass.Infraspecific;
63 // String stepName = "Add 'proles' rank to ranks";
64 // TermType termType = TermType.Rank;
65 // list.add( SingleTermUpdater.NewInstance(stepName, termType, uuidTerm, abbrev, description, label, abbrev, dtype, uuidVocabulary, uuidLang, isOrdered, uuidAfterTerm).setRankClass(rankClass));
67 //there are some more new vocabularies, but we trust that the term initializer will
68 //initialize and persist them correctly
74 public ITermUpdater
getNextUpdater() {
75 return TermUpdater_35_36
.NewInstance();
79 public ITermUpdater
getPreviousUpdater() {
80 return TermUpdater_33_34
.NewInstance();