2 * Svjatoslav Commons - shared library of common functionality. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
5 package eu.svjatoslav.commons.cli_helper.parameter_parser.parameter;
8 * This enum is used to define if resource denoted by particular option parameter shall exist or not.
10 * This allows to specify for example if directory shall exist or not.
12 public enum ExistenceType {
15 * Resource shall exist.
17 MUST_EXIST("existing"),
20 * Resource shall not exist.
22 MUST_NOT_EXIST("not existing"),
25 * Resource existence does not matter.
30 * Human readable description of existence type.
32 public final String description;
34 ExistenceType(final String description) {
35 this.description = description;