001: /*
002: * $Id: FieldValidatorsExampleAction.java 471756 2006-11-06 15:01:43Z husted $
003: *
004: * Licensed to the Apache Software Foundation (ASF) under one
005: * or more contributor license agreements. See the NOTICE file
006: * distributed with this work for additional information
007: * regarding copyright ownership. The ASF licenses this file
008: * to you under the Apache License, Version 2.0 (the
009: * "License"); you may not use this file except in compliance
010: * with the License. You may obtain a copy of the License at
011: *
012: * http://www.apache.org/licenses/LICENSE-2.0
013: *
014: * Unless required by applicable law or agreed to in writing,
015: * software distributed under the License is distributed on an
016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017: * KIND, either express or implied. See the License for the
018: * specific language governing permissions and limitations
019: * under the License.
020: */
021: package org.apache.struts2.showcase.validation;
022:
023: import java.sql.Date;
024:
025: /**
026: */
027:
028: // START SNIPPET: fieldValidatorsExample
029: public class FieldValidatorsExampleAction extends
030: AbstractValidationActionSupport {
031:
032: private static final long serialVersionUID = -4829381083003175423L;
033:
034: private String requiredValidatorField = null;
035: private String requiredStringValidatorField = null;
036: private Integer integerValidatorField = null;
037: private Date dateValidatorField = null;
038: private String emailValidatorField = null;
039: private String urlValidatorField = null;
040: private String stringLengthValidatorField = null;
041: private String regexValidatorField = null;
042: private String fieldExpressionValidatorField = null;
043:
044: public Date getDateValidatorField() {
045: return dateValidatorField;
046: }
047:
048: public void setDateValidatorField(Date dateValidatorField) {
049: this .dateValidatorField = dateValidatorField;
050: }
051:
052: public String getEmailValidatorField() {
053: return emailValidatorField;
054: }
055:
056: public void setEmailValidatorField(String emailValidatorField) {
057: this .emailValidatorField = emailValidatorField;
058: }
059:
060: public Integer getIntegerValidatorField() {
061: return integerValidatorField;
062: }
063:
064: public void setIntegerValidatorField(Integer integerValidatorField) {
065: this .integerValidatorField = integerValidatorField;
066: }
067:
068: public String getRegexValidatorField() {
069: return regexValidatorField;
070: }
071:
072: public void setRegexValidatorField(String regexValidatorField) {
073: this .regexValidatorField = regexValidatorField;
074: }
075:
076: public String getRequiredStringValidatorField() {
077: return requiredStringValidatorField;
078: }
079:
080: public void setRequiredStringValidatorField(
081: String requiredStringValidatorField) {
082: this .requiredStringValidatorField = requiredStringValidatorField;
083: }
084:
085: public String getRequiredValidatorField() {
086: return requiredValidatorField;
087: }
088:
089: public void setRequiredValidatorField(String requiredValidatorField) {
090: this .requiredValidatorField = requiredValidatorField;
091: }
092:
093: public String getStringLengthValidatorField() {
094: return stringLengthValidatorField;
095: }
096:
097: public void setStringLengthValidatorField(
098: String stringLengthValidatorField) {
099: this .stringLengthValidatorField = stringLengthValidatorField;
100: }
101:
102: public String getFieldExpressionValidatorField() {
103: return fieldExpressionValidatorField;
104: }
105:
106: public void setFieldExpressionValidatorField(
107: String fieldExpressionValidatorField) {
108: this .fieldExpressionValidatorField = fieldExpressionValidatorField;
109: }
110:
111: public String getUrlValidatorField() {
112: return urlValidatorField;
113: }
114:
115: public void setUrlValidatorField(String urlValidatorField) {
116: this .urlValidatorField = urlValidatorField;
117: }
118: }
119:
120: // END SNIPPET: fieldValidatorsExample
|