public String write( FileDefinition definitionFile, boolean writeComments ) {

		StringBuilder sb = new StringBuilder();
		for( Iterator<AbstractBlock> it = definitionFile.getBlocks().iterator(); it.hasNext(); ) {
			sb.append( write( it.next(), writeComments ));
			if( it.hasNext())
				sb.append( this.lineSeparator );
		}

		return sb.toString();
	}
public String write ( FileDefinition definitionFile , boolean writeComments ) { StringBuilder sb = new StringBuilder ( ) ; for ( Iterator < AbstractBlock > it = definitionFile . getBlocks ( ) . iterator ( ) ; it . hasNext ( ) ; ) { sb . append ( write ( it . next ( ) , writeComments ) ) ; if ( it . hasNext ( ) ) sb . append ( this . lineSeparator ) ; } return sb . toString ( ) ; }
@param definitionFile the relations file
@param writeComments true to write comments
@return a string (never null)