// $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.
*/
* @see eu.etaxonomy.taxeditor.bulkeditor.IEntityCreator#createEntity(java.lang.String)
*/
/** {@inheritDoc} */
- public Reference createEntity(String text) {
+ @Override
+ public Reference createEntity(String text) {
return createEntity(Reference.class, text);
}
* @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.Class, java.lang.String)
*/
/** {@inheritDoc} */
- public Reference createEntity(Object key, String text) {
+ @Override
+ public Reference createEntity(Object key, String text) {
Reference reference = null;
-
+
// TODO replace w more generic method when cdmlib matures accordingly
if (ReferenceType.Article.getMessage().equals(key)) {
reference = ReferenceFactory.newArticle();
if (ReferenceType.WebPage.getMessage().equals(key)) {
reference = ReferenceFactory.newWebPage();
}
+ if (ReferenceType.Section.getMessage().equals(key)) {
+ reference = ReferenceFactory.newSection();
+ }
if (reference == null) {
MessagingUtils.warn(getClass(), "Reference type " + key + " not found. Creating reference with default type.");
reference = ReferenceFactory.newGeneric();
*
* @return a {@link java.util.Map} object.
*/
- public Map<Object, String> getKeyLabelPairs() {
+ @Override
+ public Map<Object, String> getKeyLabelPairs() {
Map<Object, String> result = new HashMap<Object, String>();
for (ReferenceType type : ReferenceType.values()) {
result.put(type.getMessage(), type.getMessage());