SMART COSMOS Validation

Constraint annotations and validators

License

License

Categories

Categories

Net
GroupId

GroupId

net.smartcosmos
ArtifactId

ArtifactId

smartcosmos-validation
Last Version

Last Version

3.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

SMART COSMOS Validation
Constraint annotations and validators
Project URL

Project URL

http://smartcosmos.net/smartcosmos-validation
Project Organization

Project Organization

Smartrac Technology Fletcher, Inc.
Source Code Management

Source Code Management

https://github.com/SMARTRACTECHNOLOGY/smartcosmos-validation/tree/master/

Download smartcosmos-validation

How to add to project

<!-- https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-validation/ -->
<dependency>
    <groupId>net.smartcosmos</groupId>
    <artifactId>smartcosmos-validation</artifactId>
    <version>3.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-validation/
implementation 'net.smartcosmos:smartcosmos-validation:3.0.0'
// https://jarcasting.com/artifacts/net.smartcosmos/smartcosmos-validation/
implementation ("net.smartcosmos:smartcosmos-validation:3.0.0")
'net.smartcosmos:smartcosmos-validation:jar:3.0.0'
<dependency org="net.smartcosmos" name="smartcosmos-validation" rev="3.0.0">
  <artifact name="smartcosmos-validation" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.smartcosmos', module='smartcosmos-validation', version='3.0.0')
)
libraryDependencies += "net.smartcosmos" % "smartcosmos-validation" % "3.0.0"
[net.smartcosmos/smartcosmos-validation "3.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
javax.validation : validation-api jar 1.1.0.Final

provided (2)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.16.6
org.springframework.boot : spring-boot-starter-logging jar

test (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar
org.springframework.boot : spring-boot-starter-validation jar

Project Modules

There are no modules declared in this project.

SMART COSMOS Validation

Build Status

Validation constraint annotations and validators. This is a collection of annotations useful for constraint validation.

@ExclusiveField

The @ExclusiveField() annotation is a class-level annotation that ensures only one of possibly alternative fields is defined.

For that, it requires an array of field names as parameter:

@ExclusiveField(fields = { "foo", "bar" })
public class Entity {
    private String foo;
    private String bar;
    private String someOtherField;
}

Validation passes if one of the specified fields is neither null or empty.

@NotEmpty

The @NotEmpty annotation is a class-level annotation that ensures a String is neither null or blank.

net.smartcosmos

Smart Cosmos Solutions Inc.

Versions

Version
3.0.0