Class Locale
public class Locale : JVMBridgeBase<Locale>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Locale>Locale
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Locale>.IsAssignableFrom(IJavaType)JVMBridgeBase<Locale>.IsAssignableFrom<T>()JVMBridgeBase<Locale>.Execute<T>(params T[])JVMBridgeBase<Locale>.DynBridgeClazzJVMBridgeBase<Locale>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Locale()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Locale()
Locale(String)
public Locale(String arg0)
Parameters
Locale(String, String)
public Locale(String arg0, String arg1)
Parameters
Locale(String, String, String)
public Locale(String arg0, String arg1, String arg2)
Parameters
Locale(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Locale(params object[] args)
Parameters
args
object[]
Properties
AvailableLocales
public static Locale[] AvailableLocales { get; }
Property Value
- Locale[]
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CANADA
public static Locale CANADA { get; }
Property Value
CANADA_FRENCH
public static Locale CANADA_FRENCH { get; }
Property Value
CHINA
public static Locale CHINA { get; }
Property Value
CHINESE
public static Locale CHINESE { get; }
Property Value
Country
public String Country { get; }
Property Value
Default
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.html#getDefault() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.html#setDefault(java.util.Locale)
public static Locale Default { get; set; }
Property Value
DisplayCountry
public String DisplayCountry { get; }
Property Value
DisplayLanguage
public String DisplayLanguage { get; }
Property Value
DisplayName
public String DisplayName { get; }
Property Value
DisplayScript
public String DisplayScript { get; }
Property Value
DisplayVariant
public String DisplayVariant { get; }
Property Value
ENGLISH
public static Locale ENGLISH { get; }
Property Value
ExtensionKeys
public Set<Character> ExtensionKeys { get; }
Property Value
FRANCE
public static Locale FRANCE { get; }
Property Value
FRENCH
public static Locale FRENCH { get; }
Property Value
GERMAN
public static Locale GERMAN { get; }
Property Value
GERMANY
public static Locale GERMANY { get; }
Property Value
ISO3Country
public String ISO3Country { get; }
Property Value
ISO3Language
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.html#getISO3Language()
public String ISO3Language { get; }
Property Value
ISOCountries
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.html#getISOCountries()
public static String[] ISOCountries { get; }
Property Value
- String[]
ISOLanguages
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.html#getISOLanguages()
public static String[] ISOLanguages { get; }
Property Value
- String[]
ITALIAN
public static Locale ITALIAN { get; }
Property Value
ITALY
public static Locale ITALY { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
JAPAN
public static Locale JAPAN { get; }
Property Value
JAPANESE
public static Locale JAPANESE { get; }
Property Value
KOREA
public static Locale KOREA { get; }
Property Value
KOREAN
public static Locale KOREAN { get; }
Property Value
Language
public String Language { get; }
Property Value
PRC
public static Locale PRC { get; }
Property Value
PRIVATE_USE_EXTENSION
public static char PRIVATE_USE_EXTENSION { get; }
Property Value
ROOT
public static Locale ROOT { get; }
Property Value
SIMPLIFIED_CHINESE
public static Locale SIMPLIFIED_CHINESE { get; }
Property Value
Script
public String Script { get; }
Property Value
TAIWAN
public static Locale TAIWAN { get; }
Property Value
TRADITIONAL_CHINESE
public static Locale TRADITIONAL_CHINESE { get; }
Property Value
UK
public static Locale UK { get; }
Property Value
UNICODE_LOCALE_EXTENSION
public static char UNICODE_LOCALE_EXTENSION { get; }
Property Value
US
public static Locale US { get; }
Property Value
UnicodeLocaleAttributes
public Set<String> UnicodeLocaleAttributes { get; }
Property Value
UnicodeLocaleKeys
public Set<String> UnicodeLocaleKeys { get; }
Property Value
Variant
public String Variant { get; }
Property Value
Methods
Filter(List<LanguageRange>, Collection<Locale>)
public static List<Locale> Filter(List<Locale.LanguageRange> arg0, Collection<Locale> arg1)
Parameters
arg0
List<Locale.LanguageRange>arg1
Collection<Locale>
Returns
Filter(List<LanguageRange>, Collection<Locale>, FilteringMode)
public static List<Locale> Filter(List<Locale.LanguageRange> arg0, Collection<Locale> arg1, Locale.FilteringMode arg2)
Parameters
arg0
List<Locale.LanguageRange>arg1
Collection<Locale>arg2
Locale.FilteringMode
Returns
FilterTags(List<LanguageRange>, Collection<String>)
public static List<String> FilterTags(List<Locale.LanguageRange> arg0, Collection<String> arg1)
Parameters
arg0
List<Locale.LanguageRange>arg1
Collection<String>
Returns
FilterTags(List<LanguageRange>, Collection<String>, FilteringMode)
public static List<String> FilterTags(List<Locale.LanguageRange> arg0, Collection<String> arg1, Locale.FilteringMode arg2)
Parameters
arg0
List<Locale.LanguageRange>arg1
Collection<String>arg2
Locale.FilteringMode
Returns
ForLanguageTag(String)
public static Locale ForLanguageTag(String arg0)
Parameters
Returns
GetDefault(Category)
public static Locale GetDefault(Locale.Category arg0)
Parameters
Returns
GetDisplayCountry(Locale)
public String GetDisplayCountry(Locale arg0)
Parameters
Returns
GetDisplayLanguage(Locale)
public String GetDisplayLanguage(Locale arg0)
Parameters
Returns
GetDisplayName(Locale)
public String GetDisplayName(Locale arg0)
Parameters
Returns
GetDisplayScript(Locale)
public String GetDisplayScript(Locale arg0)
Parameters
Returns
GetDisplayVariant(Locale)
public String GetDisplayVariant(Locale arg0)
Parameters
Returns
GetExtension(char)
public String GetExtension(char arg0)
Parameters
Returns
GetISOCountries(IsoCountryCode)
public static Set<String> GetISOCountries(Locale.IsoCountryCode arg0)
Parameters
Returns
GetUnicodeLocaleType(String)
public String GetUnicodeLocaleType(String arg0)
Parameters
Returns
HasExtensions()
public bool HasExtensions()
Returns
Lookup(List<LanguageRange>, Collection<Locale>)
public static Locale Lookup(List<Locale.LanguageRange> arg0, Collection<Locale> arg1)
Parameters
arg0
List<Locale.LanguageRange>arg1
Collection<Locale>
Returns
LookupTag(List<LanguageRange>, Collection<String>)
public static String LookupTag(List<Locale.LanguageRange> arg0, Collection<String> arg1)
Parameters
arg0
List<Locale.LanguageRange>arg1
Collection<String>
Returns
SetDefault(Category, Locale)
public static void SetDefault(Locale.Category arg0, Locale arg1)
Parameters
StripExtensions()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Locale.html#stripExtensions()
public Locale StripExtensions()
Returns
ToLanguageTag()
public String ToLanguageTag()
Returns
Operators
implicit operator Serializable(Locale)
Converter from Locale to Serializable
public static implicit operator Serializable(Locale t)
Parameters
t
Locale
Returns
implicit operator Cloneable(Locale)
public static implicit operator Cloneable(Locale t)
Parameters
t
Locale