/** * Create a DOM for this interaction. * Convert the database row or arguments into an XML DOM tree. * Handles arguments different as the XQuery and input can both have parameters. */ public Element createInputDOM(EISAccessor accessor) { // The input record can either be build from the interaction arguments, // or the modify row. if ((getInputRow() != null) && (!hasArguments())) { return super.createInputDOM(accessor); } XMLRecord parameterRow = createXMLRecord(getInputRootElementName()); for (int index = 0; index < getArgumentNames().size(); index++) { String parameterName = (String)getArgumentNames().get(index); Object parameter = getInputRow().get(parameterName); parameterRow.put(parameterName, parameter); } return (Element)parameterRow.getDOM(); }
/** * Create a DOM for this interaction. * Convert the database row or arguments into an XML DOM tree. * Handles arguments different as the XQuery and input can both have parameters. */ public Element createInputDOM(EISAccessor accessor) { // The input record can either be build from the interaction arguments, // or the modify row. if ((getInputRow() != null) && (!hasArguments())) { return super.createInputDOM(accessor); } XMLRecord parameterRow = createXMLRecord(getInputRootElementName()); for (int index = 0; index < getArgumentNames().size(); index++) { String parameterName = (String)getArgumentNames().get(index); Object parameter = getInputRow().get(parameterName); parameterRow.put(parameterName, parameter); } return (Element)parameterRow.getDOM(); }
/** * Create a DOM for this interaction. * Convert the database row or arguments into an XML DOM tree. * Handles arguments different as the XQuery and input can both have parameters. */ public Element createInputDOM(EISAccessor accessor) { // The input record can either be build from the interaction arguments, // or the modify row. if ((getInputRow() != null) && (!hasArguments())) { return super.createInputDOM(accessor); } XMLRecord parameterRow = createXMLRecord(getInputRootElementName()); for (int index = 0; index < getArgumentNames().size(); index++) { String parameterName = (String)getArgumentNames().get(index); Object parameter = getInputRow().get(parameterName); parameterRow.put(parameterName, parameter); } return (Element)parameterRow.getDOM(); }