Class SimpleTBConnector

    • Constructor Detail

      • SimpleTBConnector

        public SimpleTBConnector()
    • Method Detail

      • getParameters

        public Parameters getParameters()
        Description copied from interface: ITermAccess
        Gets the current parameters for this termbase connector.
        Specified by:
        getParameters in interface ITermAccess
        Returns:
        the current parameters for this termbase connector.
      • setParameters

        public void setParameters​(IParameters params)
        Description copied from interface: ITermAccess
        Sets the parameters for this termbase connector.
        Specified by:
        setParameters in interface ITermAccess
        Parameters:
        params - the new parameter
      • close

        public void close()
        Description copied from interface: ITermAccess
        Closes the connection to the termbase.
        Specified by:
        close in interface ITermAccess
      • getExistingTerms

        public List<TermHit> getExistingTerms​(TextFragment fragment,
                                              LocaleId fragmentLocId,
                                              LocaleId otherLocId)
        Description copied from interface: ITermAccess
        Gets the list of all terms of the termbase that exist in a given fragment for a given source/target pair of locales.
        Specified by:
        getExistingTerms in interface ITermAccess
        Parameters:
        fragment - the fragment to examine.
        fragmentLocId - the locale of the fragment.
        otherLocId - the other (source or target) locale.
        Returns:
        the list of all terms of the termbase that exist in the given fragment.
      • initializeSearch

        public void initializeSearch​(boolean stringSearch,
                                     boolean betweenCodes)