|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.search.SearchAttributes
@StableMinor(version="4.1", sinceVersion="4.0") public final class SearchAttributes
Set of attributes aggregated to a SearchQuery
, a SearchHit
or a SearchResults
. They represent extra information aggregated to these objects. For example, in a SearchQuery
, they contain information that affetcs the criteria used in search.
Field Summary | |
---|---|
protected Map<String,List<String>> |
attributes
The Map of attributes and respective values. |
Constructor Summary | |
---|---|
SearchAttributes()
|
Method Summary | |
---|---|
void |
addAttributeValue(String attributeName,
String attributeValue)
Add a value to the set of values of an attribute. |
List<String> |
getAttributeValues(String attributeName)
Returns all the values related to the attribute named as specified. |
boolean |
hasAttribute(String attributeName)
Checks if the attribute set contains at least one attribute with the specified name. |
void |
removeAttribute(String attributeName)
Remove an attribute. |
void |
setAttributeValues(String attributeName,
List<String> attributeValues)
Set the values of an attribute. |
void |
setAttributeValues(String attributeName,
String[] attributeValues)
Set the values of an attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,List<String>> attributes
Map
of attributes and respective values. The map key is the attribute name, and the
map value is a List
of attribute values.
Constructor Detail |
---|
public SearchAttributes()
Method Detail |
---|
public void setAttributeValues(String attributeName, String[] attributeValues)
attributeName
- attribute nameattributeValues
- attribute valuespublic void setAttributeValues(String attributeName, List<String> attributeValues)
attributeName
- attribute nameattributeValues
- attribute valuespublic void addAttributeValue(String attributeName, String attributeValue)
attributeName
- attribute nameattributeValue
- new value to be addedpublic void removeAttribute(String attributeName)
attributeName
- attribute namepublic boolean hasAttribute(String attributeName)
IAttributeSetReader
hasAttribute
in interface IAttributeSetReader
attributeName
- name of the attribute.
public List<String> getAttributeValues(String attributeName)
IAttributeSetReader
getAttributeValues
in interface IAttributeSetReader
attributeName
- name of the attribute.
List
if there is no value to return.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |