public void addChild(Node child){
  childrenList.add(child);
  children.put(child.getClassName(),child);
  child.setParent(this);
}

public void addChild ( Node child ) { childrenList . add ( child ) ; children . put ( child . getClassName ( ) , child ) ; child . setParent ( this ) ; }
adds a child node .
