C# Class SIL.CoreImpl.MemoryWritingSystemStore

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

Public Methods

Method 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.

Protected Methods

Method Description
CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper

Creates an LDML adaptor.

Method Details

CanSave() public method

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
return bool

CreateLdmlAdaptor() protected method

Creates an LDML adaptor.
protected CreateLdmlAdaptor ( ) : Palaso.WritingSystems.LdmlDataMapper
return Palaso.WritingSystems.LdmlDataMapper

CreateNew() public method

Creates a new writing system definition.
public CreateNew ( ) : IWritingSystemDefinition
return IWritingSystemDefinition

MemoryWritingSystemStore() public method

Use the default repository
public MemoryWritingSystemStore ( ) : System
return System

Save() public method

Saves this instance.
public Save ( ) : void
return void

TryGet() public method

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

WritingSystemIdHasChanged() public method

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
return bool

WritingSystemIdHasChangedTo() public method

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
return string