public interface AttributeMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
MATCH_ID
use this magic constant as the attrType parameter to also search for identifiers.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Xref,String> |
freeAttributeSearch(String query,
String attrType,
int limit)
free text search for matching attributes.
|
Map<Xref,Set<String>> |
freeAttributeSearchEx(String query,
String attrType,
int limit)
Improved version of free text search for matching attributes.
|
Map<String,Set<String>> |
getAttributes(Xref ref)
Get all attributes for an entity.
|
Set<String> |
getAttributes(Xref ref,
String attrType)
Get attributes for an entity, such as gene Symbol.
|
Set<String> |
getAttributeSet()
Set of attributes provided by this AttributeMapper.
|
boolean |
isFreeAttributeSearchSupported() |
static final String MATCH_ID
Set<String> getAttributes(Xref ref, String attrType) throws IDMapperException
ref - the entity to get the attribute forattrType - the attribute to look for, e.g. 'Symbol' or 'Description'.IDMapperException - if the mapping service is (temporarily) unavailableMap<String,Set<String>> getAttributes(Xref ref) throws IDMapperException
ref - the entity to get the attributes forIDMapperException - if the mapping service is (temporarily) unavailableboolean isFreeAttributeSearchSupported()
Map<Xref,String> freeAttributeSearch(String query, String attrType, int limit) throws IDMapperException
query - The text to search forattrType - the attribute to look for, e.g. 'Symbol' or 'Description'.
If you use the special MATCH_ID constant, it will query the identifier instead.limit - The number of results to limit the search toIDMapperException - if the mapping service is (temporarily) unavailableMap<Xref,Set<String>> freeAttributeSearchEx(String query, String attrType, int limit) throws IDMapperException
query - The text to search forattrType - the attribute to look for, e.g. 'Symbol' or 'Description'.
If you use the special MATCH_ID constant, it will query the identifier instead.limit - The number of results to limit the search toIDMapperException - if the mapping service is (temporarily) unavailableSet<String> getAttributeSet() throws IDMapperException
IDMapperException - if the mapping service is (temporarily) unavailableCopyright © 2006–2021 BridgeDb project. All rights reserved.