com.binaryfantasy.murq.content
Class ContentAdapter

java.lang.Object
  extended by com.binaryfantasy.murq.content.ContentAdapter
All Implemented Interfaces:
IContent, IIndexable
Direct Known Subclasses:
BinaryContentAdapter

public class ContentAdapter
extends Object
implements IContent, IIndexable

Provides default implementation of the methods described in the IContent interface.

Author:
Bill Weiss

Constructor Summary
ContentAdapter()
           
 
Method Summary
 Set<String> defaultProperties()
          Returns a Set of properties that should be concatenated together for default searching as a whole.
 String getContentId()
          Returns the unique identifier of this content.
 Date getCreationDate()
          Returns the date the content was first persisted, or null if not yet persisted.
 Date getLastModifiedDate()
          Returns the date the content was last persisted, or null if not yet persisted.
 Locale getLocale()
          Returns the locale this content is meant for, or null if default.
 Set<String> keywordProperties()
          Returns a Set of properties that are not tokenized, but are indexed.
 void setContentId(String contentId)
          Sets the unique identifier of this content.
 void setCreationDate(Date date)
          Sets the date the content was first persisted.
 void setLastModifiedDate(Date date)
          Sets the date the content was last persisted.
 void setLocale(Locale locale)
          Sets the locale this content is meant for.
 Set<String> textProperties()
          Returns a Set of properties that are tokenized and indexed.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentAdapter

public ContentAdapter()
Method Detail

getContentId

public String getContentId()
Description copied from interface: IContent
Returns the unique identifier of this content.

Specified by:
getContentId in interface IContent
Returns:
the unique identifier of this content.

setContentId

public void setContentId(String contentId)
Description copied from interface: IContent
Sets the unique identifier of this content.

FOR INTERNAL USE ONLY.

Specified by:
setContentId in interface IContent
Parameters:
contentId - the unique identifier of this content.

getLocale

public Locale getLocale()
Description copied from interface: IContent
Returns the locale this content is meant for, or null if default.

Specified by:
getLocale in interface IContent
Returns:
the locale this content is meant for, or null if default.

setLocale

public void setLocale(Locale locale)
Description copied from interface: IContent
Sets the locale this content is meant for.

Specified by:
setLocale in interface IContent
Parameters:
locale - the locale this content is meant for, or null if default.

getLastModifiedDate

public Date getLastModifiedDate()
Description copied from interface: IContent
Returns the date the content was last persisted, or null if not yet persisted.

Specified by:
getLastModifiedDate in interface IContent
Returns:
the date the content was last persisted, or null if not yet persisted.

setLastModifiedDate

public void setLastModifiedDate(Date date)
Description copied from interface: IContent
Sets the date the content was last persisted.

FOR INTERNAL USE ONLY.

Specified by:
setLastModifiedDate in interface IContent
Parameters:
date - the date the content was last persisted.

getCreationDate

public Date getCreationDate()
Description copied from interface: IContent
Returns the date the content was first persisted, or null if not yet persisted.

Specified by:
getCreationDate in interface IContent
Returns:
the date the content was first persisted, or null if not yet persisted.

setCreationDate

public void setCreationDate(Date date)
Description copied from interface: IContent
Sets the date the content was first persisted.

FOR INTERNAL USE ONLY.

Specified by:
setCreationDate in interface IContent
Parameters:
date - the date the content was first persisted.

defaultProperties

public Set<String> defaultProperties()
Description copied from interface: IIndexable
Returns a Set of properties that should be concatenated together for default searching as a whole.

Specified by:
defaultProperties in interface IIndexable
Returns:
a Set of properties that should be concatenated together for default searching as a whole.

keywordProperties

public Set<String> keywordProperties()
Description copied from interface: IIndexable
Returns a Set of properties that are not tokenized, but are indexed.

Specified by:
keywordProperties in interface IIndexable
Returns:
a Set of properties that are not tokenized, but are indexed.

textProperties

public Set<String> textProperties()
Description copied from interface: IIndexable
Returns a Set of properties that are tokenized and indexed.

Specified by:
textProperties in interface IIndexable
Returns:
a Set of properties that are tokenized and indexed.

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2000-2006, BinaryFantasy.com