public void endElement(String uri, String localName, String tagName) throws SAXException { log.debug( "parseDocument - endElement(" + tagName + ")=" + (System.currentTimeMillis() - parsingStart) + " ms."); if (tagName.equals("parameter")) { param.add(tempParam); } else if (tagName.equals("parameterDescription")) { tempParam.setDescription(tempVal); } else if (tagName.equals("defaultValueExpression")) { tempParam.setDefaultValue(tempVal); } }
// ContentHandler public void startElement(String uri, String localName, String tagName, Attributes attributes) throws SAXException { log.debug( "parseDocument - startElement(" + tagName + ")=" + (System.currentTimeMillis() - parsingStart) + " ms."); tempVal = ""; if (tagName.equals("parameter")) { tempParam = new ParameterReport(); tempParam.setName(attributes.getValue("name")); } else if ((tagName.equals("queryString")) || (tagName.equals("background"))) { throw new FinalizeParsingException("Finalize parsing jrxml"); } }