*/
package eu.svjatoslav.commons.cli_helper.parameter_parser.parameter;
+/**
+ * This enum is used to define if resource denoted by particular option parameter shall exist or not.
+ * <p>
+ * This allows to specify for example if directory shall exist or not.
+ */
public enum ExistenceType {
- MUST_EXIST("existing"), MUST_NOT_EXIST("not existing"), DOES_NOT_MATTER("");
+ /**
+ * Resource shall exist.
+ */
+ MUST_EXIST,
- public final String description;
+ /**
+ * Resource shall not exist.
+ */
+ MUST_NOT_EXIST,
- ExistenceType(final String description) {
- this.description = description;
- }
+ /**
+ * Resource existence does not matter.
+ */
+ DOES_NOT_MATTER;
}