|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stellent.cis.common.bean.ParamBean
public class ParamBean
| Field Summary | |
|---|---|
protected static java.lang.String |
ERROR_EITHER_FIELD_REQUIRED
|
protected static java.lang.String |
ERROR_FIELD_REQUIRED
|
protected static java.lang.String |
ERROR_NUMBER_INVALID
|
protected static java.lang.String |
ERROR_PROPERTY_ON_FIELD
|
protected java.util.ResourceBundle |
m_bundle
|
protected java.lang.String |
m_bundleName
|
protected static java.util.ResourceBundle |
s_res
|
| Fields inherited from interface com.stellent.cis.common.bean.IParamBean |
|---|
LABEL_PREFIX |
| Constructor Summary | |
|---|---|
ParamBean()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getErrorMessage(java.lang.String error)
Get an error message. |
protected java.lang.String |
getErrorMessage(java.lang.String error,
java.util.ResourceBundle bundle)
Get the error message from the given resource bundle. |
protected java.lang.String |
getErrorMessage(java.lang.String error,
java.lang.String field)
Get the error message for the given field |
protected java.lang.String |
getErrorMessage(java.lang.String error,
java.lang.String[] props)
Get the error message for the given field |
protected ParameterValidationException |
getException(ParameterValidationException exp)
Construct a new validation exception if the exception passed in is null; otherwise, just return the exception |
java.lang.String |
getFieldName(java.lang.String field)
Get the localized name of the given field |
java.util.ResourceBundle |
getResourceBundle()
Get the resource bundle associated with this parameter bean |
void |
populateData(java.util.Map data)
Populate this bean |
void |
setResourceBundle(java.lang.String bundleName)
Set the name of the resource bundle for this parameter bean |
void |
setResourceBundle(java.lang.String bundleName,
java.util.Locale locale)
Set the name of the resource bundle for this parameter bean |
void |
validate()
Validate the parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final transient java.util.ResourceBundle s_res
protected static final java.lang.String ERROR_FIELD_REQUIRED
protected static final java.lang.String ERROR_NUMBER_INVALID
protected static final java.lang.String ERROR_PROPERTY_ON_FIELD
protected static final java.lang.String ERROR_EITHER_FIELD_REQUIRED
protected java.lang.String m_bundleName
protected transient java.util.ResourceBundle m_bundle
| Constructor Detail |
|---|
public ParamBean()
| Method Detail |
|---|
public void populateData(java.util.Map data)
populateData in interface IParamBeandata -
java.lang.IllegalArgumentException - if an error occurs during data population
public void validate()
throws ParameterValidationException
validate in interface IParamBeanParameterValidationException - if the parameters are invalidpublic java.util.ResourceBundle getResourceBundle()
getResourceBundle in interface IParamBeanpublic java.lang.String getFieldName(java.lang.String field)
getFieldName in interface IParamBeanfield -
public void setResourceBundle(java.lang.String bundleName)
setResourceBundle in interface IParamBeanbundleName -
public void setResourceBundle(java.lang.String bundleName,
java.util.Locale locale)
setResourceBundle in interface IParamBeanbundleName - protected java.lang.String getErrorMessage(java.lang.String error)
error -
protected java.lang.String getErrorMessage(java.lang.String error,
java.lang.String field)
error - field -
protected java.lang.String getErrorMessage(java.lang.String error,
java.lang.String[] props)
error - props -
protected java.lang.String getErrorMessage(java.lang.String error,
java.util.ResourceBundle bundle)
error - bundle -
protected ParameterValidationException getException(ParameterValidationException exp)
exp -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||