com.ptc.wvs.client.beans
Class Message

java.lang.Object
  extended bycom.ptc.wvs.client.beans.Message

public class Message
extends Object

Methods associated localised text in JSP pages

Supported API: false


Field Summary
static String DEFAULT_RESOURCE
           
private  Locale locale
           
private  String localeString
           
private  String resource
           
 
Constructor Summary
Message()
           
 
Method Summary
 Locale getLocale()
          get the locale

Supported API: false
 String getLocaleString()
          get the locale string

Supported API: false
 String getMsg(String messageKey)
          Returns an localised message

Supported API: false
 String getMsg(String messageKey, Object[] textInserts)
          Returns an localised message

Supported API: false
 String getMsg(String messageKey, String singleTextInsert)
          Returns an localised message

Supported API: false
 String getMsg(String messageKey, String oneTextInsert, String twoTextInsert)
          Returns an localised message

Supported API: false
 String getMsgEQ(String messageKey)
          Returns an localised message with double quotes escaped for use when writing into javascript contants

Supported API: false
 String getMsgEQ(String messageKey, Object[] textInserts)
          Returns an localised message with double quotes escaped for use when writing into javascript contants

Supported API: false
 String getMsgEQ(String messageKey, String singleTextInsert)
          Returns an localised message with double quotes escaped for use when writing into javascript contants

Supported API: false
 String getMsgEQ(String messageKey, String oneTextInsert, String twoTextInsert)
          Returns an localised message with double quotes escaped for use when writing into javascript contants

Supported API: false
 String getResourceName()
          get the Resource file name

Supported API: false
 void setLocaleString(String accept)
          set the locale string

Supported API: false
 void setResourceName(String name)
          set the Resource file name

Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RESOURCE

public static final String DEFAULT_RESOURCE
See Also:
Constant Field Values

resource

private String resource

locale

private Locale locale

localeString

private String localeString
Constructor Detail

Message

public Message()
Method Detail

setLocaleString

public void setLocaleString(String accept)
set the locale string

Supported API: false


getLocaleString

public String getLocaleString()
get the locale string

Supported API: false

Returns:
String the locale string

getLocale

public Locale getLocale()
get the locale

Supported API: false

Returns:
Locale the locale

setResourceName

public void setResourceName(String name)
set the Resource file name

Supported API: false


getResourceName

public String getResourceName()
get the Resource file name

Supported API: false

Returns:
String Resource file name

getMsg

public String getMsg(String messageKey)
Returns an localised message

Supported API: false

Returns:
String message

getMsgEQ

public String getMsgEQ(String messageKey)
Returns an localised message with double quotes escaped for use when writing into javascript contants

Supported API: false

Returns:
String message

getMsg

public String getMsg(String messageKey,
                     String singleTextInsert)
Returns an localised message

Supported API: false

Returns:
String message

getMsgEQ

public String getMsgEQ(String messageKey,
                       String singleTextInsert)
Returns an localised message with double quotes escaped for use when writing into javascript contants

Supported API: false

Returns:
String message

getMsg

public String getMsg(String messageKey,
                     String oneTextInsert,
                     String twoTextInsert)
Returns an localised message

Supported API: false

Returns:
String message

getMsgEQ

public String getMsgEQ(String messageKey,
                       String oneTextInsert,
                       String twoTextInsert)
Returns an localised message with double quotes escaped for use when writing into javascript contants

Supported API: false

Returns:
String message

getMsg

public String getMsg(String messageKey,
                     Object[] textInserts)
Returns an localised message

Supported API: false

Returns:
String message

getMsgEQ

public String getMsgEQ(String messageKey,
                       Object[] textInserts)
Returns an localised message with double quotes escaped for use when writing into javascript contants

Supported API: false

Returns:
String message