Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pasindu-jayasundara/check-validation
Developed for verifying Email Address, Password, Name, Mobile numbers
https://github.com/pasindu-jayasundara/check-validation
Last synced: 28 days ago
JSON representation
Developed for verifying Email Address, Password, Name, Mobile numbers
- Host: GitHub
- URL: https://github.com/pasindu-jayasundara/check-validation
- Owner: Pasindu-Jayasundara
- Created: 2024-07-04T16:28:23.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-05T05:59:05.000Z (7 months ago)
- Last Synced: 2024-07-05T15:24:38.474Z (7 months ago)
- Language: Java
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Validation
Developed for verifying Email Address, Password, Name, Mobile numbers#### Features
1) Validate Email Address
2) Validate Mobile Number
3) Validate Name
4) Validate Password#### Methods
1) >.isValidEmail(email);
2) >.isValidMobile(mobile);
3) >.isValidName(name);
4) >.isValidPassword(password);#### How to Use
1) Download the .jar file and add it to your project
2) Import Library:
```java
import com.Check;
```3) Use Methods:
i) .isValidEmail(email)
> This method can be used to determine whether email address is in the correct format or not
```java
boolean validEmail = Check.isValidEmail(emailAddress);
```
ii) .isValidMobile(mobile);
> This method can be used to determine whether mobile number is in the correct format or not
```java
boolean validMobile = Check.isValidMobile(mobileNumber);
```
iii) .isValidName(name);
> This method can be used to determine whether name is in the correct format or not
```java
boolean validName = Check.isValidName(name);
```
iv) .isValidPassword(password);
> This method can be used to determine whether password is in the correct format or not. Req: Alphanumeric, Lowercase,Uppercase, Special Characters, 8 characters
```java
boolean validPassword = Check.isValidPassword(password);
```
#### Outputs:
1) true -> Correct format
2) false -> Wrong format#### Example Code:
```java
import com.Check;
public class Test {
public static void main(String[] args) {
boolean validEmail = Check.isValidEmail("");
boolean validMobile = Check.isValidMobile("");
boolean validName = Check.isValidName("");
boolean validPassword = Check.isValidPassword("");}
}```