001 // Copyright 2004, 2005 The Apache Software Foundation 002 // 003 // Licensed under the Apache License, Version 2.0 (the "License"); 004 // you may not use this file except in compliance with the License. 005 // You may obtain a copy of the License at 006 // 007 // http://www.apache.org/licenses/LICENSE-2.0 008 // 009 // Unless required by applicable law or agreed to in writing, software 010 // distributed under the License is distributed on an "AS IS" BASIS, 011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 012 // See the License for the specific language governing permissions and 013 // limitations under the License. 014 015 package org.apache.tapestry.junit.mock.app; 016 017 /** 018 * Contains information about a user. 019 * 020 * @author Howard Lewis Ship 021 * @since 2.2 022 */ 023 024 public class User 025 { 026 private String _firstName; 027 028 private String _lastName; 029 030 private boolean _male = true; 031 032 private String _ageRange = AgeRange.ADULT; 033 034 public String getAgeRange() 035 { 036 return _ageRange; 037 } 038 039 public String getFirstName() 040 { 041 return _firstName; 042 } 043 044 public String getLastName() 045 { 046 return _lastName; 047 } 048 049 public boolean isMale() 050 { 051 return _male; 052 } 053 054 public void setAgeRange(String ageRange) 055 { 056 _ageRange = ageRange; 057 } 058 059 public void setFirstName(String firstName) 060 { 061 _firstName = firstName; 062 } 063 064 public void setLastName(String lastName) 065 { 066 _lastName = lastName; 067 } 068 069 public void setMale(boolean male) 070 { 071 _male = male; 072 } 073 074 }