本文整理了Java中org.apache.commons.cli.Option.getValueSeparator()
方法的一些代码示例,展示了Option.getValueSeparator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.getValueSeparator()
方法的具体详情如下:
包路径:org.apache.commons.cli.Option
类名称:Option
方法名:getValueSeparator
[英]Returns the value separator character.
[中]返回值分隔符字符。
代码示例来源:origin: apache/flink
return Stream.of(key + dynamicproperties.getValueSeparator() + value);
} else {
return Stream.empty();
代码示例来源:origin: commons-cli/commons-cli
char sep = getValueSeparator();
代码示例来源:origin: commons-cli/commons-cli
private static void checkOption(Option option, String opt, String description, String longOpt, int numArgs,
String argName, boolean required, boolean optionalArg,
char valueSeparator, Class<?> cls)
{
assertEquals(opt, option.getOpt());
assertEquals(description, option.getDescription());
assertEquals(longOpt, option.getLongOpt());
assertEquals(numArgs, option.getArgs());
assertEquals(argName, option.getArgName());
assertEquals(required, option.isRequired());
assertEquals(optionalArg, option.hasOptionalArg());
assertEquals(valueSeparator, option.getValueSeparator());
assertEquals(cls, option.getType());
}
代码示例来源:origin: cytoscape.corelibs/commons-cli-1-x-cytocape-custom
char sep = getValueSeparator();
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
char sep = getValueSeparator();
代码示例来源:origin: org.cytoscape/cy-commons-cli
char sep = getValueSeparator();
代码示例来源:origin: sdedit/sdedit
char sep = getValueSeparator();
代码示例来源:origin: io.snappydata/gemfirexd-tools
final Option option = (Option)optionObj;
if (option.hasValueSeparator()
&& option.getValueSeparator() != '='
&& (sepIdx = opt.indexOf(option.getValueSeparator())) >= 0) {
final String optKey = opt.substring(0, sepIdx);
if (optKey.equals(option.getOpt())
sepIdx = arg.indexOf(foundOption.getValueSeparator());
tokens.add(arg.substring(0, sepIdx)); // --foo
tokens.add(arg.substring(sepIdx + 1)); // value
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.cli
char sep = getValueSeparator();
代码示例来源:origin: org.apache.flink/flink-yarn_2.11
return Stream.of(key + dynamicproperties.getValueSeparator() + value);
} else {
return Stream.empty();
代码示例来源:origin: org.apache.flink/flink-yarn
return Stream.of(key + dynamicproperties.getValueSeparator() + value);
} else {
return Stream.empty();
代码示例来源:origin: io.snappydata/gemfirexd-tools
buff.append(option.getValueSeparator());
代码示例来源:origin: io.snappydata/gemfirexd-tools
optBuf.append(option.getValueSeparator());
代码示例来源:origin: girtel/Net2Plan
parameters = parseParameters(cmd.getOptionValue("tool-param"), R_OPTIONS.getOption("tool-param").getValueSeparator());
代码示例来源:origin: com.marklogic/mlcp
public CommandlineOption(Option opt)
throws IllegalArgumentException {
super(opt.getOpt(), opt.hasArg(), opt.getDescription());
this.setLongOpt(opt.getLongOpt());
this.setRequired(opt.isRequired());
this.setArgName(opt.getArgName());
this.setArgs(opt.getArgs());
this.setOptionalArg(opt.hasOptionalArg());
this.setType(opt.getType());
this.setValueSeparator(opt.getValueSeparator());
}
内容来源于网络,如有侵权,请联系作者删除!