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

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

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

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

Return true if it will be possible (absent someone changing permissions while we aren't looking) to save changes to the specified writing system.

CreateNew ( ) : IWritingSystemDefinition

Creates a new writing system definition.

LastChecked ( string identifier, System.DateTime dateModified ) : void

LocalFileWritingSystemStore ( string path ) : System

Initializes a new instance of the LocalFileWritingSystemStore class.

LocalFileWritingSystemStore ( string path, IFwWritingSystemStore globalStore ) : System

Initializes a new instance of the LocalFileWritingSystemStore class.

Remove ( string identifier ) : void

Removes the specified identifier.

Save ( ) : void

Saves this instance.

TryGet ( string identifier, IWritingSystemDefinition &ws ) : bool

Gets the specified writing system if it exists.

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

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

Creates an LDML adaptor.

OnChangeNotifySharedStore ( IWritingSystemDefinition ws ) : void

Приватные методы

Метод Описание
ReadGlobalWritingSystemsToIgnore ( ) : void
WriteGlobalWritingSystemsToIgnore ( ) : void

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

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

Return true if it will be possible (absent someone changing permissions while we aren't looking) to save changes to the specified writing system.
public CanSave ( WritingSystemDefinition ws, string &filePath ) : bool
ws WritingSystemDefinition
filePath 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

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

public LastChecked ( string identifier, System.DateTime dateModified ) : void
identifier string The identifier.
dateModified System.DateTime The date modified.
Результат void

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

Initializes a new instance of the LocalFileWritingSystemStore class.
public LocalFileWritingSystemStore ( string path ) : System
path string The path.
Результат System

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

Initializes a new instance of the LocalFileWritingSystemStore class.
public LocalFileWritingSystemStore ( string path, IFwWritingSystemStore globalStore ) : System
path string The path.
globalStore IFwWritingSystemStore The global store.
Результат System

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

protected OnChangeNotifySharedStore ( IWritingSystemDefinition ws ) : void
ws IWritingSystemDefinition The ws.
Результат void

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

Removes the specified identifier.
public Remove ( string identifier ) : void
identifier string The identifier.
Результат void

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