private void xmlReport(Option option) { String type = option.getType(); boolean req = option.getRequired(); String select = option.getSelect(); pr.print(" <option name='" + option.getName().getClarkName() + "' required='" + req + "'"); if (type != null) { pr.print(" type='" + type + '"'); } if (select != null) { pr.print(" select=\"" + select.replaceAll("\"",""") + "\""); } pr.println("/>"); }
private void xmlReport(Option option) { String type = option.getType(); boolean req = option.getRequired(); String select = option.getSelect(); pr.print(" <option name='" + option.getName().getClarkName() + "' required='" + req + "'"); if (type != null) { pr.print(" type='" + type + '"'); } if (select != null) { pr.print(" select=\"" + select.replaceAll("\"",""") + "\""); } pr.println("/>"); }
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 } } }
String typeName = optionDecl.getType(); XdmNode declNode = optionDecl.getNode(); if (typeName != null && declNode != null) {
String typeName = optionDecl.getType(); XdmNode declNode = optionDecl.getNode(); if (typeName != null && declNode != null) {