1 17 18 package org.apache.commons.digester; 19 20 public class AlphaBean implements Nameable { 21 private String name = "ALPHA"; 22 23 private Nameable child; 24 private Nameable parent; 25 26 public AlphaBean() {} 27 28 public AlphaBean(String name) { 29 setName(name); 30 } 31 32 public String getName() { 33 return name; 34 } 35 36 public void setName(String name) { 37 this.name = name; 38 } 39 40 public void setParent(Nameable parent) { 41 this.parent = parent; 42 } 43 44 public Nameable getParent() { 45 return parent; 46 } 47 48 public void setChild(Nameable child) { 49 this.child = child; 50 } 51 52 public Nameable getChild() { 53 return child; 54 } 55 56 public String toString() 57 { 58 return "[AlphaBean] name=" + name + " child=" + child; 59 } 60 } 61 | Popular Tags |