use of org.apache.nifi.toolkit.cli.api.ResultType in project nifi by apache.
the class AbstractCommand method getResultType.
protected ResultType getResultType(final Properties properties) {
final ResultType resultType;
if (properties.containsKey(CommandOption.OUTPUT_TYPE.getLongName())) {
final String outputTypeValue = properties.getProperty(CommandOption.OUTPUT_TYPE.getLongName());
resultType = ResultType.valueOf(outputTypeValue.toUpperCase().trim());
} else {
resultType = ResultType.SIMPLE;
}
return resultType;
}
Aggregations