1 16 package org.apache.commons.jxpath; 17 18 24 public class NestedTestBean { 25 private String name = "Name 0"; 26 private int integer = 1; 27 28 public NestedTestBean() { 29 } 30 31 public NestedTestBean(String name) { 32 this.name = name; 33 } 34 35 public void setName(String name) { 36 this.name = name; 37 } 38 39 42 public boolean isBoolean() { 43 return false; 44 } 45 46 49 public int getInt() { 50 return integer; 51 } 52 53 public void setInt(int value) { 54 this.integer = value; 55 } 56 57 60 public String getName() { 61 return name; 62 } 63 64 private String [] strings = 65 new String [] { "String 1", "String 2", "String 3" }; 66 67 public String [] getStrings() { 68 return strings; 69 } 70 71 public void setStrings(String [] array) { 72 strings = array; 73 } 74 75 public String toString() { 76 return "Nested: " + name; 77 } 78 } | Popular Tags |