public interface IMultiLanguagedProperty extends IProperty
IProperty
but
allows to store many (language dependent) values to a single property.
It is fully backward compatible to single valued properties but allows via the
IMultiLanguagedProperty
and IMutableMultiLanguagedProperty
interfaces explicit
access to the language dependend information of the property. The language tag should
be used like Locale
keys ("aa" or "aa_BB" or "aa_BB_any" where "aa"
is the two letter language key according to ISO639, "BB" the two letter country code
according to ISO-3166 and "any" is a variant string.
If a getter function of IProperty
is called and therefore no information about the
desired language is delivered to the IMultiLanguagedProperty
the following algorithm
is used to return the information:
Locale.getDefault()
of the VM.
If there is no fitting infoIMutableMultiLanguagedProperty.setDefaultLanguage(String)
null
IMutableMultiLanguagedProperty
the value is set for value delivered via the
algorithm described above. All other existing languages are marked automatically as "toBeTranslated".
Copyright (c) SAP AG 2002-2004
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue(String languageTag)
Get the property value if the type is PropertyType.BOOLEAN for the desired languageTag
|
IMultiLanguagedProperty |
getClone(Locale locale) |
Date |
getDateValue(String languageTag)
Get the property value if the type is PropertyType.DATE for the desired languageTag
|
int |
getIntValue(String languageTag)
Get the property value if the type is PropertyType.INTEGER for the desired languageTag
|
String[] |
getLanguageTags() |
String[] |
getLanguageTagsNeedingTranslation() |
String |
getLastSetLanguageTag() |
long |
getLongIntValue(String languageTag)
Get the property value if the type is PropertyType.LONG for the desired languageTag
|
String |
getStringValue(String languageTag)
Get the property value if the type is String for the desired languageTag
|
String |
getValueAsString(String languageTag)
Get the property value converted to a string for the desired languageTag.
|
boolean |
needsTranslation(String languageTag) |
getAttribute, getAttributes, getBooleanValue, getDateValue, getDescription, getDescription, getIntValue, getLongIntValue, getMutable, getPropertyDef, getPropertyName, getStringValue, getType, getValue, getValueAsString, getValues, isMultivalued
boolean getBooleanValue(String languageTag) throws ResourceException
ResourceException
int getIntValue(String languageTag) throws ResourceException
ResourceException
long getLongIntValue(String languageTag) throws ResourceException
ResourceException
Date getDateValue(String languageTag) throws ResourceException
ResourceException
String getStringValue(String languageTag) throws ResourceException
ResourceException
String getValueAsString(String languageTag) throws ResourceException
ResourceException
String[] getLanguageTags() throws ResourceException
ResourceException
String[] getLanguageTagsNeedingTranslation() throws ResourceException
ResourceException
boolean needsTranslation(String languageTag) throws ResourceException
languageTag
- ResourceException
String getLastSetLanguageTag() throws ResourceException
ResourceException
IMultiLanguagedProperty getClone(Locale locale)
locale
- the current locale (needed for determing the default 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 2018 SAP AG Complete Copyright Notice