|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.validation.ValidationError
This class represents an error which occurred when data is validated for submission.
Before new data is posted to ivata masks , it is possible to validate
it. If the data is for any reason invalid, then an instance of this class is
created to indicate what is wrong or missing ind the data (invalid date
format? missing parameter?). Multiple errors which occur can be grouped
together in a ValidationErrors instance.
This class originally appeared as part of ivata op and ivata team portal .
.
ValidationErrors,
org.apache.struts.action.ActionError,
Serialized Form| Constructor Summary | |
ValidationError(java.lang.String resourceFieldPathParam,
Field fieldParam,
java.lang.String errorKeyParam)
Create a new instance with the given field, and error key. |
|
ValidationError(java.lang.String resourceFieldPathParam,
Field fieldParam,
java.lang.String errorKeyParam,
java.util.List parametersParam)
Create a new instance with the given field and parameters. |
|
ValidationError(java.lang.String errorKeyParam,
java.util.List parametersParam)
Create a new instance with the given error key and parameters. |
|
ValidationError(java.lang.String resourceFieldPathParam,
java.lang.String bundle,
Field fieldParam,
java.lang.String errorKeyParam)
Create a new instance with the given field, error key and bundle. |
|
ValidationError(java.lang.String resourceFieldPathParam,
java.lang.String bundle,
Field fieldParam,
java.lang.String errorKeyParam,
java.util.List parametersParam)
Create a new instance with the given bundle, field, label and parameters. |
|
| Method Summary | |
java.lang.String |
getBundle()
Get the message resource bundle associated with this error. |
java.lang.String |
getErrorKey()
Message key of the error which occurred, from the error message resources. |
Field |
getField()
Get the field which contained an invalid value and caused the error. |
java.util.List |
getParameters()
A list of error string parameters. |
java.lang.String |
getResourceFieldPath()
Get the message resources field path associated with this field. |
java.lang.String |
toString()
Overridden from Object for convenience when debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ValidationError(java.lang.String errorKeyParam,
java.util.List parametersParam)
Create a new instance with the given error key and parameters. Attributes of this class are immutable so the values specified here cannot be later altered.
errorKeyParam - label key of the error which occurred.parametersParam - list of error string parameters, used to completed the error
message. This attribute may be
null if there are no parameters required..
public ValidationError(java.lang.String resourceFieldPathParam,
Field fieldParam,
java.lang.String errorKeyParam)
Create a new instance with the given field, and error key. Attributes of this class are immutable so the values specified here cannot be later altered.
fieldParam - field which contained an invalid value and caused the error.errorKeyParam - key of the error which occurred.
public ValidationError(java.lang.String resourceFieldPathParam,
Field fieldParam,
java.lang.String errorKeyParam,
java.util.List parametersParam)
Create a new instance with the given field and parameters. Attributes of this class are immutable so the values specified here cannot be later altered.
resourceFieldPathParam - Refer to #getResourceFieldPathParam.fieldParam - field which contained an invalid value and caused the error.errorKeyParam - label key of the error which occurred.parametersParam - list of error string parameters, used to completed the error
message. This attribute may be
null if there are no parameters required..
public ValidationError(java.lang.String resourceFieldPathParam,
java.lang.String bundle,
Field fieldParam,
java.lang.String errorKeyParam)
Create a new instance with the given field, error key and bundle. Attributes of this class are immutable so the values specified here cannot be later altered.
bundle - Refer to getBundle().resourceFieldPathParam - Refer to #getResourceFieldPathParam.fieldParam - field which contained an invalid value and caused the error.errorKeyParam - key of the error which occurred.
public ValidationError(java.lang.String resourceFieldPathParam,
java.lang.String bundle,
Field fieldParam,
java.lang.String errorKeyParam,
java.util.List parametersParam)
Create a new instance with the given bundle, field, label and parameters. Attributes of this class are immutable so the values specified here cannot be later altered.
bundle - Refer to getBundle().resourceFieldPathParam - Refer to #getResourceFieldPathParam.fieldParam - field which contained an invalid value and caused the error.errorKeyParam - label key of the error which occurred.parametersParam - list of error string parameters. This attribute may be
null if there are no parameters required..| Method Detail |
public java.lang.String getBundle()
null.
public final java.lang.String getErrorKey()
Message key of the error which occurred, from the error message resources.
public final Field getField()
Get the field which contained an invalid value and caused the error.
public final java.util.List getParameters()
A list of error string parameters. Depending on the value of
key, there may be many parameters describing the error in
detail. This attribute may be null if there are no
parameters required.
public java.lang.String getResourceFieldPath()
Get the message resources field path associated with this field. This is the first part of the path used to search for string in the localization bundle.
public final java.lang.String toString()
Object for convenience when debugging.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||