*/
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("existing"),
+
+ /**
+ * Resource shall not exist.
+ */
+ MUST_NOT_EXIST("not existing"),
+
+ /**
+ * Resource existence does not matter.
+ */
+ DOES_NOT_MATTER("");
+ /**
+ * Human readable description of existence type.
+ */
public final String description;
ExistenceType(final String description) {