Search in sources :

Example 1 with WriteAltLabel

use of mom.trd.opentheso.core.exports.altlabel.WriteAltLabel in project opentheso by miledrousset.

the class ExportThesaurus method exportAltLabel.

public StringBuilder exportAltLabel(HikariDataSource ds, String idTheso, String idLang) {
    GroupHelper groupHelper = new GroupHelper();
    WriteAltLabel writeAltLabel = new WriteAltLabel();
    String GroupLabel;
    // getAllBottomGroup(ds, idTheso);
    ArrayList<String> GroupLists = groupHelper.getListIdOfGroup(ds, idTheso);
    if (GroupLists == null)
        return null;
    if (GroupLists.isEmpty())
        return new StringBuilder("");
    for (String GroupList : GroupLists) {
        GroupLabel = groupHelper.getLexicalValueOfGroup(ds, GroupList, idTheso, idLang);
        writeAltLabel.setGroup(GroupList, GroupLabel);
        writeAltLabel.setHeader();
        writeAltLabel.AddAltLabelByGroup(ds, idTheso, GroupList, idLang);
    }
    return writeAltLabel.getAllAltLabels();
}
Also used : WriteAltLabel(mom.trd.opentheso.core.exports.altlabel.WriteAltLabel) GroupHelper(mom.trd.opentheso.bdd.helper.GroupHelper)

Aggregations

GroupHelper (mom.trd.opentheso.bdd.helper.GroupHelper)1 WriteAltLabel (mom.trd.opentheso.core.exports.altlabel.WriteAltLabel)1