Web Dynpro API Documentation

com.sap.tc.webdynpro.progmodel.api
Interface IWDTextAccessor


public interface IWDTextAccessor

Provides access to translatable texts.

Version:
$Id: //tc/WebDynproRuntime/630_VAL_REL/src/_webdynpro_progmodel/java/com/sap/tc/webdynpro/progmodel/api/IWDTextAccessor.java#1 $

Method Summary
 java.lang.String getText(IWDMessage message)
          Returns a localized text for the given message.
 java.lang.String getText(IWDMessage message, java.lang.Object[] parameters)
          Returns a formatted text whose localized text is determined by the given message, parameterized by the given parameters.
 java.lang.String getText(java.lang.String key)
          Returns a localized text for the given key.
 java.lang.String getText(java.lang.String key, java.lang.Object[] parameters)
          Returns a formatted text whose localized text is determined by the given key, parameterized by the given parameters.
 

Method Detail

getText

public java.lang.String getText(IWDMessage message)
Returns a localized text for the given message. This method returns the message text stored in message. If no message text is available it is searched for the localized message text for the message's key. If a text is found for the key, this text is returned. If neither a message text nor a valid message key is available, the message key is returned. This may also be null!
Parameters:
message - message for which a localized text is returned
Returns:
the message text

getText

public java.lang.String getText(IWDMessage message,
                                java.lang.Object[] parameters)
Returns a formatted text whose localized text is determined by the given message, parameterized by the given parameters. This method returns the message text stored in message. If no message text is available it is searched for the localized message text for the message's key. If a text is found for the key, this text is returned. If neither a message text nor a valid message key is available, the message key is returned. This may also be null!
Parameters:
message - message for which a localized text is returned
parameters - object array of parameters
Returns:
the message text

getText

public java.lang.String getText(java.lang.String key)
Returns a localized text for the given key.
Parameters:
key - the key of the localized text
Returns:
the localized text

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.Object[] parameters)
Returns a formatted text whose localized text is determined by the given key, parameterized by the given parameters.
Parameters:
key - the key of the localized text
parameters - object array of parameters
Returns:
the localized text

Web Dynpro API Documentation

Copyright © 2004 SAP AG. Automatically generated Thu Mar 3 2005, 22:15