From b20445b23300dc3886edb24c5d1b63bc31e501c0 Mon Sep 17 00:00:00 2001 From: Jim Blake Date: Fri, 18 Apr 2014 09:52:21 -0400 Subject: [PATCH] VIVO-731 Obj2DocIface is never used. --- .../webapp/search/beans/IndexerIface.java | 3 -- .../search/docbuilder/Obj2DocIface.java | 47 ------------------- 2 files changed, 50 deletions(-) delete mode 100644 webapp/src/edu/cornell/mannlib/vitro/webapp/search/docbuilder/Obj2DocIface.java diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/beans/IndexerIface.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/beans/IndexerIface.java index 24947f021..55781137d 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/beans/IndexerIface.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/beans/IndexerIface.java @@ -2,11 +2,8 @@ package edu.cornell.mannlib.vitro.webapp.search.beans; -import java.util.List; - import edu.cornell.mannlib.vitro.webapp.beans.Individual; import edu.cornell.mannlib.vitro.webapp.search.IndexingException; -import edu.cornell.mannlib.vitro.webapp.search.docbuilder.Obj2DocIface; /** * IntexerIface is for objects that will be used by the IndexBuilder. The diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/docbuilder/Obj2DocIface.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/docbuilder/Obj2DocIface.java deleted file mode 100644 index fbbb76b06..000000000 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/docbuilder/Obj2DocIface.java +++ /dev/null @@ -1,47 +0,0 @@ -/* $This file is distributed under the terms of the license in /doc/license.txt$ */ - -package edu.cornell.mannlib.vitro.webapp.search.docbuilder; - -import edu.cornell.mannlib.vitro.webapp.search.IndexingException; - -/** - * The Obj2Doc is an object that can translate something into - * an object that the indexer can use. - * - * @author bdc34 - * - */ -public interface Obj2DocIface { - /** - * Tests to see if this Obj2Doc an translate this object. - * @param obj - * @return - */ - public boolean canTranslate(Object obj); - - /** - * Returns an object that the indexer can use. - * @param obj - * @return - * @throws IndexingException - */ - public Object translate(Object obj) throws IndexingException; - - /** - * Returns a vitro object from a search result/hit. - * - */ - public Object unTranslate(Object result); - - /** - * Test to see if this can untranslate a search result/hit. - */ - public boolean canUnTranslate(Object result); - - /** - * Gets the id used by the index for this obj. - * @param obj - * @return - */ - public Object getIndexId(Object obj); -}