@Override public void registerWith(CmdGeneral cmdLine) { cmdLine.add(modelArgDecl, "--"+modelArgDecl.getKeyName()+"=filename", "Filename for a model") ; }
/** Add an argument to those to be accepted on the command line. * Argument order reflects ArgDecl. * @param hasValue True if the command takes a (string) value * @param argName Name * @return The CommandLine processor object */ public CmdLineArgs add(boolean hasValue, String argName) { return add(new ArgDecl(hasValue, argName)) ; }
public boolean matches(ArgDecl decl) { return decl.getNames().contains(name) ; }
ArgDecl assemblerDescDecl = new ArgDecl(ArgDecl.HasValue, "desc", "dataset") ; jettyServerConfig.port = Integer.parseInt(portStr) ; } catch (NumberFormatException ex) { throw new CmdException(argPort.getKeyName() + " : bad port number: " + portStr) ; throw new CmdException(argGZip.getNames().get(0) + ": Not understood: " + getValue(argGZip)) ; jettyServerConfig.enableCompression = super.hasValueOfTrue(argGZip) ;
argStr = ArgDecl.canonicalForm(argStr) ; if ( !argMap.containsKey(argStr) ) { handleUnrecognizedArg(argStr) ; if ( argDecl.takesValue() ) { String val = getArg(i + 1) ; String x = argDecl.getKeyName() ; addArg(x, val) ; nextArgProcessed = true ;
public boolean matches(String arg) { arg = canonicalForm(arg) ; return names.contains(arg) ; }
public ModTDBAssembler() { super() ; ModAssembler.assemblerDescDecl.addName("tdb") ; }
ArgDecl assemblerDescDecl = new ArgDecl(ArgDecl.HasValue, "desc", "dataset") ; jettyServerConfig.port = Integer.parseInt(portStr) ; } catch (NumberFormatException ex) { throw new CmdException(argPort.getKeyName() + " : bad port number: " + portStr) ; throw new CmdException(argGZip.getNames().get(0) + ": Not understood: " + getValue(argGZip)) ; jettyServerConfig.enableCompression = super.hasValueOfTrue(argGZip) ;
argStr = ArgDecl.canonicalForm(argStr) ; if ( !argMap.containsKey(argStr) ) { handleUnrecognizedArg(argStr) ; if ( argDecl.takesValue() ) { String val = getArg(i + 1) ; String x = argDecl.getKeyName() ; addArg(x, val) ; nextArgProcessed = true ;
/** Get the argument associated with the argument name. * Actually returns the LAST one seen * @param argName Argument name * @return Last argument that matched. */ public Arg getArg(String argName) { argName = ArgDecl.canonicalForm(argName) ; return args.get(argName) ; }
public ModTDBAssembler() { super() ; ModAssembler.assemblerDescDecl.addName("tdb") ; }
@Override public void registerWith(CmdGeneral cmdLine) { cmdLine.add(modelArgDecl, "--"+modelArgDecl.getKeyName()+"=filename", "Filename for a model") ; }
fusekiConfigFile = getValue(argFusekiConfig) ; ArgDecl assemblerDescDecl = new ArgDecl(ArgDecl.HasValue, "desc", "dataset") ; if ( contains(argMem) ) x++ ; if ( contains(argFile) ) x++ ; } catch (NumberFormatException ex) throw new CmdException(argPort.getKeyName()+" : bad port number: "+portStr) ; } catch (NumberFormatException ex) throw new CmdException(argMgtPort.getKeyName()+" : bad port number: "+mgtPortStr) ; throw new CmdException(argGZip.getNames().get(0)+": Not understood: "+getValue(argGZip)) ; enableCompression = super.hasValueOfTrue(argGZip) ;
/** Add an argument to those to be accepted on the command line. * @param argName Name * @param hasValue True if the command takes a (string) value * @return The CommandLine processor object */ public CmdLineArgs add(String argName, boolean hasValue) { return add(new ArgDecl(hasValue, argName)) ; }
public boolean matches(ArgDecl decl) { return decl.getNames().contains(name) ; }
/** Get the argument associated with the argument name. * Actually returns the LAST one seen * @param argName Argument name * @return Last argument that matched. */ public Arg getArg(String argName) { argName = ArgDecl.canonicalForm(argName) ; return args.get(argName) ; }
public ModTDBAssembler() { super() ; ModAssembler.assemblerDescDecl.addName("tdb") ; }