Interface CodeMapper

    • 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