class SurvexExporter extends SingleFileExporter {

    public String getContent(Survey survey) {

        StringBuilder builder = new StringBuilder();

        builder.append("*alias station - ..\n\n");

        List<GraphToListTranslator.SurveyListEntry> list =
                graphToListTranslator.toChronoListOfSurveyListEntries(survey);

        for (GraphToListTranslator.SurveyListEntry entry : list) {
            SurvexTherionUtil.formatEntry(builder, entry, COMMENT_CHAR);
            builder.append("\n");
        }

        return builder.toString();
    }

}