Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.common.notices
Class FormattedNoticeTranslator  view FormattedNoticeTranslator download FormattedNoticeTranslator.java

java.lang.Object
  extended bycom.aendvari.common.notices.FormattedNoticeTranslator
All Implemented Interfaces:
NoticeTranslator

public class FormattedNoticeTranslator
extends java.lang.Object
implements NoticeTranslator

Provides the ability to translate formatted notices into plain text.

See the java.text.MessageFormat class for information on creating formatted text


Field Summary
private  java.util.Locale locale
          The Locale to use for translation.
 
Constructor Summary
FormattedNoticeTranslator()
          Constructs a FormattedNoticeTranslator.
FormattedNoticeTranslator(java.util.Locale setLocale)
          Constructs a FormattedNoticeTranslator.
 
Method Summary
 java.util.Collection translate(java.util.Collection notices)
          Translates a Collection of notices.
 java.lang.String translate(Notice notice)
          Translates a single notice.
 java.lang.String[] translate(Notice[] notices)
          Translates an array of notices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locale

private java.util.Locale locale
The Locale to use for translation.

Constructor Detail

FormattedNoticeTranslator

public FormattedNoticeTranslator(java.util.Locale setLocale)
Constructs a FormattedNoticeTranslator.


FormattedNoticeTranslator

public FormattedNoticeTranslator()
Constructs a FormattedNoticeTranslator.

Method Detail

translate

public java.lang.String translate(Notice notice)
Translates a single notice.

Specified by:
translate in interface NoticeTranslator

translate

public java.util.Collection translate(java.util.Collection notices)
Translates a Collection of notices.

Specified by:
translate in interface NoticeTranslator

translate

public java.lang.String[] translate(Notice[] notices)
Translates an array of notices.

Specified by:
translate in interface NoticeTranslator