Search Results for

    Show / Hide Table of Contents

    Class AbstractTerminologyProvider

    Abstract base class for a terminology provider IConnectionAwareTerminologyProvider

    Inheritance
    System.Object
    AbstractTerminologyProvider
    Implements
    IConnectionAwareTerminologyProvider
    ITerminologyProvider
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.Terminology.TerminologyProvider.Core
    Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
    Syntax
    public abstract class AbstractTerminologyProvider : IConnectionAwareTerminologyProvider, ITerminologyProvider, IDisposable

    Constructors

    AbstractTerminologyProvider()

    Default constructor

    Declaration
    public AbstractTerminologyProvider()

    Properties

    Definition

    Get a list of terminology provider definition objects

    Declaration
    public abstract IDefinition Definition { get; }
    Property Value
    Type Description
    IDefinition

    Description

    Gets the terminology provider description

    Declaration
    public abstract string Description { get; }
    Property Value
    Type Description
    System.String

    Id

    Gets the unique ID of the terminology provider

    Declaration
    public virtual string Id { get; }
    Property Value
    Type Description
    System.String

    IsReadOnly

    Read only flag for the terminology provider.

    Declaration
    public virtual bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean

    Name

    Gets the display name of the terminology provider

    Declaration
    public abstract string Name { get; }
    Property Value
    Type Description
    System.String

    SearchEnabled

    Gets the terminology provider search enabled flag.

    Declaration
    public virtual bool SearchEnabled { get; }
    Property Value
    Type Description
    System.Boolean

    Status

    Provides information on the current status of the terminology provider

    Declaration
    public virtual ITerminologyProviderStatus Status { get; protected set; }
    Property Value
    Type Description
    ITerminologyProviderStatus

    Type

    Gets the type of the terminology provider.

    Declaration
    public TerminologyProviderType Type { get; }
    Property Value
    Type Description
    TerminologyProviderType

    Uri

    Gets the URI of this terminology provider.

    Declaration
    public abstract Uri Uri { get; }
    Property Value
    Type Description
    System.Uri

    Methods

    Dispose()

    The dispose method.

    Declaration
    public virtual void Dispose()

    GetEntry(Int32)

    Get an entry definition from the terminology provider

    Declaration
    public abstract IEntry GetEntry(int id)
    Parameters
    Type Name Description
    System.Int32 id

    The entry id to get.

    Returns
    Type Description
    IEntry

    The entry object. Returns null if an entry with the specified id does not exists in the terminology provider.

    GetEntry(Int32, IEnumerable<ILanguage>)

    Get an entry from the terminology provider

    Declaration
    public abstract IEntry GetEntry(int id, IEnumerable<ILanguage> languages)
    Parameters
    Type Name Description
    System.Int32 id

    The entry id to get.

    System.Collections.Generic.IEnumerable<ILanguage> languages

    The languages to fill for the requested entry.

    Returns
    Type Description
    IEntry

    The entry object. Returns null if an entry with the specified id does not exists in the terminology provider.

    GetLanguages()

    Returns a list of the language languages available for this terminology provider

    Declaration
    public abstract IList<ILanguage> GetLanguages()
    Returns
    Type Description
    System.Collections.Generic.IList<ILanguage>

    The list of language definitions for a terms

    Search(String, ILanguage, ILanguage, Int32, SearchMode, Boolean)

    Performs a search over the current terminology provider

    Declaration
    public abstract IList<ISearchResult> Search(string text, ILanguage source, ILanguage destination, int maxResultsCount, SearchMode mode, bool targetRequired)
    Parameters
    Type Name Description
    System.String text

    The text to search for

    ILanguage source

    Source language

    ILanguage destination

    Destination language

    System.Int32 maxResultsCount

    Maximum number of result to return

    SearchMode mode

    search mode: normal, fuzzy, full text

    System.Boolean targetRequired

    True to return only term with target language term definition

    Returns
    Type Description
    System.Collections.Generic.IList<ISearchResult>

    The list of found terms

    SetDefault(Boolean)

    Set the terminology provider as default

    Declaration
    public virtual void SetDefault(bool value)
    Parameters
    Type Name Description
    System.Boolean value

    Determines if it is set as default or not

    Implements

    IConnectionAwareTerminologyProvider
    ITerminologyProvider
    System.IDisposable

    On this page

    • Constructors
      • AbstractTerminologyProvider()
    • Properties
      • Definition
      • Description
      • Id
      • IsReadOnly
      • Name
      • SearchEnabled
      • Status
      • Type
      • Uri
    • Methods
      • Dispose()
      • GetEntry(Int32)
      • GetEntry(Int32, IEnumerable<ILanguage>)
      • GetLanguages()
      • Search(String, ILanguage, ILanguage, Int32, SearchMode, Boolean)
      • SetDefault(Boolean)
    • Implements
    Back to top Generated by DocFX