Package com.ibm.icu.impl.locale
Class InternalLocaleBuilder
- java.lang.Object
-
- com.ibm.icu.impl.locale.InternalLocaleBuilder
-
public final class InternalLocaleBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description InternalLocaleBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalLocaleBuilderaddUnicodeLocaleAttribute(String attribute)InternalLocaleBuilderclear()InternalLocaleBuilderclearExtensions()BaseLocalegetBaseLocale()LocaleExtensionsgetLocaleExtensions()InternalLocaleBuilderremoveUnicodeLocaleAttribute(String attribute)InternalLocaleBuildersetExtension(char singleton, String value)InternalLocaleBuildersetExtensions(String subtags)InternalLocaleBuildersetLanguage(String language)InternalLocaleBuildersetLanguageTag(LanguageTag langtag)InternalLocaleBuildersetLocale(BaseLocale base, LocaleExtensions extensions)InternalLocaleBuildersetRegion(String region)InternalLocaleBuildersetScript(String script)InternalLocaleBuildersetUnicodeLocaleKeyword(String key, String type)InternalLocaleBuildersetVariant(String variant)
-
-
-
Method Detail
-
setLanguage
public InternalLocaleBuilder setLanguage(String language) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
setScript
public InternalLocaleBuilder setScript(String script) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
setRegion
public InternalLocaleBuilder setRegion(String region) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
setVariant
public InternalLocaleBuilder setVariant(String variant) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
addUnicodeLocaleAttribute
public InternalLocaleBuilder addUnicodeLocaleAttribute(String attribute) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
removeUnicodeLocaleAttribute
public InternalLocaleBuilder removeUnicodeLocaleAttribute(String attribute) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
setUnicodeLocaleKeyword
public InternalLocaleBuilder setUnicodeLocaleKeyword(String key, String type) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
setExtension
public InternalLocaleBuilder setExtension(char singleton, String value) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
setExtensions
public InternalLocaleBuilder setExtensions(String subtags) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
setLanguageTag
public InternalLocaleBuilder setLanguageTag(LanguageTag langtag)
-
setLocale
public InternalLocaleBuilder setLocale(BaseLocale base, LocaleExtensions extensions) throws LocaleSyntaxException
- Throws:
LocaleSyntaxException
-
clear
public InternalLocaleBuilder clear()
-
clearExtensions
public InternalLocaleBuilder clearExtensions()
-
getBaseLocale
public BaseLocale getBaseLocale()
-
getLocaleExtensions
public LocaleExtensions getLocaleExtensions()
-
-