BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.util.WebValidator Class Reference

Static Public Member Functions

static boolean validateUrl (String urlString)
 
static boolean validateEmail (String email)
 
static boolean isUrlLocal (String urlString)
 
static boolean validate (String param)
 
static boolean validate (List list)
 
static boolean validateDateString (String dateFormat, String dateString)
 

Detailed Description

Implements URL and email address validators.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.2.2
Since
1.0.0

Member Function Documentation

◆ validate() [1/2]

static boolean eu.baltrad.dex.util.WebValidator.validate ( List list)
inlinestatic

Validates a list parameter.

Parameters
paramList parameter
Returns
True upon successful validation

◆ validate() [2/2]

static boolean eu.baltrad.dex.util.WebValidator.validate ( String param)
inlinestatic

Validates a string parameter.

Parameters
paramString parameter
Returns
True upon successful validation

◆ validateDateString()

static boolean eu.baltrad.dex.util.WebValidator.validateDateString ( String dateFormat,
String dateString )
inlinestatic

Validates a date string

Parameters
dateFormatthe expected date format
dateStringthe date string that should match the format
Returns
True if successful

◆ validateEmail()

static boolean eu.baltrad.dex.util.WebValidator.validateEmail ( String email)
inlinestatic

Validates email address.

Parameters
emailEmail address to validate.
Returns
True if given address is a valid email address, false otherwise

◆ validateUrl()

static boolean eu.baltrad.dex.util.WebValidator.validateUrl ( String urlString)
inlinestatic

Validates URL address.

Parameters
urlURL address to validate.
Returns
True if given address is a valid URL address, false otherwise

The documentation for this class was generated from the following file: