@Override protected void toJson(String aChoice, JSONStringer aStringer) throws JSONException { String description = Select2TextFeatureEditor.this.getModelObject().tagset .stream() .filter(t -> t.getName().equals(aChoice)) .findFirst() .map(t -> t.getDescription()).orElse(""); super.toJson(aChoice, aStringer); //aStringer.key("description").value(description); } });
@Override protected void toJson(String aChoice, JSONStringer aStringer) throws JSONException { String description = Select2TextFeatureEditor.this.getModelObject().tagset .stream() .filter(t -> t.getName().equals(aChoice)) .findFirst() .map(t -> t.getDescription()).orElse(""); super.toJson(aChoice, aStringer); //aStringer.key("description").value(description); } });
for (Tag tag : annotationSchemaService.listTags(tagSet)) { ExportedTag exportedTag = new ExportedTag(); exportedTag.setDescription(tag.getDescription()); exportedTag.setName(tag.getName()); exportedTags.add(exportedTag); bw.write(tagSet.getLanguage() + "\t" + " \n"); for (Tag tag : annotationSchemaService.listTags(tagSet)) { String tagDescription = tag.getDescription() == null ? "" : tag .getDescription(); bw.write(tag.getName() + "\t" + tagDescription.replace("\n", "\\n") + "\n");
for (Tag tag : annotationSchemaService.listTags(tagSet)) { ExportedTag exportedTag = new ExportedTag(); exportedTag.setDescription(tag.getDescription()); exportedTag.setName(tag.getName()); exportedTags.add(exportedTag); bw.write(tagSet.getLanguage() + "\t" + " \n"); for (Tag tag : annotationSchemaService.listTags(tagSet)) { String tagDescription = tag.getDescription() == null ? "" : tag .getDescription(); bw.write(tag.getName() + "\t" + tagDescription.replace("\n", "\\n") + "\n");
for (Tag tag : annotationService.listTags(tagSet)) { de.tudarmstadt.ukp.clarin.webanno.model.export.Tag exportedTag = new de.tudarmstadt.ukp.clarin.webanno.model.export.Tag(); exportedTag.setDescription(tag.getDescription()); exportedTag.setName(tag.getName()); exportedTags.add(exportedTag); bw.write(tagSet.getLanguage() + "\t" + " \n"); for (Tag tag : annotationService.listTags(tagSet)) { String tagDescription = tag.getDescription() == null ? "" : tag .getDescription(); bw.write(tag.getName() + "\t" + tagDescription.replace("\n", "\\n") + "\n");
@Override public void exportData(ProjectExportRequest aRequest, ExportedProject aExProject, File aStage) throws Exception { List<ExportedTagSet> extTagSets = new ArrayList<>(); for (TagSet tagSet : annotationService.listTagSets(aRequest.getProject())) { ExportedTagSet exTagSet = new ExportedTagSet(); exTagSet.setCreateTag(tagSet.isCreateTag()); exTagSet.setDescription(tagSet.getDescription()); exTagSet.setLanguage(tagSet.getLanguage()); exTagSet.setName(tagSet.getName()); List<ExportedTag> exTags = new ArrayList<>(); for (Tag tag : annotationService.listTags(tagSet)) { ExportedTag exTag = new ExportedTag(); exTag.setDescription(tag.getDescription()); exTag.setName(tag.getName()); exTags.add(exTag); } exTagSet.setTags(exTags); extTagSets.add(exTagSet); } aExProject.setTagSets(extTagSets); }
@Override public void exportData(ProjectExportRequest aRequest, ExportedProject aExProject, File aStage) throws Exception { List<ExportedTagSet> extTagSets = new ArrayList<>(); for (TagSet tagSet : annotationService.listTagSets(aRequest.getProject())) { ExportedTagSet exTagSet = new ExportedTagSet(); exTagSet.setCreateTag(tagSet.isCreateTag()); exTagSet.setDescription(tagSet.getDescription()); exTagSet.setLanguage(tagSet.getLanguage()); exTagSet.setName(tagSet.getName()); List<ExportedTag> exTags = new ArrayList<>(); for (Tag tag : annotationService.listTags(tagSet)) { ExportedTag exTag = new ExportedTag(); exTag.setDescription(tag.getDescription()); exTag.setName(tag.getName()); exTags.add(exTag); } exTagSet.setTags(exTags); extTagSets.add(exTagSet); } aExProject.setTagSets(extTagSets); }
for (Tag tag : annotationService.listTags(tagSet)) { de.tudarmstadt.ukp.clarin.webanno.model.export.Tag exTag = new de.tudarmstadt.ukp.clarin.webanno.model.export.Tag(); exTag.setDescription(tag.getDescription()); exTag.setName(tag.getName()); exTags.add(exTag);
for (Tag tag : aAnnotationService.listTags(tagSet)) { de.tudarmstadt.ukp.clarin.webanno.model.export.Tag exTag = new de.tudarmstadt.ukp.clarin.webanno.model.export.Tag(); exTag.setDescription(tag.getDescription()); exTag.setName(tag.getName()); exportedTags.add(exTag);
for (Tag tag : aAnnotationService.listTags(tagSet)) { ExportedTag exTag = new ExportedTag(); exTag.setDescription(tag.getDescription()); exTag.setName(tag.getName()); exportedTags.add(exTag);
for (Tag tag : aAnnotationService.listTags(tagSet)) { ExportedTag exTag = new ExportedTag(); exTag.setDescription(tag.getDescription()); exTag.setName(tag.getName()); exportedTags.add(exTag);
for (Tag tag : annotationService.listTags(tagSet)) { ExportedTag exTag = new ExportedTag(); exTag.setDescription(tag.getDescription()); exTag.setName(tag.getName()); exportedTags.add(exTag);
for (Tag tag : annotationService.listTags(tagSet)) { ExportedTag exTag = new ExportedTag(); exTag.setDescription(tag.getDescription()); exTag.setName(tag.getName()); exportedTags.add(exTag);