1 package net.sf.voruta; 2 3 /*** 4 * 5 * @author baliuka 6 */ 7 public class DemoBean { 8 9 public static String EMPTY = ""; 10 11 /*** Holds value of property id. */ 12 private int id; 13 14 /*** Holds value of property name. */ 15 private String name; 16 17 /*** Holds value of property indexed. */ 18 private int[] indexed; 19 20 private DemoBean next ; 21 22 /*** Creates a new instance of DemoBean */ 23 public DemoBean() { 24 } 25 26 /*** Creates a new instance of DemoBean */ 27 public DemoBean(int id,String name) { 28 this.id = id; 29 this.name = name; 30 } 31 32 public DemoBean getNext(){ 33 if(next == null){ 34 next = new DemoBean(); 35 } 36 return next; 37 38 } 39 /*** Getter for property id. 40 * @return Value of property id. 41 * 42 */ 43 public int getId() { 44 return this.id; 45 } 46 47 /*** Setter for property id. 48 * @param id New value of property id. 49 * 50 */ 51 public void setId(int id) { 52 this.id = id; 53 } 54 55 /*** Getter for property name. 56 * @return Value of property name. 57 * 58 */ 59 public String getName() { 60 return this.name; 61 } 62 63 /*** Setter for property name. 64 * @param name New value of property name. 65 * 66 */ 67 public void setName(String name) { 68 this.name = name; 69 } 70 71 /*** Indexed getter for property indexed. 72 * @param index Index of the property. 73 * @return Value of the property at <CODE>index</CODE>. 74 */ 75 public int getIndexed(int index) { 76 return this.indexed[index]; 77 } 78 79 /*** Getter for property indexed. 80 * @return Value of property indexed. 81 */ 82 public int[] getIndexed() { 83 return this.indexed; 84 } 85 86 /*** Indexed setter for property indexed. 87 * @param index Index of the property. 88 * @param indexed New value of the property at <CODE>index</CODE>. 89 */ 90 public void setIndexed(int index, int indexed) { 91 this.indexed[index] = indexed; 92 } 93 94 /*** Setter for property indexed. 95 * @param indexed New value of property indexed. 96 */ 97 public void setIndexed(int[] indexed) { 98 this.indexed = indexed; 99 } 100 101 102 103 }

This page was automatically generated by Maven