@Override public boolean isAttributeSpecified(int index) { return getAttribute(index).isSpecified(); }
@Override public boolean isAttributeSpecified(int index) { return getAttribute(index).isSpecified(); }
public boolean isAttributeSpecified(int index) { return getAttribute(index).isSpecified(); }
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException { // First namespace declarations, if any: if (mNsCtxt != null) { mNsCtxt.outputNamespaceDeclarations(w); } // Then attributes, if any: if (mAttrs != null && mAttrs.size() > 0) { Iterator it = mAttrs.values().iterator(); while (it.hasNext()) { Attribute attr = (Attribute) it.next(); // Let's only output explicit attribute values: if (!attr.isSpecified()) { continue; } QName name = attr.getName(); String prefix = name.getPrefix(); String ln = name.getLocalPart(); String nsURI = name.getNamespaceURI(); w.writeAttribute(prefix, nsURI, ln, attr.getValue()); } } } }
Attribute attr = (Attribute) it.next(); if (!attr.isSpecified()) { continue;
@Override public boolean isSpecified() { return this.attribute.isSpecified(); } }
@Override public boolean isSpecified() { return this.attribute.isSpecified(); } }
@Override public boolean isSpecified() { return delegate.isSpecified(); }
@Override public boolean isSpecified() { return delegate.isSpecified(); }
/** * Copy constructor. * * @param that The {@link Attribute} event to copy. */ public AttributeEvent(Attribute that) { super(that); this.specified = that.isSpecified(); this.name = that.getName(); this.value = that.getValue(); this.dtdType = that.getDTDType(); }
@Override public boolean isAttributeSpecified(int index) { return getAttribute(index).isSpecified(); }
@Override public boolean isAttributeSpecified(int index) { return getAttribute(index).isSpecified(); }
public boolean isAttributeSpecified(int index) { return getAttribute(index).isSpecified(); }
public boolean isAttributeSpecified(int index) { return getAttribute(index).isSpecified(); }
public boolean isAttributeSpecified(int index) { return getAttributes().get(index).isSpecified(); }
@Override public boolean isAttributeSpecified(int index) { return getAttribute(index).isSpecified(); }
@Override public boolean isAttributeSpecified(int i) { if (replay) { Attribute attr = (Attribute) ((StartElementEventX) current).getAttributeList().get(i); return attr.isSpecified(); } else { return super.isAttributeSpecified(i); } }
private void fillXMLAttributes(StartElement event) { fAttributes.removeAllAttributes(); final Iterator attrs = event.getAttributes(); while (attrs.hasNext()) { Attribute attr = (Attribute) attrs.next(); fillQName(fAttributeQName, attr.getName()); String type = attr.getDTDType(); int idx = fAttributes.getLength(); fAttributes.addAttributeNS(fAttributeQName, (type != null) ? type : XMLSymbols.fCDATASymbol, attr.getValue()); fAttributes.setSpecified(idx, attr.isSpecified()); } }
private void fillXMLAttributes(StartElement event) { fAttributes.removeAllAttributes(); final Iterator attrs = event.getAttributes(); while (attrs.hasNext()) { Attribute attr = (Attribute) attrs.next(); fillQName(fAttributeQName, attr.getName()); String type = attr.getDTDType(); int idx = fAttributes.getLength(); fAttributes.addAttributeNS(fAttributeQName, (type != null) ? type : XMLSymbols.fCDATASymbol, attr.getValue()); fAttributes.setSpecified(idx, attr.isSpecified()); } }
private void fillXMLAttributes(StartElement event) { fAttributes.removeAllAttributes(); final Iterator attrs = event.getAttributes(); while (attrs.hasNext()) { Attribute attr = (Attribute) attrs.next(); fillQName(fAttributeQName, attr.getName()); String type = attr.getDTDType(); int idx = fAttributes.getLength(); fAttributes.addAttributeNS(fAttributeQName, (type != null) ? type : XMLSymbols.fCDATASymbol, attr.getValue()); fAttributes.setSpecified(idx, attr.isSpecified()); } }