com.sap.portal.pcd.textrepository

Interface ITextContainer


public interface ITextContainer

Declares methods to store and access text resources.

Instances are semantic objects that can be persisted in the PCD.


Field Summary
static String OBJECT_CLASS
          Constant for the objectclass of the textcontainer semantic object.
 
Method Summary
 void addPropertyResources(Locale aLocale, Properties theProperties)
          Set all texts for one locale.
 Enumeration getLocales()
          Get an enumeration of all locales stored in this container.
 ResourceBundle getResourceBundle(Locale aLocale)
          Get the resource bundle for the specified locale.
 void save()
          Saves the changes made to this text cointainer
 

Field Detail

OBJECT_CLASS

static final String OBJECT_CLASS
Constant for the objectclass of the textcontainer semantic object.

See Also:
Constant Field Values
Method Detail

getResourceBundle

ResourceBundle getResourceBundle(Locale aLocale)
Get the resource bundle for the specified locale. The bundle is created in a way that the fallback logic is enabled, i.e. the implementation ensures that the parent bundle is set correctly. Second, the fallback mechanism is used when looking up the bundle itself, too.

Parameters:
aLocale -
Returns:
the resoucre bundle for the specified locale; null, if the bundle cannot be found, i.e. not even for the empty locale a resource bundle was set

addPropertyResources

void addPropertyResources(Locale aLocale,
                          Properties theProperties)
Set all texts for one locale.

All key-value-pairs of the specified Properties object are added to this container for the specified locale.

Parameters:
aLocale -
theProperties -

getLocales

Enumeration getLocales()
Get an enumeration of all locales stored in this container.

Returns:
an enumeration of Locale objects; never null.

save

void save()
          throws NamingException
Saves the changes made to this text cointainer

Throws:
NamingException - if the textcontainer could not be saved
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2015 SAP AG Complete Copyright Notice