/** * Adds the given attribute to be included in the next element. * * @param uri namespace URI of the attribute * @param local local name of the attribute * @param value attribute value * @throws RepositoryException if a repository error occurs */ protected void addAttribute(String uri, String local, String value) throws RepositoryException { attributes.addAttribute( uri, local, getXMLName(uri, local), "CDATA", value); }
/** * Adds the given attribute to be included in the next element. * * @param uri namespace URI of the attribute * @param local local name of the attribute * @param value attribute value * @throws RepositoryException if a repository error occurs */ protected void addAttribute(String uri, String local, String value) throws RepositoryException { attributes.addAttribute( uri, local, getXMLName(uri, local), "CDATA", value); }
/** * Adds the given attribute to be included in the next element. * * @param uri namespace URI of the attribute * @param local local name of the attribute * @param value attribute value * @throws RepositoryException if a repository error occurs */ protected void addAttribute(String uri, String local, String value) throws RepositoryException { attributes.addAttribute( uri, local, getXMLName(uri, local), "CDATA", value); }
/** * Emits the end element event for an element with the given name. * The namespace stack and mappings are automatically updated. * * @param uri namespace URI or the element * @param local local name of the element * @throws RepositoryException if a repository error occurs * @throws SAXException if a SAX error occurs */ protected void endElement(String uri, String local) throws SAXException, RepositoryException { stack.removeFirst(); handler.endElement(uri, local, getXMLName(uri, local)); Map namespaces = (Map) stack.getFirst(); Iterator iterator = namespaces.values().iterator(); while (iterator.hasNext()) { handler.endPrefixMapping((String) iterator.next()); } namespaces.clear(); }
/** * Emits the end element event for an element with the given name. * The namespace stack and mappings are automatically updated. * * @param uri namespace URI or the element * @param local local name of the element * @throws RepositoryException if a repository error occurs * @throws SAXException if a SAX error occurs */ protected void endElement(String uri, String local) throws SAXException, RepositoryException { stack.removeFirst(); handler.endElement(uri, local, getXMLName(uri, local)); Map namespaces = (Map) stack.getFirst(); Iterator iterator = namespaces.values().iterator(); while (iterator.hasNext()) { handler.endPrefixMapping((String) iterator.next()); } namespaces.clear(); }
/** * Emits the end element event for an element with the given name. * The namespace stack and mappings are automatically updated. * * @param uri namespace URI or the element * @param local local name of the element * @throws RepositoryException if a repository error occurs * @throws SAXException if a SAX error occurs */ protected void endElement(String uri, String local) throws SAXException, RepositoryException { stack.removeFirst(); handler.endElement(uri, local, getXMLName(uri, local)); Map namespaces = (Map) stack.getFirst(); Iterator iterator = namespaces.values().iterator(); while (iterator.hasNext()) { handler.endPrefixMapping((String) iterator.next()); } namespaces.clear(); }
String name = getXMLName(uri, local);
String name = getXMLName(uri, local);
String name = getXMLName(uri, local);