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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.aendvari.common.notices.Notice

public class Notice
extends java.lang.Object

Represents a single notice sent from various places.

Up to four placeholder objects may be specified for parametric replacement of the notice text.

The NoticeTranslator interface is used to translate Notice objects into strings.


Field Summary
protected  java.lang.String notice
          The raw notice text.
private  java.lang.Object[] values
          The replacement values for this notice.
 
Constructor Summary
Notice(java.lang.String notice)
          Constructs a notice with no replacement values.
Notice(java.lang.String notice, java.lang.Object value0)
          Constructs a notice with the specified replacement values.
Notice(java.lang.String notice, java.lang.Object value0, java.lang.Object value1)
          Constructs a notice with the specified replacement values.
Notice(java.lang.String notice, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2)
          Constructs a notice with the specified replacement values.
Notice(java.lang.String notice, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2, java.lang.Object value3)
          Constructs a notice with the specified replacement values.
 
Method Summary
 java.lang.String getNotice()
          Gets the text for this notice.
 java.lang.Object[] getValues()
          Gets the replacement values for this notice.
 void setValues(java.lang.Object value0, java.lang.Object value1, java.lang.Object value2, java.lang.Object value3)
          Sets the replacement values for this notice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notice

protected java.lang.String notice
The raw notice text.


values

private java.lang.Object[] values
The replacement values for this notice.

Constructor Detail

Notice

public Notice(java.lang.String notice)
Constructs a notice with no replacement values.


Notice

public Notice(java.lang.String notice,
              java.lang.Object value0)
Constructs a notice with the specified replacement values.


Notice

public Notice(java.lang.String notice,
              java.lang.Object value0,
              java.lang.Object value1)
Constructs a notice with the specified replacement values.


Notice

public Notice(java.lang.String notice,
              java.lang.Object value0,
              java.lang.Object value1,
              java.lang.Object value2)
Constructs a notice with the specified replacement values.


Notice

public Notice(java.lang.String notice,
              java.lang.Object value0,
              java.lang.Object value1,
              java.lang.Object value2,
              java.lang.Object value3)
Constructs a notice with the specified replacement values.

Method Detail

getNotice

public java.lang.String getNotice()
Gets the text for this notice.


setValues

public void setValues(java.lang.Object value0,
                      java.lang.Object value1,
                      java.lang.Object value2,
                      java.lang.Object value3)
Sets the replacement values for this notice.


getValues

public java.lang.Object[] getValues()
Gets the replacement values for this notice.