public class Validate
extends java.lang.Object
| Constructor and Description |
|---|
Validate(WGA wga)
Public constructor, just for internal purposes
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDateInFuture()
Tests if the date is a valid date in the future
Provided for TMLScript and not usable in Java
|
boolean |
isDateInFuture(java.util.Date date)
Tests if the date is a valid date in the future
|
boolean |
isDateInPast()
Tests if the date is a valid date in the past
Provided for TMLScript and not usable in Java
|
boolean |
isDateInPast(java.util.Date date)
Tests if the date is a valid date in the past
|
boolean |
isEmpty()
Returns if the WebTML form field is empty
Provided for TMLScript and not usable in Java
|
boolean |
isEmpty(java.lang.String fieldName)
Returns if the WebTML form field is empty
This method is the same as calling
Form.isempty(String) with the given field name |
boolean |
isFilled()
Returns if the WebTML form field is empty
Provided for TMLScript and not usable in Java
|
boolean |
isFilled(java.lang.String fieldName)
Returns if a WebTML form field is filled
This method performs the opposite test as
isEmpty(String). |
public Validate(WGA wga)
wga - public boolean isEmpty()
throws de.innovationgate.webgate.api.WGException
WGAServerExceptionde.innovationgate.webgate.api.WGExceptionpublic boolean isFilled()
throws de.innovationgate.webgate.api.WGException
WGAServerExceptionde.innovationgate.webgate.api.WGExceptionpublic boolean isEmpty(java.lang.String fieldName)
throws de.innovationgate.webgate.api.WGException
Form.isempty(String) with the given field namefieldName - Name of the fieldWGAServerExceptionde.innovationgate.webgate.api.WGExceptionpublic boolean isFilled(java.lang.String fieldName)
throws de.innovationgate.webgate.api.WGException
isEmpty(String). You could use "!isEmpty()" instead in your code but using this method makes it easier to read and understand correctly, prevents errors and may have optimisations for this vice-versa test in the future.fieldName - Field nameWGAServerExceptionde.innovationgate.webgate.api.WGExceptionpublic boolean isDateInFuture()
throws de.innovationgate.webgate.api.WGException
WGAServerExceptionde.innovationgate.webgate.api.WGExceptionpublic boolean isDateInPast()
throws de.innovationgate.webgate.api.WGException
WGAServerExceptionde.innovationgate.webgate.api.WGExceptionpublic boolean isDateInFuture(java.util.Date date)
throws de.innovationgate.webgate.api.WGException
date - Date to testWGAServerExceptionde.innovationgate.webgate.api.WGExceptionpublic boolean isDateInPast(java.util.Date date)
throws de.innovationgate.webgate.api.WGException
date - Date to testWGAServerExceptionde.innovationgate.webgate.api.WGException