@Override protected void onEndElement(String uri, String localName, String qName) throws SAXException { if ("Include".equals(localName)) { m_builder.addInclude(finishReadingText()); } else if ("ReturnLine".equals(localName)) { m_builder.addReturnLine(finishReadingText()); } else if (isHandlingOuterElement()) { m_model.accept(m_builder); } }
/** * Handle the outer element. Set up the builder based on attributes. * * @param attributes */ private void onStart(Attributes attributes) throws SAXException { String processor = attributes.getValue("processor"); if (processor != null) m_builder.setProcessor(processor); String outputBaseName = attributes.getValue("outputBaseName"); if (outputBaseName != null) m_builder.setFileBaseName(outputBaseName); boolean largeModel = getBoolean(attributes, "largeRomModel", false); m_builder.setLargeRomModel(largeModel); }