com.arsdigita.search
Interface ContentProvider


public interface ContentProvider

This interface is the API through which a domain object provides its searchable content. Content can be provided in one of (currently) 3 formats, plain text, XML, and RAW binary. Implementors should query the SearchConfig class to determine which formats are supported by the current indexer

See Also:
MetadataProvider, SearchConfig

Method Summary
 byte[] getBytes()
          Returns the actual content for the object
 String getContext()
          Returns a 'context' tag for this block of content.
 ContentType getType()
          Returns the type of this contnet, one of the constants defined in the Search class
 

Method Detail

getContext

public String getContext()
Returns a 'context' tag for this block of content. This may be interpreted by the search engine implementations


getType

public ContentType getType()
Returns the type of this contnet, one of the constants defined in the Search class


getBytes

public byte[] getBytes()
Returns the actual content for the object

Returns:
byte array representing the text, xml or raw contnet


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