Beispiel #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public MorphologyEngine
        (
            [NotNull] MorphologyProvider provider
        )
        {
            if (ReferenceEquals(provider, null))
            {
                throw new ArgumentNullException("provider");
            }

            _provider = provider;
        }
Beispiel #2
0
        public string RewriteQuery
        (
            [NotNull] string queryText
        )
        {
            if (string.IsNullOrEmpty(queryText))
            {
                throw new ArgumentNullException("queryText");
            }

            MorphologyProvider provider = Provider.ThrowIfNull("Provider");

            return(provider.RewriteQuery(queryText));
        }
Beispiel #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public MorphologyEngine
        (
            [NotNull] ManagedClient64 client,
            [NotNull] MorphologyProvider provider
        )
        {
            if (ReferenceEquals(client, null))
            {
                throw new ArgumentNullException("client");
            }
            if (ReferenceEquals(provider, null))
            {
                throw new ArgumentNullException("provider");
            }

            _client   = client;
            _provider = provider;
        }