public String getHelp() { return getHelp(""); }
/** * Returns stream factory for the type of this tool for the <code>format</code>. * * @param format data format name * @return stream factory for the type of this tool for the format */ protected ObjectStreamFactory<T> getStreamFactory(String format) { ObjectStreamFactory<T> factory = StreamFactoryRegistry.getFactory(type, format); if (null != factory) { return factory; } else { throw new TerminateToolException(1, "Format " + format + " is not found.\n" + getHelp()); } }
0 < toolArguments.length && "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool<?>) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
/** * Validates arguments using parameters from <code>argProxyInterface</code> and the parameters of the * <code>format</code>. * * @param args arguments * @param argProxyInterface interface with parameter descriptions * @param format data format name * @param <A> A */ @SuppressWarnings({"unchecked"}) protected <A> void validateAllArgs(String[] args, Class<A> argProxyInterface, String format) { ObjectStreamFactory<T> factory = getStreamFactory(format); String errMessage = ArgumentParser.validateArgumentsLoudly(args, argProxyInterface, factory.<A>getParameters()); if (null != errMessage) { throw new TerminateToolException(1, errMessage + "\n" + getHelp(format)); } }
0 < toolArguments.length && "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
public String getHelp() { return getHelp(""); }
public String getHelp() { return getHelp(""); }
/** * Returns stream factory for the type of this tool for the <code>format</code>. * * @param format data format name * @return stream factory for the type of this tool for the format */ protected ObjectStreamFactory<T> getStreamFactory(String format) { ObjectStreamFactory<T> factory = StreamFactoryRegistry.getFactory(type, format); if (null != factory) { return factory; } else { throw new TerminateToolException(1, "Format " + format + " is not found.\n" + getHelp()); } }
/** * Returns stream factory for the type of this tool for the <code>format</code>. * * @param format data format name * @return stream factory for the type of this tool for the format */ protected ObjectStreamFactory<T> getStreamFactory(String format) { ObjectStreamFactory<T> factory = StreamFactoryRegistry.getFactory(type, format); if (null != factory) { return factory; } else { throw new TerminateToolException(1, "Format " + format + " is not found.\n" + getHelp()); } }
&& "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
&& "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
0 < toolArguments.length && "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool<?>) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
/** * Validates arguments using parameters from <code>argProxyInterface</code> and the parameters of the * <code>format</code>. * * @param args arguments * @param argProxyInterface interface with parameter descriptions * @param format data format name * @param <A> A */ @SuppressWarnings({"unchecked"}) protected <A> void validateAllArgs(String[] args, Class<A> argProxyInterface, String format) { ObjectStreamFactory<T> factory = getStreamFactory(format); String errMessage = ArgumentParser.validateArgumentsLoudly(args, argProxyInterface, factory.<A>getParameters()); if (null != errMessage) { throw new TerminateToolException(1, errMessage + "\n" + getHelp(format)); } }
&& "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
&& "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
0 < toolArguments.length && "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
&& "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
&& "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());
/** * Validates arguments using parameters from <code>argProxyInterface</code> and the parameters of the * <code>format</code>. * * @param args arguments * @param argProxyInterface interface with parameter descriptions * @param format data format name * @param <A> A */ @SuppressWarnings({"unchecked"}) protected <A> void validateAllArgs(String[] args, Class<A> argProxyInterface, String format) { ObjectStreamFactory<T> factory = getStreamFactory(format); String errMessage = ArgumentParser.validateArgumentsLoudly(args, argProxyInterface, factory.<A>getParameters()); if (null != errMessage) { throw new TerminateToolException(1, errMessage + "\n" + getHelp(format)); } }
|| 0 < toolArguments.length && "help".equals(toolArguments[0])) { if (tool instanceof TypedCmdLineTool) { System.out.println(((TypedCmdLineTool) tool).getHelp(formatName)); } else if (tool instanceof BasicCmdLineTool) { System.out.println(tool.getHelp());