2 * Svjatoslav Commons - shared library of common functionality.
3 * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 3 of the GNU Lesser General Public License
7 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.commons.commandline.parameterparser.parameter;
12 import eu.svjatoslav.commons.commandline.parameterparser.ArgumentCount;
13 import eu.svjatoslav.commons.commandline.parameterparser.Parameter;
15 public class NullParameter extends Parameter {
17 public NullParameter(final String description) {
18 super(description, ArgumentCount.NONE);
22 public NullParameter addAliases(final String... aliasArray) {
23 super.addAliasesProtected(aliasArray);
28 public java.lang.String describeFormat() {
33 public Boolean getValue() {
34 return isParameterSpecified();
38 public NullParameter setMandatory() {
39 setMandatoryProtected();
44 public boolean validate(final java.lang.String value) {