5 Star 3 Fork 0

HarmonyOS-TPC / ohos-validation-komensky

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
NotEmpty.java 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
tanjunshui 提交于 2021-04-15 20:12 . ohos版本第一次提交
/*
* Copyright (c) 2013, Inmite s.r.o. (www.inmite.eu).
*
* All rights reserved. This source code can be used only for purposes specified
* by the given license contract signed by the rightful deputy of Inmite s.r.o.
* This source code can be used only by the owner of the license.
*
* Any disputes arising in respect of this agreement (license) shall be brought
* before the Municipal Court of Prague.
*/
package eu.inmite.harmony.lib.validations.form.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Validate input string that it's not empty.
* @author Tomas Vondracek
*/
@Target(value = ElementType.FIELD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface NotEmpty {
/**
* messageId()
*
* @return message id
*/
int messageId() default 0;
/**
* order()
*
* @return order
*/
int order() default 1000;
/**
* trim()
*
* @return trim
*/
boolean trim() default true;
}
1
https://gitee.com/HarmonyOS-tpc/ohos-validation-komensky.git
git@gitee.com:HarmonyOS-tpc/ohos-validation-komensky.git
HarmonyOS-tpc
ohos-validation-komensky
ohos-validation-komensky
master

搜索帮助