Class BilingualFileConnector

    • Constructor Detail

      • BilingualFileConnector

        public BilingualFileConnector()
    • Method Detail

      • getSettingsDisplay

        public String getSettingsDisplay()
        Description copied from interface: IQuery
        Gets a display representation of the current settings for this connector. This can be a display of some of the parameters for example, or some explanations about default non-modifiable settings.
        Specified by:
        getSettingsDisplay in interface IQuery
        Overrides:
        getSettingsDisplay in class PensieveTMConnector
        Returns:
        a display representation of the current settings.
      • query

        public int query​(String plainText)
        Description copied from interface: IQuery
        Starts a query for a give plain text.
        Specified by:
        query in interface IQuery
        Overrides:
        query in class PensieveTMConnector
        Parameters:
        plainText - text to query.
        Returns:
        The number of hits for the given query.
      • query

        public int query​(TextFragment text)
        Description copied from interface: IQuery
        Starts a query for a given text.
        Specified by:
        query in interface IQuery
        Overrides:
        query in class PensieveTMConnector
        Parameters:
        text - The text to query.
        Returns:
        The number of hits for the given query.
      • setLanguages

        public void setLanguages​(LocaleId sourceLocale,
                                 LocaleId targetLocale)
        Description copied from interface: IQuery
        Sets the source and target languages for this query engine.
        Specified by:
        setLanguages in interface IQuery
        Overrides:
        setLanguages in class PensieveTMConnector
        Parameters:
        sourceLocale - Code of the source locale.
        targetLocale - Code of the target locale.