|
|
|
@ -31,6 +31,12 @@ public interface PresentationModel { |
|
|
|
|
*/ |
|
|
|
|
FieldModel getFieldModel(String fieldName); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Validate all fields. |
|
|
|
|
* Skips any fields with {@link BindingStatus#INVALID_SUBMITTED_VALUE invalid submitted values}. |
|
|
|
|
*/ |
|
|
|
|
void validate(); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* If errors are present on this PresentationModel. |
|
|
|
|
* Returns true if at least one FieldModel has {@link BindingStatus#INVALID_SUBMITTED_VALUE invalid submitted values} or is {@link ValidationStatus#INVALID invalid}. |
|
|
|
@ -43,10 +49,4 @@ public interface PresentationModel { |
|
|
|
|
*/ |
|
|
|
|
void commit(); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Validate all fields. |
|
|
|
|
* Skips any fields with {@link BindingStatus#INVALID_SUBMITTED_VALUE invalid submitted values}. |
|
|
|
|
*/ |
|
|
|
|
void validate(); |
|
|
|
|
|
|
|
|
|
} |