org.apache.jetspeed.search.BaseParsedObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jetspeed-search Show documentation
Show all versions of jetspeed-search Show documentation
Jetspeed-2 Search Component
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jetspeed.search;
import java.util.Map;
import java.net.URL;
/**
* Base parsed object.
*
* @author Mark Orciuch
* @version $Id: BaseParsedObject.java 1595089 2014-05-16 02:42:46Z taylor $
*/
public class BaseParsedObject implements ParsedObject
{
private String key;
private String type;
private String title;
private String description;
private String content;
private String language;
private URL url;
private String[] keywords;
private Map keywordsMap;
private Map fields;
private float score;
private String className;
/**
* Returns parsed object key
*
* @return
*/
public String getKey()
{
return this.key;
}
/**
* Sets parsed object key
*
* @param key
*/
public void setKey(String key)
{
this.key = key;
}
/**
* Returns parsed object type
*
* @return
*/
public String getType()
{
return this.type;
}
/**
* Sets parsed object type
*
* @param type
*/
public void setType(String type)
{
this.type = type;
}
/**
* Returns parsed object content
*
* @return
*/
public String getContent()
{
return this.content;
}
/**
* Sets parsed object content
*
* @param content
*/
public void setContent(String content)
{
this.content = content;
}
/**
* Returns parsed object description
*
* @return
*/
public String getDescription()
{
return this.description;
}
/**
* Sets parsed object description
*
* @param description
*/
public void setDescription(String description)
{
this.description = description;
}
/**
* Returns parsed object keywords
*
* @return
*/
public String[] getKeywords()
{
return this.keywords;
}
/**
* Sets parsed object keywords
*
* @param keywords
*/
public void setKeywords(String[] keywords)
{
this.keywords = keywords;
}
/**
* Returns parsed object title
*
* @return
*/
public String getTitle()
{
return this.title;
}
/**
* Sets parsed object title
*
* @param title
*/
public void setTitle(String title)
{
this.title = title;
}
/**
* Returns parsed object language
*
* @return
*/
public String getLanguage()
{
return this.language;
}
/**
* Sets parsed object language
*
* @param language
*/
public void setLanguage(String language)
{
this.language = language;
}
/**
* Returns parsed object searchable fields
*
* @return
*/
public Map getFields()
{
return this.fields;
}
/**
* Sets parsed object searchable fields
*
* @param fields
*/
public void setFields(Map fields)
{
this.fields = fields;
}
/**
* Returns parsed object URL
*
* @return
*/
public URL getURL()
{
return this.url;
}
/**
* Sets parsed object URL
*
* @param url
*/
public void setURL(URL url)
{
this.url = url;
}
/**
* Getter for property score.
*
* @return Value of property score.
*/
public float getScore()
{
return this.score;
}
/**
* Setter for property score.
*
* @param score New value of property score.
*/
public void setScore(float score)
{
this.score = score;
}
/**
* Getter for property className.
*
* @return Value of property className.
*/
public String getClassName()
{
return className;
}
/**
* Setter for property className.
*
* @param className New value of property className.
*/
public void setClassName(String className)
{
this.className = className;
}
/* (non-Javadoc)
* @see org.apache.jetspeed.search.ParsedObject#getKeywordsMap()
*/
public Map getKeywordsMap()
{
return keywordsMap;
}
/* (non-Javadoc)
* @see org.apache.jetspeed.search.ParsedObject#setKeywordsMap(java.util.Map)
*/
public void setKeywordsMap(Map keywordsMap)
{
this.keywordsMap = keywordsMap;
}
}