use of org.apache.uima.resource.metadata.ConfigurationParameterSettings in project dkpro-tc by dkpro.
the class DiscriminableNameConverter method getCollectionReaderDescription.
public static String getCollectionReaderDescription(CollectionReaderDescription crd) {
ResourceMetaData metaData = crd.getMetaData();
ConfigurationParameterSettings settings = metaData.getConfigurationParameterSettings();
NameValuePair[] params = settings.getParameterSettings();
String implementationName = crd.getImplementationName();
List<String> entries = new ArrayList<>();
entries.add(implementationName);
entries = addParameters(entries, params);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < entries.size(); i++) {
sb.append(entries.get(i));
if (i + 1 < entries.size()) {
sb.append(", ");
}
}
String description = "[" + sb.toString() + "]";
return description;
}
Aggregations