⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simpleannotationaction2.java

📁 在Struts2中的jar包xwork的源代码.版本为2.0.7
💻 JAVA
字号:
/* * Copyright (c) 2002-2006 by OpenSymphony * All rights reserved. */package com.opensymphony.xwork2.test;import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;import com.opensymphony.xwork2.SimpleAnnotationAction;/** * SimpleAction2 * * @author Jason Carreira * @author Rainer Hermanns *         Created Jun 14, 2003 9:51:12 PM */public class SimpleAnnotationAction2 extends SimpleAnnotationAction {    private int count;    @RequiredFieldValidator(message = "You must enter a value for count.")    @IntRangeFieldValidator(min = "0", max = "5", message = "count must be between ${min} and ${max}, current value is ${count}.")    public void setCount(int count) {        this.count = count;    }    public int getCount() {        return count;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -