public boolean hasInfoOption() throws ToolException { commandDocument = getCommandDocument(); if (commandDocument == null) { return false; } return commandDocument.hasParameter("help") || commandDocument.hasParameter("version"); }
public boolean hasInfoOption() throws ToolException { commandDocument = getCommandDocument(); if (commandDocument == null) { return false; } return commandDocument.hasParameter("help") || commandDocument.hasParameter("version"); }
/** * get all parameters in a map * @param stringArrayKeys, contains keys, whose value should be string array */ protected Map<String, Object> getParametersMap(Set<String> stringArrayKeys) { Map<String, Object> map = new HashMap<>(); CommandDocument doc = getCommandDocument(); if (doc == null) { return map; } String[] keys = doc.getParameterNames(); if (keys == null) { return map; } for (int i = 0; i < keys.length; i++) { if (stringArrayKeys.contains(keys[i])) { map.put(keys[i], doc.getParameters(keys[i])); } else { map.put(keys[i], doc.getParameter(keys[i])); } } return map; }
/** * get all parameters in a map * @param stringArrayKeys, contains keys, whose value should be string array */ protected Map<String, Object> getParametersMap(Set<String> stringArrayKeys) { Map<String, Object> map = new HashMap<>(); CommandDocument doc = getCommandDocument(); if (doc == null) { return map; } String[] keys = doc.getParameterNames(); if (keys == null) { return map; } for (int i = 0; i < keys.length; i++) { if (stringArrayKeys.contains(keys[i])) { map.put(keys[i], doc.getParameters(keys[i])); } else { map.put(keys[i], doc.getParameter(keys[i])); } } return map; }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("xsdurl")) { errors.add(new ErrorVisitor.UserError("XSD URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("xsdurl")) { errors.add(new ErrorVisitor.UserError("XSD URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } }
public void checkParams(ErrorVisitor errors) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (!doc.hasParameter("wsdlurl")) { errors.add(new ErrorVisitor.UserError("WSDL/SCHEMA URL has to be specified")); } if (errors.getErrors().size() > 0) { Message msg = new Message("PARAMETER_MISSING", LOG); throw new ToolException(msg, new BadUsageException(getUsage(), errors)); } }
public void checkParams(ErrorVisitor errs) throws ToolException { super.checkParams(errs); CommandDocument doc = super.getCommandDocument();
public void checkParams(ErrorVisitor errs) throws ToolException { super.checkParams(errs); CommandDocument doc = super.getCommandDocument();
private void initialise(ProcessorEnvironment env) throws ToolException { CommandDocument doc = super.getCommandDocument(); if (env.optionSet(ToolConstants.CFG_BINDING)) { env.put(ToolConstants.CFG_BINDING, doc.getParameter("binding")); } if (env.optionSet(ToolConstants.CFG_PORTTYPE)) { env.put(ToolConstants.CFG_PORTTYPE, doc.getParameter("porttype")); } if (env.optionSet(ToolConstants.CFG_WSDLURL)) { String wsdlname = doc.getParameter("wsdlurl"); env.put(ToolConstants.CFG_WSDLURL, wsdlname); } if (env.optionSet(ToolConstants.CFG_NAMESPACE)) { env.put(ToolConstants.CFG_NAMESPACE, doc.getParameter("namespace")); } if (env.optionSet(ToolCorbaConstants.CFG_WSDLOUTPUTFILE)) { env.put(ToolCorbaConstants.CFG_WSDLOUTPUTFILE, doc.getParameter("wsdloutputfile")); } if (env.optionSet(ToolCorbaConstants.CFG_IDLOUTPUTFILE)) { env.put(ToolCorbaConstants.CFG_IDLOUTPUTFILE, doc.getParameter("idloutputfile")); } if (env.optionSet(ToolConstants.CFG_OUTPUTDIR)) { env.put(ToolConstants.CFG_OUTPUTDIR, doc.getParameter("outputdir")); } // need to add wrapped }