1 22 package org.jboss.deployment.spi.beans; 23 24 import java.util.ArrayList ; 25 26 30 public class ConfigBeanXPaths 31 { 32 private ArrayList children; 33 private String relativePath; 34 private ConfigBeanXPaths parent; 35 36 public ConfigBeanXPaths(String relativePath, ConfigBeanXPaths parent) 37 { 38 children = new ArrayList (); 39 this.relativePath = relativePath; 40 this.parent = parent; 41 if (parent != null) 42 parent.addChild(this); 43 } 44 45 public ConfigBeanXPaths getParent() 46 { 47 return parent; 48 } 49 50 public void setParent(ConfigBeanXPaths parent) 51 { 52 this.parent = parent; 53 parent.addChild(this); 54 } 55 56 public String getPath() 57 { 58 return relativePath; 59 } 60 61 public ArrayList getChildren() 62 { 63 return children; 64 } 65 66 public void addChild(ConfigBeanXPaths path) 67 { 68 children.add(path); 69 } 70 } 71 | Popular Tags |