public boolean isLeaf(Object nd){
  Node node=(Node)nd;
  return !node.hasChildNodes();
}

public boolean isLeaf ( Object nd ) { Node node = ( Node ) nd ; return ! node . hasChildNodes ( ) ; }
gets the leaf attribute of the domtreemodel object
