protected void dump(int depth) { String indent = ""; for (int count = 0; count < depth; count++) { indent += " "; } if (select != null) { logger.trace(indent + "option " + getName() + " select=" + select); } else { logger.trace(indent + "option " + getName()); if (getBinding().size() == 0) { if (XProcConstants.p_option.equals(node.getNodeName())) { // System.err.println(indent + " no binding allowed"); } else { logger.trace(indent + " no binding"); } } } for (Binding binding : getBinding()) { binding.dump(depth+2); } } }
protected void dump(int depth) { String indent = ""; for (int count = 0; count < depth; count++) { indent += " "; } if (select != null) { logger.trace(indent + "option " + getName() + " select=" + select); } else { logger.trace(indent + "option " + getName()); if (getBinding().size() == 0) { if (XProcConstants.p_option.equals(node.getNodeName())) { // System.err.println(indent + " no binding allowed"); } else { logger.trace(indent + " no binding"); } } } for (Binding binding : getBinding()) { binding.dump(depth+2); } } }
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 (Binding binding : option.getBinding()) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) { PipeNameBinding pipe = (PipeNameBinding) binding;
for (Binding binding : option.getBinding()) { if (binding.getBindingType() == Binding.PIPE_NAME_BINDING) { PipeNameBinding pipe = (PipeNameBinding) binding;