Project

General

Profile

« Previous | Next » 

Revision 1c39686b

Added by Andreas Müller about 5 years ago

ref #8162 adapt cdmlip to new term package structure

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NomenclaturalStatusType.java
26 26
import org.apache.log4j.Logger;
27 27
import org.hibernate.envers.Audited;
28 28

  
29
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
30 29
import eu.etaxonomy.cdm.model.common.Language;
31
import eu.etaxonomy.cdm.model.common.OrderedTermBase;
32
import eu.etaxonomy.cdm.model.common.Representation;
33
import eu.etaxonomy.cdm.model.common.TermType;
34
import eu.etaxonomy.cdm.model.common.TermVocabulary;
30
import eu.etaxonomy.cdm.model.term.DefinedTermBase;
31
import eu.etaxonomy.cdm.model.term.OrderedTermBase;
32
import eu.etaxonomy.cdm.model.term.Representation;
33
import eu.etaxonomy.cdm.model.term.TermType;
34
import eu.etaxonomy.cdm.model.term.TermVocabulary;
35 35
import eu.etaxonomy.cdm.strategy.exceptions.UnknownCdmTypeException;
36 36

  
37 37
/**
......
61 61
@XmlType(name = "NomenclaturalStatusType")
62 62
@Entity
63 63
//@Indexed disabled to reduce clutter in indexes, since this type is not used by any search
64
//@Indexed(index = "eu.etaxonomy.cdm.model.common.DefinedTermBase")
64
//@Indexed(index = "eu.etaxonomy.cdm.model.term.DefinedTermBase")
65 65
@Audited
66 66
public class NomenclaturalStatusType extends OrderedTermBase<NomenclaturalStatusType> {
67 67

  
......
205 205
	 *
206 206
	 * @see  #VALID()
207 207
	 * @see  #isIllegitimateType()
208
	 * @see  eu.etaxonomy.cdm.model.common.DefinedTermBase#getKindOf()
208
	 * @see  eu.etaxonomy.cdm.model.term.DefinedTermBase#getKindOf()
209 209
	 */
210 210
	@Transient
211 211
	public boolean isInvalidType(){
......
234 234
	 *
235 235
	 * @see  #isInvalidType()
236 236
	 * @see  #isIllegitimateType()
237
	 * @see  eu.etaxonomy.cdm.model.common.DefinedTermBase#getKindOf()
237
	 * @see  eu.etaxonomy.cdm.model.term.DefinedTermBase#getKindOf()
238 238
	 */
239 239
	@Transient
240 240
	public boolean isLegitimateType(){
......
268 268
	 * @see  #ILLEGITIMATE()
269 269
	 * @see  #CONSERVED()
270 270
	 * @see  #SANCTIONED()
271
	 * @see  eu.etaxonomy.cdm.model.common.DefinedTermBase#getKindOf()
271
	 * @see  eu.etaxonomy.cdm.model.term.DefinedTermBase#getKindOf()
272 272
	 */
273 273
	@Transient
274 274
	public boolean isIllegitimateType(){
......
903 903
	 * Fills <i>this</i> nomenclatural status type with contents (uuid, uri,
904 904
	 * description text, label and label abbreviation) coming from a csv line.
905 905
	 * The implicit language for the description text is "latin".
906
	 * This method overrides the method of {@link eu.etaxonomy.cdm.model.common.DefinedTermBase DefinedTermBase}.
906
	 * This method overrides the method of {@link eu.etaxonomy.cdm.model.term.DefinedTermBase DefinedTermBase}.
907 907
	 *
908 908
	 * @param	csvLine 	the (ordered) list of substrings from a csv string
909 909
	 * 						to be used to fill <i>this</i> nomenclatural status type
910 910
	 * @see					#NomenclaturalStatusType(String, String, String)
911 911
	 * @see					#readCsvLine(List, Language)
912
	 * @see					eu.etaxonomy.cdm.model.common.DefinedTermBase#readCsvLine(List)
912
	 * @see					eu.etaxonomy.cdm.model.term.DefinedTermBase#readCsvLine(List)
913 913
	 */
914 914

  
915 915
	@Override
......
951 951

  
952 952
	public static void initDefaultTerms() {
953 953
        TermVocabulary<NomenclaturalStatusType> vocabulary = getTermByUuid(uuidDoubtful).getVocabulary();
954

  
955 954
        (new NomenclaturalStatusType()).setDefaultTerms(vocabulary);
956 955
    }
957 956

  
......
986 985

  
987 986
	}
988 987

  
989

  
990

  
991 988
	/**
992 989
	 * NomenclaturalStatusType should always be shown in latin, therefore the only existing representation
993 990
	 * is the latin one. In case we pass in another Language to this method it will return a <code>null</code> representation.
......
1005 1002

  
1006 1003
		return representation;
1007 1004
	}
1008

  
1009

  
1010 1005
}

Also available in: Unified diff