Package org.bridgedb.pairs
Interface CodeMapper
-
- All Known Implementing Classes:
SyscodeBasedCodeMapper
public interface CodeMapper- Author:
- Christian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IdSysCodePairtoIdSysCodePair(Xref xref)Creates an IdSysCodePair based on a xref.XreftoXref(IdSysCodePair pair)Creates a xref based on an IdSysCodePair Changes the ref.id and dataSource.systemCode if required.
-
-
-
Method Detail
-
toIdSysCodePair
IdSysCodePair toIdSysCodePair(Xref xref) throws BridgeDBException
Creates an IdSysCodePair based on a xref. Changes the ref.id and dataSource.systemCode if required.- Parameters:
xref-- Returns:
- The pair used to represent this xref
- Throws:
BridgeDBException- Normally thrown if the xref is invalid or incomplete.
-
toXref
Xref toXref(IdSysCodePair pair) throws BridgeDBException
Creates a xref based on an IdSysCodePair Changes the ref.id and dataSource.systemCode if required.- Parameters:
pair-- Returns:
- The xref used to represent this pair
- Throws:
BridgeDBException- Normally thrown if the pair is invalid, incomplete or can not be converted to a valid xref. If the syscode does not convert to a valid DataSource
-
-