com.inline.feature
Interface FeatureMessage

All Known Subinterfaces:
ConstraintViolation

public interface FeatureMessage

FeatureMessages are formatted parameterized messages associated with a Feature. The common examples of FeatureMessages are ValidationError and ConstraintViolation.


Method Summary
 Feature getFeature()
          Each FeatureMessage is associated with a feature.
 java.lang.String getFormat()
          Message string, which may contain parameter names using the syntax: %PARAMETER_NAME%.
 java.lang.String getMessage()
          Returns the message string by substituting parameters in the format.
 com.sun.java.util.collections.Map getParameters()
          Parameters is a map that has parameter names for keys and parameter values for values.
 

Method Detail

getFeature

public Feature getFeature()
Each FeatureMessage is associated with a feature.

getFormat

public java.lang.String getFormat()
Message string, which may contain parameter names using the syntax: %PARAMETER_NAME%. For example,
      "Field %FIELD_NAME% has incorrect type %FIELD_TYPE%"
  

getParameters

public com.sun.java.util.collections.Map getParameters()
Parameters is a map that has parameter names for keys and parameter values for values.

getMessage

public java.lang.String getMessage()
Returns the message string by substituting parameters in the format.