SMART COSMOS Validation

Constraint annotations and validators

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

net.smartcosmos
Идентификатор

Идентификатор

smartcosmos-validation
Последняя версия

Последняя версия

3.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

SMART COSMOS Validation
Constraint annotations and validators
Ссылка на сайт

Ссылка на сайт

http://smartcosmos.net/smartcosmos-validation
Организация-разработчик

Организация-разработчик

Smartrac Technology Fletcher, Inc.
Система контроля версий

Система контроля версий

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

Скачать smartcosmos-validation

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
javax.validation : validation-api jar 1.1.0.Final

provided (2)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.16.6
org.springframework.boot : spring-boot-starter-logging jar

test (2)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter-test jar
org.springframework.boot : spring-boot-starter-validation jar

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
3.0.0