Class IDMappingReaderFromDelimitedReader

    • Field Detail

      • regExDataSourceDelimiter

        protected String regExDataSourceDelimiter
      • regExIDDelimiter

        protected String regExIDDelimiter
      • dsValid

        protected boolean dsValid
      • idMappingValid

        protected boolean idMappingValid
    • Constructor Detail

      • IDMappingReaderFromDelimitedReader

        public IDMappingReaderFromDelimitedReader​(Reader reader,
                                                  String regExDataSourceDelimiter,
                                                  String regExIDDelimiter,
                                                  boolean transitivity)
                                           throws IDMapperException
        Parameters:
        reader - a Reader
        regExDataSourceDelimiter - regular expression of delimiter between data sources
        regExIDDelimiter - regular expression of delimiter between IDs
        transitivity - transitivity support
        Throws:
        IDMapperException - if failed to read
    • Method Detail

      • setTransitivity

        public void setTransitivity​(boolean transitivity)
        Set transitivity support.
        Parameters:
        transitivity - support transitivity if true.
      • getTransitivity

        public boolean getTransitivity()
        Get transitivity support.
        Returns:
        true if support transitivity; false otherwise.
      • setDataSources

        public void setDataSources​(List<DataSource> dataSources)
        Set DataSources. This will override the data sources read from the delimited reader.
        Parameters:
        dataSources - DataSources
      • readIDMappings

        protected void readIDMappings()
                               throws IOException
        Read ID mappings from the reader.
        Throws:
        IOException - on file read error
      • addIDMapping

        protected void addIDMapping​(Set<Xref> xrefs)
        Add matched references.
        Parameters:
        xrefs - matched references