code: public void setValue(String value) {
  		contents = new ArrayList();
  		contents.add(value);
  		if (value.trim().length() > 0) {
  			containsSingleString = true;
  		}
  	}
docs: Replaces the contents of this node with a single text
  
  @param value