src/org/ohmage/request/observer/StreamReadRequest.java
private List<String> toList() {
			if(isLeaf()) {
				throw new IllegalStateException(
					"This is a leaf node, which doesn't have a column list.");
			}
			
			List<String> result = new LinkedList<String>();
			for(T child : children.keySet()) {
				ColumnNode<T> childNode = children.get(child);
				
				if(childNode.isLeaf()) {
					result.add(child.toString());
				}
				else {
					List<String> subChildren = childNode.toList();
					for(String subChild : subChildren) {
						result.add(child.toString() + ":" + subChild);
					}
				}
			}
			return result;
		}
/**
		 * Creates a list of column nodes for each of this node's descendants.
		 * For example, if this node had one leaf child, "leaf", and another 
		 * child, "other", and "other" had one leaf child, "otherLeaf", the 
		 * result of this function would be a list with two nodes: "leaf" and 
		 * "other:otherLeaf".
		 * 
		 * @return The list of children and their children where the grand
		 * 		   children and beyond are prepended with the child's name.  
		 * 
		 * @throws IllegalStateException This is a leaf node which has no 
		 * 								 children.
		 */
Creates a list of column nodes for each of this node's descendants.

@return The list of children and their children where the grand
children and beyond are prepended with the child's name.

@throws IllegalStateException This is a leaf node which has no
children.
Creates a list of column nodes for each of this node ' s descendants . @return The list of children and their children where the grand children and beyond are prepended with the child ' s name . @throws IllegalStateException This is a leaf node which has no children .
private List<String> toList() {
			if(isLeaf()) {
				throw new IllegalStateException(
					"This is a leaf node, which doesn't have a column list.");
			}
			List<String> result = new LinkedList<String>();
			for(T child : children.keySet()) {
				ColumnNode<T> childNode = children.get(child);
				if(childNode.isLeaf()) {
					result.add(child.toString());
				}
				else {
					List<String> subChildren = childNode.toList();
					for(String subChild : subChildren) {
						result.add(child.toString() + ":" + subChild);
					}
				}
			}
			return result;
		}
private List < String > toList ( ) { if ( isLeaf ( ) ) { throw new IllegalStateException ( "This is a leaf node, which doesn't have a column list." ) ; } List < String > result = new LinkedList < String > ( ) ; for ( T child : children . keySet ( ) ) { ColumnNode < T > childNode = children . get ( child ) ; if ( childNode . isLeaf ( ) ) { result . add ( child . toString ( ) ) ; } else { List < String > subChildren = childNode . toList ( ) ; for ( String subChild : subChildren ) { result . add ( child . toString ( ) + ":" + subChild ) ; } } } return result ; }
Creates a list of column nodes for each of this node's descendants.
Creates a list of column nodes for each of this node ' s descendants .