Contained Within
Find More Documentation
Featured Support Resources
| PDF로 이 문서 다운로드 (1107 KB)
Chapter 32 Localization Support in PAPI
This chapter lists methods in the PAPI that support localization.
Localization Support in ProviderContext
The ProviderContext contains localization-aware methods such as:
-
getCollectionProperty(java.lang.String Channel,java.lang.String
name, boolean localized) and getCollectionProperty(java.lang.String
channel, java.lang.String name, java.util.Map def, boolean localized) which
gets the localized version of a collection property
-
getStringProperty(java.lang.String channel, java.lang.String
name, boolean localized) and getStringProperty(java.lang.String
Channel,java.lang.String name, java.lang.String def, boolean localized) which
gets the localized version of a String property
-
getCollectionProperty(String channel, String name, List pflist), getCollectionProperty(String channel, String name, Map def, List
pflist), getStringProperty(String channel, String name, List pflist), getStringProperty(String channel, String name, String def, List
pflist) to support conditional properties
See the Javadocs for more information on these methods.
Localization Support in ProfileProviderAdapter
The ProfileProviderAdapter contains localization-aware methods such as:
-
getMapProperty(java.lang.String key, boolean localized) and getMapProperty(java.lang.String key, java.lang.String def, boolean localized) which
gets the localized version of a map property for the channel.
-
getStringProperty(java.lang.String key, boolean localized) and getStringProperty(java.lang.String key, java.lang.String def,
boolean localized) which gets a localized string property for the channel.
If localized is true, then this method will attempt
to find a localized version of the map/string named by the key. The locale for the
user who this object is executing is read from the ProviderContext object associated
with this provider object.
-
getStringProperty(String channel, String name, List pflist), getStringProperty(String channel, String name, String def, List
pflist), getMapProperty(String key, List pflist), getMapProperty(String key, Map def, List pflist) to support conditional
properties.
|