OracleAS PDK for Java 9.0.4.0.2

oracle.portal.provider.v2.utils
Interface MLString

All Known Implementing Classes:
HashMLString

public interface MLString

MLString is a multi-language string. An MLString allows you to store different language of the same value in the same object and retrieve a particular version based on Locale. This is designed to be used by data objects representing customization data. The Portal has a convention that many customization values should be multi-lingual. I.e. a user can store a value per language. Language is controlled via the browser's language preference setting.


Method Summary
 java.lang.String getString(java.util.Locale l)
          Returns the String in the Locale's language.
 void setString(java.lang.String str, java.util.Locale l)
          Sets the String value for the language defined be this Locale.
 

Method Detail

setString

public void setString(java.lang.String str,
                      java.util.Locale l)
Sets the String value for the language defined be this Locale.

Parameters:
str - the new value

getString

public java.lang.String getString(java.util.Locale l)
Returns the String in the Locale's language. If a String hasn't previously been assigned with this language then null is returned.

Parameters:
l - the Locale (language) of the String we want.

OracleAS PDK for Java 9.0.4.0.2

Copyright (c) 2002,2003 Oracle Corporation. All Rights Reserved.