C# Класс SIL.CoreImpl.MemoryWritingSystemStore

A memory-based writing system store.
Наследование: Palaso.WritingSystems.WritingSystemRepositoryBase, IFwWritingSystemStore
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanSave ( WritingSystemDefinition ws, string &path ) : bool

Review JohnT: is there ever a case where Save isn't possible for this store?

CreateNew ( ) : IWritingSystemDefinition

Creates a new writing system definition.

MemoryWritingSystemStore ( ) : System

Use the default repository

Save ( ) : void

Saves this instance.

TryGet ( string identifier, IWritingSystemDefinition &ws ) : bool

Gets the specified writing system if it exists.

WritingSystemIdHasChanged ( string id ) : bool

This is used by the orphan finder, which we don't use (yet). It tells whether, typically in the scope of some current change log, a writing system ID has changed to something else...call WritingSystemIdHasChangedTo to find out what.

WritingSystemIdHasChangedTo ( string id ) : string

This is used by the orphan finder, which we don't use (yet). It tells what, typically in the scope of some current change log, a writing system ID has changed to.

Защищенные методы

Метод Описание
CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper

Creates an LDML adaptor.

Описание методов

CanSave() публичный Метод

Review JohnT: is there ever a case where Save isn't possible for this store?
public CanSave ( WritingSystemDefinition ws, string &path ) : bool
ws WritingSystemDefinition
path string
Результат bool

CreateLdmlAdaptor() защищенный Метод

Creates an LDML adaptor.
protected CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper
Результат Palaso.WritingSystems.LdmlDataMapper

CreateNew() публичный Метод

Creates a new writing system definition.
public CreateNew ( ) : IWritingSystemDefinition
Результат IWritingSystemDefinition

MemoryWritingSystemStore() публичный Метод

Use the default repository
public MemoryWritingSystemStore ( ) : System
Результат System

Save() публичный Метод

Saves this instance.
public Save ( ) : void
Результат void

TryGet() публичный Метод

Gets the specified writing system if it exists.
public TryGet ( string identifier, IWritingSystemDefinition &ws ) : bool
identifier string The identifier.
ws IWritingSystemDefinition The writing system.
Результат bool

WritingSystemIdHasChanged() публичный Метод

This is used by the orphan finder, which we don't use (yet). It tells whether, typically in the scope of some current change log, a writing system ID has changed to something else...call WritingSystemIdHasChangedTo to find out what.
public WritingSystemIdHasChanged ( string id ) : bool
id string
Результат bool

WritingSystemIdHasChangedTo() публичный Метод

This is used by the orphan finder, which we don't use (yet). It tells what, typically in the scope of some current change log, a writing system ID has changed to.
public WritingSystemIdHasChangedTo ( string id ) : string
id string
Результат string