Package org.biojavax
Class DummyCrossReferenceResolver
java.lang.Object
org.biojavax.DummyCrossReferenceResolver
- All Implemented Interfaces:
CrossReferenceResolver
A simple implementation of CrossReferenceResolver.
- Since:
- 1.5
- Author:
- Richard Holland, Mark Schreiber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGiven theCrossRefreturn the correspondingBioEntrygetRemoteSymbolList(CrossRef cr, Alphabet a) Given a cross reference, return the corresponding symbol list.
-
Constructor Details
-
DummyCrossReferenceResolver
public DummyCrossReferenceResolver()
-
-
Method Details
-
getRemoteSymbolList
Given a cross reference, return the corresponding symbol list. All responses are instances of InfinitelyAmbiguousSymbolList.- Specified by:
getRemoteSymbolListin interfaceCrossReferenceResolver- Parameters:
cr- the cross reference to look up.a- the alphabet to construct the infinitely ambiguous symbol list over if it cannot be found.- Returns:
- the symbol list matching it. If none, return an infintely-ambiguous symbol list rather than null.
-
getRemoteBioEntry
Given theCrossRefreturn the correspondingBioEntryAll responses are null.- Specified by:
getRemoteBioEntryin interfaceCrossReferenceResolver- Parameters:
cr- the cross reference- Returns:
- The cross referenced entry (most likely a
RichSequenceor null if it cannot be found.
-