Class SessionCommandBuilder.CommandLineBuilderWithMandatoryParameters
- java.lang.Object
-
- com.e1c.g5.v8.dt.platform.standaloneserver.core.SessionCommandBuilder.CommandLineBuilderWithMandatoryParameters
-
- Direct Known Subclasses:
SessionCommandBuilder.CommandLineBuilderWithoutMandatoryParameters
,SessionCommandBuilder.TerminateBuilder
,SessionCommandBuilder.WithTargetSessionCommandLineBuilder
- Enclosing class:
- SessionCommandBuilder
public abstract static class SessionCommandBuilder.CommandLineBuilderWithMandatoryParameters extends Object
Represents builder that has mandatory parameters and so caller have use one of the sub-builders to actually obtain command line.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addOption(String option)
Adds an option to this builder.protected List<String>
collectArguments()
Collects arguments.protected List<String>
getInitialArguments()
Gets initial arguments.protected List<String>
getOptionsForThisArgument()
Gets options for added to this builder.protected abstract String
getThisArgument()
Gets name of the argument represented by this builder.
-
-
-
Method Detail
-
collectArguments
protected List<String> collectArguments()
Collects arguments.- Returns:
- A list of initial arguments, argument represented by this builder (if not
null
) and any registered options. Nevernull
.
-
getThisArgument
protected abstract String getThisArgument()
Gets name of the argument represented by this builder.- Returns:
- Name of the argument or
null
if no argument is to be added by the builder itself.
-
addOption
protected void addOption(String option)
Adds an option to this builder.- Parameters:
option
- An option to be added to the argument represented by this builder. Must not benull
.
-
getInitialArguments
protected List<String> getInitialArguments()
Gets initial arguments.- Returns:
- List of initial arguments that come before arguments added by this builder.
Never
null
.
-
-