Skip to content
Snippets Groups Projects
Commit 92b05be3 authored by Lange, Dr. Herbert's avatar Lange, Dr. Herbert
Browse files

include parameters in list of functions

parent 286795c5
Branches
No related tags found
1 merge request!6add feature to load criteria file from resource and place all criteria files...
......@@ -1058,6 +1058,7 @@ public class CorpusMagician {
String desc;
String hasfix;
StringBuilder usable ;
String params;
for (CorpusFunction cf : getAllExistingCFsAsCFs()) {
desc = cf.getFunction() + ": " + cf.getDescription();
usable = new StringBuilder("\nThe function can be used on:\n");
......@@ -1065,7 +1066,16 @@ public class CorpusMagician {
usable.append(cl.getSimpleName() + " ");
}
hasfix = "\nThe function has a fixing option: " + cf.getCanFix().toString();
footerverbose.append(desc + hasfix + usable + "\n\n");
if (cf.getParameters().isEmpty()) {
params = "";
}
else {
params =
"\nThe function accepts the following parameters:\n" + cf.getParameters().keySet()
.stream().map((k) -> k + ": " + cf.getParameters().get(k))
.collect(Collectors.joining("\n"));
}
footerverbose.append(desc + hasfix + usable + params + "\n\n");
}
footerverbose.append("\n\nPlease report issues at https://lab.multilingua.uni-hamburg" +
".de/redmine/projects/corpus-services/issues");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment