@Deprecated @StableMinor(version="12.3", sinceVersion="4.0") public final class SearchAttributes extends Object implements IAttributeSetReader
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.Modifier and Type | Field and Description |
---|---|
protected Map<String,List<String>> |
attributes
Deprecated.
The
Map of attributes and respective values. |
Constructor and Description |
---|
SearchAttributes()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributeValue(String attributeName,
String attributeValue)
Deprecated.
Add a value to the set of values of an attribute.
|
List<String> |
getAttributeValues(String attributeName)
Deprecated.
Returns all the values related to the attribute named as specified.
|
boolean |
hasAttribute(String attributeName)
Deprecated.
Checks if the attribute set contains at least one attribute with the specified name.
|
void |
removeAttribute(String attributeName)
Deprecated.
Remove an attribute.
|
void |
setAttributeValues(String attributeName,
List<String> attributeValues)
Deprecated.
Set the values of an attribute.
|
void |
setAttributeValues(String attributeName,
String[] attributeValues)
Deprecated.
Set the values of an attribute.
|
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.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.