|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ApolloDataI
DataLoader returns an ApolloDataI which can be queried whether its holding a CurationSet or CompositeDataHolder, which can then be retrieved. This allows both to be loaded by the DataLoader. If you have an ApolloDataI in your hand (comes back from data load) isCurationSet and isCompositeData are used to figure out what the thing is. if isCurationSet returns true then we have a curationset and we do a getCurationSet to get it. So for composite data holder returns false on isCurationSet and so getCurationSet should not be called. The alternative would be to pass on Object and then do instanceof CurationSet and instanceof CompositeDataHolder. ApolloDataI makes it clear what are the 2 things one expects this data to be, and gives you a means of querying for and retreiving those 2 things. Its for clarity sake
| Method Summary | |
|---|---|
CompositeDataHolder |
getCompositeDataHolder()
|
CurationSet |
getCurationSet()
if isCurationSet returns true than a real curation set would be returned here. |
java.lang.String |
getName()
unclear if name is really needed. |
boolean |
isCompositeDataHolder()
|
boolean |
isCurationSet()
|
boolean |
isMultiSpecies()
Temporary method until all synteny stuff uses CompositeDataHolder |
| Method Detail |
|---|
boolean isCurationSet()
CurationSet getCurationSet()
boolean isCompositeDataHolder()
CompositeDataHolder getCompositeDataHolder()
boolean isMultiSpecies()
java.lang.String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||