|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.search.SearchAttributes
@StableMinor(version="6.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 java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
attributes
The Map of attributes and respective values. |
Constructor Summary | |
---|---|
SearchAttributes()
|
Method Summary | |
---|---|
void |
addAttributeValue(java.lang.String attributeName,
java.lang.String attributeValue)
Add a value to the set of values of an attribute. |
java.util.List<java.lang.String> |
getAttributeValues(java.lang.String attributeName)
Returns all the values related to the attribute named as specified. |
boolean |
hasAttribute(java.lang.String attributeName)
Checks if the attribute set contains at least one attribute with the specified name. |
void |
removeAttribute(java.lang.String attributeName)
Remove an attribute. |
void |
setAttributeValues(java.lang.String attributeName,
java.util.List<java.lang.String> attributeValues)
Set the values of an attribute. |
void |
setAttributeValues(java.lang.String attributeName,
java.lang.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 java.util.Map<java.lang.String,java.util.List<java.lang.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(java.lang.String attributeName, java.lang.String[] attributeValues)
attributeName
- attribute nameattributeValues
- attribute valuespublic void setAttributeValues(java.lang.String attributeName, java.util.List<java.lang.String> attributeValues)
attributeName
- attribute nameattributeValues
- attribute valuespublic void addAttributeValue(java.lang.String attributeName, java.lang.String attributeValue)
attributeName
- attribute nameattributeValue
- new value to be addedpublic void removeAttribute(java.lang.String attributeName)
attributeName
- attribute namepublic boolean hasAttribute(java.lang.String attributeName)
IAttributeSetReader
hasAttribute
in interface IAttributeSetReader
attributeName
- name of the attribute.
public java.util.List<java.lang.String> getAttributeValues(java.lang.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 |