Added special commandline argument type to support multiple strings.
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / commandline / parameterparser / parameter / NullParameter.java
index 7e55d57..276ecdb 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Svjatoslav Commons - shared library of common functionality.
  * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 3 of the GNU Lesser General Public License
  * or later as published by the Free Software Foundation.
@@ -20,7 +20,7 @@ public class NullParameter extends Parameter {
 
        @Override
        public NullParameter addAliases(final String... aliasArray) {
-               super.addAliases(aliasArray);
+               super.addAliasesProtected(aliasArray);
                return this;
        }
 
@@ -29,13 +29,14 @@ public class NullParameter extends Parameter {
                return "<none>";
        }
 
-       public boolean getValue() {
+       @Override
+       public Boolean getValue() {
                return isParameterSpecified();
        }
 
        @Override
        public NullParameter setMandatory() {
-               mandatory = true;
+               setMandatoryProtected();
                return this;
        }