/// <summary> /// Given an array of the same attributes used to build a tree containing the current node, list the node's information. As a note, the /// attributes don't need to be ordered. /// </summary> /// <param name="attributes"></param> /// <returns></returns> public String WriteToString(DAttribute[] attributes) { String output = ""; int depth = this.depth(); for (int i = 0; i < depth; i++) { output += "\t"; } //find the attribute by its ID and print out the relevant information. output += DAttribute.findByID(attributes, this.AttributeID).Name + " " + depth + "\t"; if (Children == null) { output += "FinalLabel == " + attributes[AttributeID].GetVariants()[Value]; } output += "\n"; return(output); }