KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > harness > HABindingObject


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.harness;
23
24 import java.io.Serializable JavaDoc;
25
26 /**
27  * This class defines a serializable object that will be bound
28  * in the habinding cluster harness test. There's no significance
29  * to the fields incorporated in this class.
30  *
31  * @author <a HREF="mailto:jgauthier@novell.com">Jerry Gauthier</a>
32  * @version $Revision: 37406 $
33  */

34 public class HABindingObject implements Serializable JavaDoc
35 {
36    static final long serialVersionUID = -5987617132918027769L;
37
38    private String JavaDoc m_name;
39    private String JavaDoc m_company;
40    private String JavaDoc m_location;
41    private String JavaDoc m_country;
42    private int m_year;
43    private boolean m_isManager;
44       
45    public HABindingObject()
46    {
47    }
48   
49    public void setName(String JavaDoc name)
50    {
51       m_name = name;
52    }
53    public String JavaDoc getName()
54    {
55       return m_name;
56    }
57    
58    public void setCompany(String JavaDoc company)
59    {
60       m_company = company;
61    }
62    
63    public String JavaDoc getCompany()
64    {
65       return m_company;
66    }
67    
68    public void setLocation(String JavaDoc location)
69    {
70       m_location = location;
71    }
72    
73    public String JavaDoc getLocation()
74    {
75       return m_location;
76    }
77    
78    public void setCountry(String JavaDoc country)
79    {
80       m_country = country;
81    }
82    
83    public String JavaDoc getCountry()
84    {
85       return m_country;
86    }
87    
88    public void setYear(int year)
89    {
90       m_year = year;
91    }
92    
93    public int getYear()
94    {
95       return m_year;
96    }
97    
98    public void setManager(boolean isManager)
99    {
100       m_isManager = isManager;
101    }
102    
103    public boolean isManager()
104    {
105       return m_isManager;
106    }
107        
108    public String JavaDoc toString()
109    {
110       return("name=" + m_name + ", company=" + m_company + ", location=" + m_location
111                + ", country=" + m_country + ", year=" + m_year);
112    }
113
114 }
115
Popular Tags