com.arsdigita.search.lucene
Class StandardAdapter

java.lang.Object
  extended bycom.arsdigita.search.lucene.Adapter
      extended bycom.arsdigita.search.lucene.StandardAdapter
Direct Known Subclasses:
StandardAdapter

public class StandardAdapter
extends Adapter

StandardAdapter

Version:
$Revision: #3 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu

Field Summary
static String versionId
           
 
Constructor Summary
StandardAdapter(ObjectType type, Property id, Property title, Property summary, Property[] content)
           
StandardAdapter(ObjectType type, String id, String title, String summary, String[] content)
           
StandardAdapter(String type, String id, String title, String summary, String[] content)
           
 
Method Summary
 String getContent(DomainObject dobj)
           
 Date getCreationDate(DomainObject dobj)
           
 Party getCreationParty(DomainObject dobj)
           
 BigDecimal getID(DomainObject dobj)
          Gets the ID for the DomainObject
 Date getLastModifiedDate(DomainObject dobj)
           
 Party getLastModifiedParty(DomainObject dobj)
           
 Locale getLocale(DomainObject dobj)
           
 ObjectType getObjectType(DomainObject dobj)
           
 String getSummary(DomainObject dobj)
           
 String getTitle(DomainObject dobj)
          Gets the Title property for the DomainObject
 String getTypeSpecificInfo(DomainObject dobj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

StandardAdapter

public StandardAdapter(ObjectType type,
                       Property id,
                       Property title,
                       Property summary,
                       Property[] content)

StandardAdapter

public StandardAdapter(ObjectType type,
                       String id,
                       String title,
                       String summary,
                       String[] content)

StandardAdapter

public StandardAdapter(String type,
                       String id,
                       String title,
                       String summary,
                       String[] content)
Method Detail

getID

public BigDecimal getID(DomainObject dobj)
Description copied from class: Adapter
Gets the ID for the DomainObject

Specified by:
getID in class Adapter
Parameters:
dobj -
Returns:
ID of the object

getObjectType

public ObjectType getObjectType(DomainObject dobj)
Specified by:
getObjectType in class Adapter

getTypeSpecificInfo

public String getTypeSpecificInfo(DomainObject dobj)
Specified by:
getTypeSpecificInfo in class Adapter

getLocale

public Locale getLocale(DomainObject dobj)
Specified by:
getLocale in class Adapter

getTitle

public String getTitle(DomainObject dobj)
Description copied from class: Adapter
Gets the Title property for the DomainObject

Specified by:
getTitle in class Adapter
Parameters:
dobj -
Returns:
title of the object

getSummary

public String getSummary(DomainObject dobj)
Specified by:
getSummary in class Adapter

getContent

public String getContent(DomainObject dobj)
Specified by:
getContent in class Adapter

getCreationDate

public Date getCreationDate(DomainObject dobj)
Specified by:
getCreationDate in class Adapter

getCreationParty

public Party getCreationParty(DomainObject dobj)
Specified by:
getCreationParty in class Adapter

getLastModifiedDate

public Date getLastModifiedDate(DomainObject dobj)
Specified by:
getLastModifiedDate in class Adapter

getLastModifiedParty

public Party getLastModifiedParty(DomainObject dobj)
Specified by:
getLastModifiedParty in class Adapter


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