public class Validate extends 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(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(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(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(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
WGAServerException
de.innovationgate.webgate.api.WGException
public boolean isFilled() throws de.innovationgate.webgate.api.WGException
WGAServerException
de.innovationgate.webgate.api.WGException
public boolean isEmpty(String fieldName) throws de.innovationgate.webgate.api.WGException
Form.isempty(String)
with the given field namefieldName
- Name of the fieldWGAServerException
de.innovationgate.webgate.api.WGException
public boolean isFilled(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 nameWGAServerException
de.innovationgate.webgate.api.WGException
public boolean isDateInFuture() throws de.innovationgate.webgate.api.WGException
WGAServerException
de.innovationgate.webgate.api.WGException
public boolean isDateInPast() throws de.innovationgate.webgate.api.WGException
WGAServerException
de.innovationgate.webgate.api.WGException
public boolean isDateInFuture(Date date) throws de.innovationgate.webgate.api.WGException
date
- Date to testWGAServerException
de.innovationgate.webgate.api.WGException
public boolean isDateInPast(Date date) throws de.innovationgate.webgate.api.WGException
date
- Date to testWGAServerException
de.innovationgate.webgate.api.WGException