protected void augmentOptions() { Step decl = declaration; if (decl == null) { throw new UnsupportedOperationException("Unexpected step type: " + getType()); } Hashtable<QName,Option> declOptions = new Hashtable<QName,Option> (); for (Option option : decl.options()) { declOptions.put(option.getName(), option); } // Add any options that have default values... for (QName oname : declOptions.keySet()) { Option doption = declOptions.get(oname); Option option = getOption(oname); if (option == null) { if (doption.getSelect() != null || doption.getBinding().size() != 0) { addOption(doption); } } else { option.setType(doption.getType(), doption.getNode()); // copy the type over } } }
protected void augmentOptions() { Step decl = declaration; if (decl == null) { throw new UnsupportedOperationException("Unexpected step type: " + getType()); } Hashtable<QName,Option> declOptions = new Hashtable<QName,Option> (); for (Option option : decl.options()) { declOptions.put(option.getName(), option); } // Add any options that have default values... for (QName oname : declOptions.keySet()) { Option doption = declOptions.get(oname); Option option = getOption(oname); if (option == null) { if (doption.getSelect() != null || doption.getBinding().size() != 0) { addOption(doption); } } else { option.setType(doption.getType(), doption.getNode()); // copy the type over } } }
for (Option option : options()) { for (Binding binding : option.bindings) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) {
for (Option option : options()) { for (Binding binding : option.bindings) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) {
private void xmlReport(Step step) { pr.print("<step xml:base='" + step.getNode().getBaseURI() + "'"); pr.print(" type='" + step.getType().getClarkName() + "'"); if (step.getDeclaredType() != null) { pr.print(" declared-type='" + step.getDeclaredType().getClarkName() + "'"); } pr.print(" name='" + step.getName() + "'"); pr.println(">"); for (Input input : step.inputs()) { xmlReport(input); } for (Output output : step.outputs()) { xmlReport(output); } for (Parameter param : step.parameters()) { xmlReport(param); } for (Option option : step.options()) { xmlReport(option); } for (Variable var : step.getVariables()) { xmlReport(var); } for (Step substep : step.subpipeline()) { xmlReport(substep); } pr.println("</step>"); }
private void xmlReport(Step step) { pr.print("<step xml:base='" + step.getNode().getBaseURI() + "'"); pr.print(" type='" + step.getType().getClarkName() + "'"); if (step.getDeclaredType() != null) { pr.print(" declared-type='" + step.getDeclaredType().getClarkName() + "'"); } pr.print(" name='" + step.getName() + "'"); pr.println(">"); for (Input input : step.inputs()) { xmlReport(input); } for (Output output : step.outputs()) { xmlReport(output); } for (Parameter param : step.parameters()) { xmlReport(param); } for (Option option : step.options()) { xmlReport(option); } for (Variable var : step.getVariables()) { xmlReport(var); } for (Step substep : step.subpipeline()) { xmlReport(substep); } pr.println("</step>"); }
for (Option option: options()) {
for (Option option: options()) {