代码拉取完成,页面将自动刷新
/*
* 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;
import java.text.DateFormat;
/**
* Validate input as date that is not on weekend. <br/>
* {@link java.text.DateFormat} is used to parse input string. To specify the input format, set {@link #datePattern()}
* or {@link #dateStyle()}.
*
* @author Tomas Vondracek
*/
@Target(value = ElementType.FIELD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface DateNoWeekend {
/**
* date pattern that will be used to parse input date
*
* @return datPattern
*/
String datePattern() default "";
/**
* if no pattern is defined date style will be used to initialize {@link DateFormat}
*
* @return datFormat
*/
int dateStyle() default DateFormat.SHORT;
/**
* messageId()
*
* @return message id
*/
int messageId() default 0;
/**
* order()
*
* @return order
*/
int order() default 1000;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。