SamEldin.com\CurrentProjects\XML_ParserProject\src\java\sample_data_objects\MyFirstBean.java
 1 /*
 2  * To change this template, choose Tools | Templates
 3  * and open the template in the editor.
 4  */
 5 
 6 package sample_data_objects;
 7 
 8 /**
 9  *
10  * @author sameldin
11  */
12 public class MyFirstBean
13 {
14     private int     intField            = 10;
15     private String  stringField         = "Same I am";
16     private double [] doubleArrayField  = {22.22, 33.33, 44.44};
17 
18     /**
19      * @return the intField
20      */
21     public int getIntField() {
22         return intField;
23     }
24 
25     /**
26      * @param intField the intField to set
27      */
28     public void setIntField(int intField) {
29         this.intField = intField;
30     }
31 
32     /**
33      * @return the stringField
34      */
35     public String getStringField() {
36         return stringField;
37     }
38 
39     /**
40      * @param stringField the stringField to set
41      */
42     public void setStringField(String stringField) {
43         this.stringField = stringField;
44     }
45 
46     /**
47      * @return the doubleArrayField
48      */
49     public double[] getDoubleArrayField() {
50         return doubleArrayField;
51     }
52 
53     /**
54      * @param doubleArrayField the doubleArrayField to set
55      */
56     public void setDoubleArrayField(double[] doubleArrayField) {
57         this.doubleArrayField = doubleArrayField;
58     }
59 
60     public String toString()
61     {
62                 return ("intField                       " + getIntField()
63                 +       "stringField                    " + getStringField()
64             );
65     }
66 
67 }
68 
69