Search in sources :

Example 1 with ResultType

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;
}
Also used : ResultType(org.apache.nifi.toolkit.cli.api.ResultType)

Aggregations

ResultType (org.apache.nifi.toolkit.cli.api.ResultType)1