|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.gwt.shared.CmsValidationResult
public class CmsValidationResult
The result of a single field validation.
Field Summary | |
---|---|
static CmsValidationResult |
VALIDATION_OK
Convenience constant which contains a validation result for successful validations. |
Constructor Summary | |
---|---|
protected |
CmsValidationResult()
Hidden default constructor. |
|
CmsValidationResult(String errorMessage)
Creates a new validation result which doesn't replace the current field value. |
|
CmsValidationResult(String errorMessage,
String newValue)
Creates a new validation result which also replaces the current field value. |
Method Summary | |
---|---|
String |
getErrorMessage()
Returns the error message, or null if the validation has succeeded. |
String |
getNewValue()
Returns the replacement for the field value. |
boolean |
hasNewValue()
Returns true if the field value should be replaced. |
boolean |
isOk()
Returns true if the validation has succeeded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CmsValidationResult VALIDATION_OK
Constructor Detail |
---|
public CmsValidationResult(String errorMessage)
errorMessage
- the error message to display, or null if therepublic CmsValidationResult(String errorMessage, String newValue)
errorMessage
- the error message to display, or null if there was no errornewValue
- the replacement for the field valueprotected CmsValidationResult()
Method Detail |
---|
public String getErrorMessage()
public String getNewValue()
public boolean hasNewValue()
public boolean isOk()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |