org.apache.jetspeed.search
Class BaseParsedObject

java.lang.Object
  extended by org.apache.jetspeed.search.BaseParsedObject
All Implemented Interfaces:
org.apache.jetspeed.search.ParsedObject

public class BaseParsedObject
extends Object
implements org.apache.jetspeed.search.ParsedObject

Base parsed object.

Version:
$Id: BaseParsedObject.java 516448 2007-03-09 16:25:47Z ate $
Author:
Mark Orciuch

Field Summary
private  String className
           
private  String content
           
private  String description
           
private  Map fields
           
private  String key
           
private  String[] keywords
           
private  Map keywordsMap
           
private  String language
           
private  float score
           
private  String title
           
private  String type
           
private  URL url
           
 
Fields inherited from interface org.apache.jetspeed.search.ParsedObject
FIELDNAME_CLASSNAME, FIELDNAME_CLASSNAME_DEFAULT, FIELDNAME_CONTENT, FIELDNAME_CONTENT_DEFAULT, FIELDNAME_DESCRIPTION, FIELDNAME_DESCRIPTION_DEFAULT, FIELDNAME_FIELDS, FIELDNAME_FIELDS_DEFAULT, FIELDNAME_KEY, FIELDNAME_KEY_DEFAULT, FIELDNAME_KEYWORDS, FIELDNAME_KEYWORDS_DEFAULT, FIELDNAME_LANGUAGE, FIELDNAME_LANGUAGE_DEFAULT, FIELDNAME_SCORE, FIELDNAME_SCORE_DEFAULT, FIELDNAME_TITLE, FIELDNAME_TITLE_DEFAULT, FIELDNAME_TYPE, FIELDNAME_TYPE_DEFAULT, FIELDNAME_URL, FIELDNAME_URL_DEFAULT, OBJECT_TYPE_PDF, OBJECT_TYPE_PORTLET, OBJECT_TYPE_PORTLET_APPLICATION, OBJECT_TYPE_URL
 
Constructor Summary
BaseParsedObject()
           
 
Method Summary
 String getClassName()
          Getter for property className.
 String getContent()
          Returns parsed object content
 String getDescription()
          Returns parsed object description
 Map getFields()
          Returns parsed object searchable fields
 String getKey()
          Returns parsed object key
 String[] getKeywords()
          Returns parsed object keywords
 Map getKeywordsMap()
           
 String getLanguage()
          Returns parsed object language
 float getScore()
          Getter for property score.
 String getTitle()
          Returns parsed object title
 String getType()
          Returns parsed object type
 URL getURL()
          Returns parsed object URL
 void setClassName(String className)
          Setter for property className.
 void setContent(String content)
          Sets parsed object content
 void setDescription(String description)
          Sets parsed object description
 void setFields(Map fields)
          Sets parsed object searchable fields
 void setKey(String key)
          Sets parsed object key
 void setKeywords(String[] keywords)
          Sets parsed object keywords
 void setKeywordsMap(Map keywordsMap)
           
 void setLanguage(String language)
          Sets parsed object language
 void setScore(float score)
          Setter for property score.
 void setTitle(String title)
          Sets parsed object title
 void setType(String type)
          Sets parsed object type
 void setURL(URL url)
          Sets parsed object URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private String key

type

private String type

title

private String title

description

private String description

content

private String content

language

private String language

url

private URL url

keywords

private String[] keywords

keywordsMap

private Map keywordsMap

fields

private Map fields

score

private float score

className

private String className
Constructor Detail

BaseParsedObject

public BaseParsedObject()
Method Detail

getKey

public String getKey()
Returns parsed object key

Specified by:
getKey in interface org.apache.jetspeed.search.ParsedObject
Returns:

setKey

public void setKey(String key)
Sets parsed object key

Specified by:
setKey in interface org.apache.jetspeed.search.ParsedObject
Parameters:
content -

getType

public String getType()
Returns parsed object type

Specified by:
getType in interface org.apache.jetspeed.search.ParsedObject
Returns:

setType

public void setType(String type)
Sets parsed object type

Specified by:
setType in interface org.apache.jetspeed.search.ParsedObject
Parameters:
type -

getContent

public String getContent()
Returns parsed object content

Specified by:
getContent in interface org.apache.jetspeed.search.ParsedObject
Returns:

setContent

public void setContent(String content)
Sets parsed object content

Specified by:
setContent in interface org.apache.jetspeed.search.ParsedObject
Parameters:
content -

getDescription

public String getDescription()
Returns parsed object description

Specified by:
getDescription in interface org.apache.jetspeed.search.ParsedObject
Returns:

setDescription

public void setDescription(String description)
Sets parsed object description

Specified by:
setDescription in interface org.apache.jetspeed.search.ParsedObject
Parameters:
description -

getKeywords

public String[] getKeywords()
Returns parsed object keywords

Specified by:
getKeywords in interface org.apache.jetspeed.search.ParsedObject
Returns:

setKeywords

public void setKeywords(String[] keywords)
Sets parsed object keywords

Specified by:
setKeywords in interface org.apache.jetspeed.search.ParsedObject
Parameters:
keywords -

getTitle

public String getTitle()
Returns parsed object title

Specified by:
getTitle in interface org.apache.jetspeed.search.ParsedObject
Returns:

setTitle

public void setTitle(String title)
Sets parsed object title

Specified by:
setTitle in interface org.apache.jetspeed.search.ParsedObject
Parameters:
title -

getLanguage

public String getLanguage()
Returns parsed object language

Specified by:
getLanguage in interface org.apache.jetspeed.search.ParsedObject
Returns:

setLanguage

public void setLanguage(String language)
Sets parsed object language

Specified by:
setLanguage in interface org.apache.jetspeed.search.ParsedObject
Parameters:
language -

getFields

public Map getFields()
Returns parsed object searchable fields

Specified by:
getFields in interface org.apache.jetspeed.search.ParsedObject
Returns:

setFields

public void setFields(Map fields)
Sets parsed object searchable fields

Specified by:
setFields in interface org.apache.jetspeed.search.ParsedObject
Parameters:
fields -

getURL

public URL getURL()
Returns parsed object URL

Specified by:
getURL in interface org.apache.jetspeed.search.ParsedObject
Returns:

setURL

public void setURL(URL url)
Sets parsed object URL

Specified by:
setURL in interface org.apache.jetspeed.search.ParsedObject
Parameters:
fields -

getScore

public float getScore()
Getter for property score.

Specified by:
getScore in interface org.apache.jetspeed.search.ParsedObject
Returns:
Value of property score.

setScore

public void setScore(float score)
Setter for property score.

Specified by:
setScore in interface org.apache.jetspeed.search.ParsedObject
Parameters:
score - New value of property score.

getClassName

public String getClassName()
Getter for property className.

Specified by:
getClassName in interface org.apache.jetspeed.search.ParsedObject
Returns:
Value of property className.

setClassName

public void setClassName(String className)
Setter for property className.

Specified by:
setClassName in interface org.apache.jetspeed.search.ParsedObject
Parameters:
score - New value of property className.

getKeywordsMap

public Map getKeywordsMap()
Specified by:
getKeywordsMap in interface org.apache.jetspeed.search.ParsedObject

setKeywordsMap

public void setKeywordsMap(Map keywordsMap)
Specified by:
setKeywordsMap in interface org.apache.jetspeed.search.ParsedObject


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.