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
ConstructorDescriptionDefaultExtraArgument
(String name, boolean required) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the argument name.boolean
Get if the argument is required.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gov.nist.secauto.metaschema.cli.processor.command.ExtraArgument
getNumber
-
Constructor Details
-
DefaultExtraArgument
Construct a new instance.- Parameters:
name
- the argument namerequired
-true
if the argument is required, orfalse
otherwise
-
-
Method Details
-
getName
Description copied from interface:ExtraArgument
Get the argument name.- Specified by:
getName
in interfaceExtraArgument
- Returns:
- the name
-
isRequired
Description copied from interface:ExtraArgument
Get if the argument is required.- Specified by:
isRequired
in interfaceExtraArgument
- Returns:
true
if the argument is required, orfalse
otherwise
-