|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.api.bag.BagQueryResult
public class BagQueryResult
Class to hold the results of querying for a bag of objects. Makes available the matched objects, results that require some user input (issues) and unresolved input.
| Field Summary | |
|---|---|
static java.lang.String |
DUPLICATE
Key of the Map returned by getIssues() when the query for the input string found more than one object. |
static java.lang.String |
OTHER
Key of the Map returned by getIssues() when the input string |
static java.lang.String |
TYPE_CONVERTED
Key of the Map returned by getIssues() when the object found when querying using input string needed to be translated. |
static java.lang.String |
WILDCARD
Key of the Map returned by getIssues() when the object found by querying with a wildcard. |
| Constructor Summary | |
|---|---|
BagQueryResult()
|
|
| Method Summary | |
|---|---|
void |
addIssue(java.lang.String type,
java.lang.String query,
java.lang.String input,
java.util.List objects)
Add an issue to this result. |
void |
addMatch(java.lang.String input,
java.lang.Integer id)
Add a new match from an input string to an InterMineObject id. |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List>>> |
getIssues()
Get any results that require some user input before adding to the bag. |
java.util.Set<java.lang.Integer> |
getMatchAndIssueIds()
Get ids of all InterMineObjects returned that were matches or issues for this bag query lookup. |
java.util.Map<java.lang.Integer,java.util.List> |
getMatches()
Get any exact matches found by the queries [id -> [input strings]. |
java.util.Map<java.lang.String,java.lang.Object> |
getUnresolved()
Get a Map of any input Strings for which objects of the right type could not be found. |
void |
setUnresolved(java.util.Map<java.lang.String,java.lang.Object> unresolved)
Set the Map of unresolved input strings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DUPLICATE
public static final java.lang.String OTHER
public static final java.lang.String TYPE_CONVERTED
public static final java.lang.String WILDCARD
| Constructor Detail |
|---|
public BagQueryResult()
| Method Detail |
|---|
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.List>>> getIssues()
public void addIssue(java.lang.String type,
java.lang.String query,
java.lang.String input,
java.util.List objects)
type - one of the type constants from BagQueryResultquery - the name of the query that generated this issueinput - the input identifierobjects - the objects found for the input identifierspublic java.util.Map<java.lang.Integer,java.util.List> getMatches()
public java.util.Set<java.lang.Integer> getMatchAndIssueIds()
public void addMatch(java.lang.String input,
java.lang.Integer id)
input - the original input string enteredid - the id of an InterMineObjectpublic java.util.Map<java.lang.String,java.lang.Object> getUnresolved()
public void setUnresolved(java.util.Map<java.lang.String,java.lang.Object> unresolved)
unresolved - the new unresolved Map
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||