Class DefaultExtraArgument
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.command.impl.DefaultExtraArgument
- All Implemented Interfaces:
ExtraArgument
A default implementation of the
ExtraArgument interface that
represents a named command-line argument which can be marked as required or
optional.
This implementation is used by the command processor to handle additional arguments that are not covered by specific command options.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExtraArgument(String name, boolean required) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the argument name.booleanGet if the argument is required.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gov.nist.secauto.metaschema.cli.processor.command.ExtraArgument
getNumber
-
Constructor Details
-
DefaultExtraArgument
Construct a new instance.- Parameters:
name- the argument namerequired-trueif the argument is required, orfalseotherwise
-
-
Method Details
-
getName
Description copied from interface:ExtraArgumentGet the argument name.- Specified by:
getNamein interfaceExtraArgument- Returns:
- the name
-
isRequired
Description copied from interface:ExtraArgumentGet if the argument is required.- Specified by:
isRequiredin interfaceExtraArgument- Returns:
trueif the argument is required, orfalseotherwise
-