com.arsdigita.search
Class IndexerType

java.lang.Object
  extended bycom.arsdigita.search.IndexerType

public class IndexerType
extends Object

This class records the capabilities of a search indexer implemenation.


Field Summary
static IndexerType INTERMEDIA
           
static IndexerType LUCENE
           
static IndexerType NOOP
           
 
Constructor Summary
protected IndexerType(String key, ContentType[] content, DocumentObserver observer)
           
 
Method Summary
 boolean equals(Object o)
          Two IndexerType objects compare equals if they have the same key
 ContentType[] getContent()
          Returns the list of content types supported by the indexer
 String getKey()
          Returns the key for the indexer
 DocumentObserver getObserver()
          Gets the document observer for this indexer
 int hashCode()
          Generates a hashcode based on the index key
 String toString()
          Simply returns the indexers key
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERMEDIA

public static final IndexerType INTERMEDIA

LUCENE

public static final IndexerType LUCENE

NOOP

public static final IndexerType NOOP
Constructor Detail

IndexerType

protected IndexerType(String key,
                      ContentType[] content,
                      DocumentObserver observer)
Method Detail

getKey

public String getKey()
Returns the key for the indexer


getContent

public ContentType[] getContent()
Returns the list of content types supported by the indexer


getObserver

public DocumentObserver getObserver()
Gets the document observer for this indexer

Returns:
document observer, or null

toString

public String toString()
Simply returns the indexers key

Returns:
the indexers key

equals

public boolean equals(Object o)
Two IndexerType objects compare equals if they have the same key

Returns:
true if o is an IndexerType and has the same key

hashCode

public int hashCode()
Generates a hashcode based on the index key

Returns:
a hash code based on the key


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC