Class ExecArgList.Builder
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.ExecArgList.Builder
-
- Enclosing class:
- ExecArgList
public static class ExecArgList.Builder extends java.lang.ObjectBuilder class
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecArgList.Builderarg(java.lang.String arg, boolean quoted, boolean featureQuotingBackwardCompatible)Add a string argExecArgList.Builderargs(java.lang.String[] args, boolean quoted, boolean featureQuotingBackwardCompatible)Add a list of argsExecArgList.Builderargs(java.lang.String[] args, java.util.function.Predicate quoted, boolean featureQuotingBackwardCompatible)Add a list of argsExecArgList.Builderargs(java.util.List<java.lang.String> args, boolean quoted, boolean featureQuotingBackwardCompatible)Add a list of argsExecArgList.Builderargs(java.util.List<java.lang.String> args, java.util.function.Predicate quoted, boolean featureQuotingBackwardCompatible)Add a list of argsExecArgListbuild()ExecArgList.Builderparent()Return the parent builder from a sublist builder.ExecArgList.BuildersubList(boolean quoted)Start a buidler for a sublist of args
-
-
-
Method Detail
-
arg
public ExecArgList.Builder arg(java.lang.String arg, boolean quoted, boolean featureQuotingBackwardCompatible)
Add a string arg- Parameters:
featureQuotingBackwardCompatible- indicates whether to use old quoting behavior < 3.4.1arg- argumentquoted- true if it needs to be quoted- Returns:
- builder
-
args
public ExecArgList.Builder args(java.util.List<java.lang.String> args, boolean quoted, boolean featureQuotingBackwardCompatible)
Add a list of args- Parameters:
args- argsquoted- true if all should be quotedfeatureQuotingBackwardCompatible- indicates whether to use old quoting behavior < 3.4.1- Returns:
- builder
-
args
public ExecArgList.Builder args(java.util.List<java.lang.String> args, java.util.function.Predicate quoted, boolean featureQuotingBackwardCompatible)
Add a list of args- Parameters:
args- argsquoted- true if all should be quotedfeatureQuotingBackwardCompatible- indicates whether to use old quoting behavior < 3.4.1- Returns:
- builder
-
args
public ExecArgList.Builder args(java.lang.String[] args, java.util.function.Predicate quoted, boolean featureQuotingBackwardCompatible)
Add a list of args- Parameters:
args- argsquoted- true if all should be quotedfeatureQuotingBackwardCompatible- indicates whether to use old quoting behavior < 3.4.1- Returns:
- builder
-
args
public ExecArgList.Builder args(java.lang.String[] args, boolean quoted, boolean featureQuotingBackwardCompatible)
Add a list of args- Parameters:
args- argsquoted- true if all should be quotedfeatureQuotingBackwardCompatible- indicates whether to use old quoting behavior < 3.4.1- Returns:
- builder
-
subList
public ExecArgList.Builder subList(boolean quoted)
Start a buidler for a sublist of args- Parameters:
quoted- true if the list should be quoted- Returns:
- a builder for a sublist
-
parent
public ExecArgList.Builder parent()
Return the parent builder from a sublist builder.- Returns:
- parent of this sublist
-
build
public ExecArgList build()
- Returns:
- Build the ExecArgList
-
-