reportNwfAttr("Trying to write attribute '"+localName+"' twice");
protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { // note: mostly copied from the other writeAttribute() method.. if (!mStartElementOpen && mCheckStructure) { reportNwfStructure(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // doh. Not good, need to construct non-transient value... if (mAttrNames == null) { mAttrNames = new TreeSet(); } if (!mAttrNames.add(localName)) { reportNwfAttr("Trying to write attribute '"+localName+"' twice"); } } try { if (mValidator == null) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(null, localName, null, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throwFromIOE(ioe); } }
Object old = mAttrNames.put(localName, value); if (old != null) { reportNwfAttr("Trying to write attribute '"+localName+"' twice (first value '"+old+"'; second '"+value+"').");
reportNwfAttr("Trying to write attribute '"+localName+"' twice");
Object old = mAttrNames.put(localName, value); if (old != null) { reportNwfAttr("Trying to write attribute '"+localName+"' twice (first value '"+old+"'; second '"+value+"').");
reportNwfAttr("Trying to write attribute '"+localName+"' twice");
Object old = mAttrNames.put(localName, value); if (old != null) { reportNwfAttr("Trying to write attribute '"+localName+"' twice (first value '"+old+"'; second '"+value+"').");
protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { // note: mostly copied from the other writeAttribute() method.. if (!mStartElementOpen && mCheckStructure) { reportNwfStructure(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // doh. Not good, need to construct non-transient value... if (mAttrNames == null) { mAttrNames = new TreeSet(); } if (!mAttrNames.add(localName)) { reportNwfAttr("Trying to write attribute '"+localName+"' twice"); } } try { if (mValidator == null) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(null, localName, null, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throwFromIOE(ioe); } }
reportNwfAttr("Trying to write attribute '"+localName+"' twice");
reportNwfAttr("Trying to write attribute '"+localName+"' twice");
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { // note: mostly copied from the other writeAttribute() method.. if (!mStartElementOpen && mCheckStructure) { reportNwfStructure(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // doh. Not good, need to construct non-transient value... if (mAttrNames == null) { mAttrNames = new TreeSet<String>(); } if (!mAttrNames.add(localName)) { reportNwfAttr("Trying to write attribute '"+localName+"' twice"); } } try { if (mValidator == null) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(null, localName, null, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throwFromIOE(ioe); } }
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { // note: mostly copied from the other writeAttribute() method.. if (!mStartElementOpen && mCheckStructure) { reportNwfStructure(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // doh. Not good, need to construct non-transient value... if (mAttrNames == null) { mAttrNames = new TreeSet<String>(); } if (!mAttrNames.add(localName)) { reportNwfAttr("Trying to write attribute '"+localName+"' twice"); } } try { if (mValidator == null) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(null, localName, null, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throwFromIOE(ioe); } }
@Override protected void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException { // note: mostly copied from the other writeAttribute() method.. if (!mStartElementOpen && mCheckStructure) { reportNwfStructure(ErrorConsts.WERR_ATTR_NO_ELEM); } if (mCheckAttrs) { // doh. Not good, need to construct non-transient value... if (mAttrNames == null) { mAttrNames = new TreeSet<String>(); } if (!mAttrNames.add(localName)) { reportNwfAttr("Trying to write attribute '"+localName+"' twice"); } } try { if (mValidator == null) { mWriter.writeTypedAttribute(localName, enc); } else { mWriter.writeTypedAttribute(null, localName, null, enc, mValidator, getCopyBuffer()); } } catch (IOException ioe) { throwFromIOE(ioe); } }