1 package org.jboss.cache.pojo.test; 2 3 import java.util.ArrayList ; 4 import java.util.List ; 5 6 @org.jboss.cache.pojo.annotation.Replicable 7 public class TestNode 8 { 9 private String rdn_; 10 11 private String fdn_; 12 13 private List childNodes_ = new ArrayList (); 14 15 private TestNode parentNode_; 16 17 public TestNode() 18 { 19 } 20 21 public void setNodeRDN(String rdn) 22 { 23 this.rdn_ = rdn; 24 } 25 26 public String getNodeRDN() 27 { 28 return this.rdn_; 29 } 30 31 public void setNodeFDN(String fdn) 32 { 33 this.fdn_ = fdn; 34 } 35 36 public String getNodeFDN() 37 { 38 return this.fdn_; 39 } 40 41 public void addChildNode(TestNode child) 42 { 43 childNodes_.add(child); 44 } 45 46 public List getChildren() 47 { 48 return childNodes_; 49 } 50 51 public void setParentNode(TestNode parent) 52 { 53 parentNode_ = parent; 54 } 55 56 public TestNode getParentNode() 57 { 58 return this.parentNode_; 59 } 60 61 public String toString() 62 { 63 return getNodeFDN(); 64 } 65 } 66 | Popular Tags |