com.inline.feature.common
Class AbstractFeatureMessage

com.inline.feature.common.AbstractFeatureMessage

public class AbstractFeatureMessage

Convenient base class for FeatureMessages.


Field Summary
protected  com.inline.feature.common.Feature feature
           
protected  java.lang.String format
           
protected  com.sun.java.util.collections.Map parameters
           
 
Constructor Summary
AbstractFeatureMessage(com.inline.feature.common.Feature feature, java.lang.String format)
           
 
Method Summary
 com.inline.feature.common.Feature getFeature()
          Returns the feature that produced the error.
 java.lang.String getFormat()
           
 java.lang.String getMessage()
          Returns the text of the error message in the specified locale.
 com.sun.java.util.collections.Map getParameters()
           
 void setParameter(java.lang.String key, java.lang.Object value)
          Specify a parameter that needs to be substituted in the format.
 java.lang.String toString()
           
 

Field Detail

feature

protected com.inline.feature.common.Feature feature

format

protected java.lang.String format

parameters

protected com.sun.java.util.collections.Map parameters
Constructor Detail

AbstractFeatureMessage

public AbstractFeatureMessage(com.inline.feature.common.Feature feature,
                              java.lang.String format)
Method Detail

setParameter

public void setParameter(java.lang.String key,
                         java.lang.Object value)
Specify a parameter that needs to be substituted in the format.

getFeature

public com.inline.feature.common.Feature getFeature()
Returns the feature that produced the error.

getFormat

public java.lang.String getFormat()

getParameters

public com.sun.java.util.collections.Map getParameters()

getMessage

public java.lang.String getMessage()
Returns the text of the error message in the specified locale.

toString

public java.lang.String toString()