C# Class SIL.CoreImpl.MemoryWritingSystemStore

A memory-based writing system store.
Inheritance: Palaso.WritingSystems.WritingSystemRepositoryBase, IFwWritingSystemStore
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper

Creates an LDML adaptor.

Method Details

CanSave() public méthode

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
Résultat bool

CreateLdmlAdaptor() protected méthode

Creates an LDML adaptor.
protected CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper
Résultat Palaso.WritingSystems.LdmlDataMapper

CreateNew() public méthode

Creates a new writing system definition.
public CreateNew ( ) : IWritingSystemDefinition
Résultat IWritingSystemDefinition

MemoryWritingSystemStore() public méthode

Use the default repository
public MemoryWritingSystemStore ( ) : System
Résultat System

Save() public méthode

Saves this instance.
public Save ( ) : void
Résultat void

TryGet() public méthode

Gets the specified writing system if it exists.
public TryGet ( string identifier, IWritingSystemDefinition &ws ) : bool
identifier string The identifier.
ws IWritingSystemDefinition The writing system.
Résultat bool

WritingSystemIdHasChanged() public méthode

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
Résultat bool

WritingSystemIdHasChangedTo() public méthode

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
Résultat string