Class BaseSearchInputField
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchengine.base.BaseSearchInputField
-
- All Implemented Interfaces:
SearchInputField
public class BaseSearchInputField extends Object implements SearchInputField
A foundation class for implementing SearchInputField.
-
-
Constructor Summary
Constructors Constructor Description BaseSearchInputField(SearchInputField field)Create a copy of the field.BaseSearchInputField(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValues(Object... values)Add values to this field.voidaddValues(Collection<? extends Object> values)Add values to this field.booleanequals(Object obj)floatgetBoost()ObjectgetFirstValue()May return null.StringgetName()Collection<Object>getValues()May return an empty collection, but never null.inthashCode()voidsetBoost(float boost)Set the boost level for this field.StringtoString()
-
-
-
Constructor Detail
-
BaseSearchInputField
public BaseSearchInputField(String name)
-
BaseSearchInputField
public BaseSearchInputField(SearchInputField field)
Create a copy of the field.
-
-
Method Detail
-
addValues
public void addValues(Object... values)
Description copied from interface:SearchInputFieldAdd values to this field.- Specified by:
addValuesin interfaceSearchInputField
-
addValues
public void addValues(Collection<? extends Object> values)
Description copied from interface:SearchInputFieldAdd values to this field.- Specified by:
addValuesin interfaceSearchInputField
-
setBoost
public void setBoost(float boost)
Description copied from interface:SearchInputFieldSet the boost level for this field.- Specified by:
setBoostin interfaceSearchInputField
-
getName
public String getName()
- Specified by:
getNamein interfaceSearchInputField
-
getBoost
public float getBoost()
- Specified by:
getBoostin interfaceSearchInputField
-
getValues
public Collection<Object> getValues()
Description copied from interface:SearchInputFieldMay return an empty collection, but never null.- Specified by:
getValuesin interfaceSearchInputField
-
getFirstValue
public Object getFirstValue()
Description copied from interface:SearchInputFieldMay return null.- Specified by:
getFirstValuein interfaceSearchInputField
-
-