X-Git-Url: https://dev.e-taxonomy.eu/gitweb/cdmlib.git/blobdiff_plain/44f0d9d082448bdca9ca31469ce5793ce8e9d279..4af7bea2c1712c229e99410468756558a0ef6979:/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/ViralName.java diff --git a/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/ViralName.java b/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/ViralName.java index a8e5400215..f7b03b373d 100644 --- a/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/ViralName.java +++ b/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/ViralName.java @@ -1,8 +1,8 @@ /** * Copyright (C) 2007 EDIT -* European Distributed Institute of Taxonomy +* European Distributed Institute of Taxonomy * http://www.e-taxonomy.eu -* +* * The contents of this file are subject to the Mozilla Public License Version 1.1 * See LICENSE.TXT at the top of this package for the full license terms. */ @@ -23,7 +23,6 @@ import javax.xml.bind.annotation.XmlType; import org.apache.log4j.Logger; import org.hibernate.envers.Audited; import org.hibernate.search.annotations.Field; -import org.hibernate.search.annotations.Index; import org.hibernate.search.annotations.Indexed; import org.hibernate.validator.constraints.Length; import org.springframework.beans.factory.annotation.Configurable; @@ -43,7 +42,7 @@ import eu.etaxonomy.cdm.validation.annotation.NullOrNotEmpty; * "http://www.ncbi.nlm.nih.gov/ICTVdb/Ictv/vn_indxA.htm" *

* This class corresponds to: NameViral according to the ABCD schema. - * + * * @author m.doering * @version 1.0 * @created 08-Nov-2007 13:07:02 @@ -64,23 +63,23 @@ public class ViralName extends TaxonNameBase cacheStrategy; - + @XmlElement(name = "Acronym") - @Field(index=Index.YES) //TODO H42 + @Field @NullOrNotEmpty @Length(max = 255) private String acronym; - // ************* CONSTRUCTORS *************/ - + // ************* CONSTRUCTORS *************/ + protected ViralName(){ super(); } - - /** + + /** * Class constructor: creates a new viral taxon name instance * only containing its {@link Rank rank}. - * + * * @param rank the rank to be assigned to this viral taxon name * @see TaxonNameBase#TaxonNameBase(Rank) */ @@ -88,7 +87,7 @@ public class ViralName extends TaxonNameBase allFields = null; @Override @@ -99,13 +98,13 @@ public class ViralName extends TaxonNameBasethis viral taxon name * @see #ViralName(Rank) */ @@ -116,7 +115,7 @@ public class ViralName extends TaxonNameBasethis * viral taxon name. For instance PCV stays for Peanut Clump Virus. - * + * * @return the string containing the accepted acronym of this viral taxon name */ public String getAcronym(){ @@ -152,7 +151,7 @@ public class ViralName extends TaxonNameBasethis viral taxon name * follow the rules of the corresponding @@ -160,7 +159,7 @@ public class ViralName extends TaxonNameBasethis viral taxon name to its nomenclatural code * @see TaxonNameBase#isCodeCompliant() */ @@ -170,8 +169,8 @@ public class ViralName extends TaxonNameBasethis viral taxon name, that is the @@ -192,7 +191,7 @@ public class ViralName extends TaxonNameBasethis viral taxon name. - * + * * @return the cache strategy used for this viral taxon name * @see eu.etaxonomy.cdm.strategy.cache.name.INameCacheStrategy * @see eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy @@ -212,14 +211,14 @@ public class ViralName extends TaxonNameBasethis viral name. This is a shortcut that enables to create * a new instance that differs only slightly from this viral name by * modifying only some of the attributes. - * + * * @see eu.etaxonomy.cdm.model.name.TaxonNameBase#clone() * @see java.lang.Object#clone() */