public void addAttribute(String ns, String localName, String prefix, String value, LocatorImpl loc) throws BuildException { a.attributes.put(new QName(ns,localName,prefix), new DAnnotation.Attribute(ns,localName,prefix,value,loc)); }
protected void on(DAnnotation ann) { if (ann == DAnnotation.EMPTY) return; for (DAnnotation.Attribute attr : ann.getAttributes().values()) { attr(attr.getPrefix(), attr.getNs(), attr.getLocalName(), attr.getValue()); } for (Element elem : ann.getChildren()) { try { newLine(); indent(); print(elem); } catch (XMLStreamException e) { throw new XMLWriterException(e); } } }
protected void on(DAnnotation ann) { if (ann == DAnnotation.EMPTY) return; for (DAnnotation.Attribute attr : ann.getAttributes().values()) { attr(attr.getPrefix(), attr.getNs(), attr.getLocalName(), attr.getValue()); } for (Element elem : ann.getChildren()) { try { newLine(); indent(); print(elem); } catch (XMLStreamException e) { throw new XMLWriterException(e); } } }
public void addAttribute(String ns, String localName, String prefix, String value, LocatorImpl loc) throws BuildException { a.attributes.put(new QName(ns,localName,prefix), new DAnnotation.Attribute(ns,localName,prefix,value,loc)); }