This chapter lists methods in the PAPI that support localization.
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.
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.