public class InternationalString extends Object implements IInternationalString
IInternationalString.
Copyright (c) SAP AG 2001-2005
| Constructor and Description |
|---|
InternationalString(ResourceBundle bundle,
ResourceBundle secondaryBundle,
String key)
Build InternationalString from entry in bundle.
|
InternationalString(ResourceBundle bundle,
String key)
Build InternationalString from entry in bundle.
|
InternationalString(String languageTag,
String text)
Build InternationalString from tag and content.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLanguageTag()
Gets the language tag.
|
String |
getText()
Gets the text content.
|
boolean |
matchesLocale(Locale loc,
boolean exact)
Check whether the language matches the given locale
|
String |
toString() |
public InternationalString(String languageTag, String text)
languageTag - language tagtext - text contentpublic InternationalString(ResourceBundle bundle, String key)
bundle - ResourceBundle from which to extract content and languagekey - key in bundle to usepublic InternationalString(ResourceBundle bundle, ResourceBundle secondaryBundle, String key)
bundle - ResourceBundle from which to extract content and languagesecondaryBundle - secondary (fallback) bundlekey - key in bundle to usepublic String getText()
IInternationalStringgetText in interface IInternationalStringpublic String getLanguageTag()
IInternationalStringgetLanguageTag in interface IInternationalStringnull when language unspecified)public boolean matchesLocale(Locale loc, boolean exact)
IInternationalStringmatchesLocale in interface IInternationalStringloc - locale to match withexact - when true, compare the complete tag. Otherwise, just compare the language.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice