// $Id$
/**
* 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.
*/
* @version 1.0
*/
public class ProtologueSection extends AbstractEntityCollectionSection<TaxonNameBase, DescriptionElementBase> implements ITaxonBaseDetailSection{
-
+
private TaxonBase taxonBase;
/**
List<TaxonNameDescription> descriptions = getTaxonNameDescriptions(getEntity());
for (TaxonNameDescription desc : descriptions){
desc.removeElement(element);
- }
+ }
}
/** {@inheritDoc} */
- public void setTaxonBase(TaxonBase entity) {
+ @Override
+ public void setTaxonBase(TaxonBase entity) {
this.taxonBase = entity;
- NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName(), NonViralName.class);
+ NonViralName name = HibernateProxyHelper.deproxy(entity.getName(), NonViralName.class);
setEntity(name);
}
-
+
/**
* NOTE: returns first description
* @param name
}
return (TaxonNameDescription) name.getDescriptions().iterator().next();
}
-
+
/**
* Try to fix FIXME in {@link #getTaxonNameDescription(TaxonNameBase)}
* @param name
if (name == null){
return result;
}
- if(name.getDescriptions().size() == 0){
- name.addDescription(TaxonNameDescription.NewInstance(name));
- }
+// if(name.getDescriptions().size() == 0){
+// name.addDescription(TaxonNameDescription.NewInstance(name));
+// }
for (TaxonNameDescription desc : name.getDescriptions()){
result.add(desc);
}