{"id":15583406,"url":"https://github.com/gab-studios/gab-validate","last_synced_at":"2025-03-29T08:23:39.266Z","repository":{"id":21773940,"uuid":"25096231","full_name":"gab-studios/gab-validate","owner":"gab-studios","description":"A GABStudios Java library to help with data validation.","archived":false,"fork":false,"pushed_at":"2022-12-04T22:11:02.000Z","size":254,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T22:40:53.986Z","etag":null,"topics":["gab-studios","gab-validate","java11","java8","validation","validation-library","validation-util"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gab-studios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-11T21:36:43.000Z","updated_at":"2021-10-05T04:04:12.000Z","dependencies_parsed_at":"2023-01-12T03:30:54.833Z","dependency_job_id":null,"html_url":"https://github.com/gab-studios/gab-validate","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gab-studios%2Fgab-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gab-studios%2Fgab-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gab-studios%2Fgab-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gab-studios%2Fgab-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gab-studios","download_url":"https://codeload.github.com/gab-studios/gab-validate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246158097,"owners_count":20732718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gab-studios","gab-validate","java11","java8","validation","validation-library","validation-util"],"created_at":"2024-10-02T20:07:59.103Z","updated_at":"2025-03-29T08:23:39.244Z","avatar_url":"https://github.com/gab-studios.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=gab-studios_gab-validate\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=gab-studios_gab-validate)\n\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/gab-studios/gab-validate/badge)](https://api.securityscorecards.dev/projects/github.com/gab-studios/gab-validate)\n\nGAB-Validate\n=======\n\nThe GAB Studios Validation Library for Java.  The purpose of this project is to analyze and examine how I would create a validation library for Java.  Comments are welcome.  Thank you.\n\nMaven Dependency\n---------\nRelease\n```java\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.gabstudios\u003c/groupId\u003e\n  \u003cartifactId\u003egab-validate\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nDevelopment\n```java\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.gabstudios\u003c/groupId\u003e\n  \u003cartifactId\u003egab-validate\u003c/artifactId\u003e\n  \u003cversion\u003e2.0.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nBuild\n---------\nUse Maven to build - `mvn package`.\n\nRequired\n---------\nThis project requires the following: \n\n    * Java 8, 11\n    * Maven\n\nUsage\n---------\n\nIn order to validate, you need to call a defineXXXXXX() method `Validate.defineString(\"HelloWorld\")`.  Once that is done, you can perform tests by chain calling test methods.\n\n```java\nValidate.defineString(\"HelloWorld\").testMaxLength(10).throwValidationExceptionOnFail().validate();\n\nboolean retVal = Validate.defineInteger(5000).testMaxValue(max).testMinValue(min).validate();\n\n```\n\n\nExample\n---------\n\n\nTo validate a Boolean:\n\n```java\n   Validate.defineBoolean(name != null \u0026\u0026 name.length() \u003e 0)\n           .testTrue()\n           .throwValidationExceptionOnFail()\n           .validate();\n```\n\n```java\n    boolean retVal = Validate.defineBoolean(name != null \u0026\u0026 name.length() \u003e 0)\n                             .testTrue()\n                             .validate();\n```\n\nTo validate a String:\n\n```java\n   Validate.defineString(\"HelloWorld\").testEqualsNoCase(\"hELLOwORLD\")\n           .testMaxLength(10)\n           .throwValidationExceptionOnFail()\n           .validate();\n```\n\n```java\n   boolean retVal = Validate.defineString(\"HelloWorld\")\n                            .testMaxLength(10)\n                            .testEqualsNoCase(\"hELLOwORLD\")\n                            .validate();\n```\n\n\nMore Documentation\n------------------\nCheck the project [wiki].\n\n\nCopyright\n-------\n[Copyright 2015 Gregory Brown]\n\n\nLicense\n-------\nThis codebase is licensed under the [Apache v2.0 License].\n\n\nFeedback\n---------\nComments and feedback are greatly appreciated!!!\n\n\n[Copyright 2015 Gregory Brown]: https://github.com/gab-studios/gab-validate/tree/master/COPYRIGHT.txt\n[Apache v2.0 License]: https://github.com/gab-studios/gab-validate/tree/master/LICENSE.txt\n[wiki]: https://github.com/gab-studios/gab-validate/wiki\n[examples]: https://github.com/gab-studios/gab-validate/wiki/Examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgab-studios%2Fgab-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgab-studios%2Fgab-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgab-studios%2Fgab-validate/lists"}