C# Class com.utils.bundle.ResourceBundleFactory

This class is a bundle factory class.
You can switch the implementation or ResourceBundle using this class.
Mostrar archivo Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Properties

Property Type Description
USE_MANAGER int
USE_TXTFILE int

Public Methods

Method Description
CreateBundle ( string aName, CultureInfo aCulturalInfo, int aType ) : IResourceBundle

Gives an instance of resource bundle.

CreateDefaultBundle ( string aName ) : IResourceBundle

Gives an instance of resource bundle using default choice (see DEFAULT_USE). Caution CultureInfo.CurrentCulture will be used.

CreateDefaultBundle ( string aName, CultureInfo aCulturalInfo ) : IResourceBundle

Gives an instance of resource bundle using default choice (see DEFAULT_USE).

Private Methods

Method Description
ResourceBundleFactory ( ) : System

Constructor of the object.
Does nothing, do not use.

Method Details

CreateBundle() public static method

Gives an instance of resource bundle.
public static CreateBundle ( string aName, CultureInfo aCulturalInfo, int aType ) : IResourceBundle
aName string Name of the bundle you are looking for (ex: CanonMarkernote)
aCulturalInfo System.Globalization.CultureInfo a cultural info. Can be null
aType int a type of bundle (See USE_MANAGER or USE_TXTFILE)
return IResourceBundle

CreateDefaultBundle() public static method

Gives an instance of resource bundle using default choice (see DEFAULT_USE). Caution CultureInfo.CurrentCulture will be used.
public static CreateDefaultBundle ( string aName ) : IResourceBundle
aName string Name of the bundle you are looking for (ex: CanonMarkernote)
return IResourceBundle

CreateDefaultBundle() public static method

Gives an instance of resource bundle using default choice (see DEFAULT_USE).
public static CreateDefaultBundle ( string aName, CultureInfo aCulturalInfo ) : IResourceBundle
aName string Name of the bundle you are looking for (ex: CanonMarkernote)
aCulturalInfo System.Globalization.CultureInfo a cultural info. Can be null
return IResourceBundle

Property Details

USE_MANAGER public_oe static_oe property

public static int USE_MANAGER
return int

USE_TXTFILE public_oe static_oe property

public static int USE_TXTFILE
return int