public String getAttributeValue(String nsURI, String localName) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } return mAttrCollector.getValue(nsURI, localName); }
@Override public String getAttributeValue(String nsURI, String localName) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } // 22-Aug-2018, tatu: As per [woodstox-core#53], need different logic // for `null` namespace URI argument if (nsURI == null) { return mAttrCollector.getValueByLocalName(localName); } return mAttrCollector.getValue(nsURI, localName); }
public String getAttributeValue(int index) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } return mAttrCollector.getValue(index); }
@Override public String getAttributeValue(String nsURI, String localName) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } // 22-Aug-2018, tatu: As per [woodstox-core#53], need different logic // for `null` namespace URI argument if (nsURI == null) { return mAttrCollector.getValueByLocalName(localName); } return mAttrCollector.getValue(nsURI, localName); }
public String getAttributeValue(int index) { return getAttrCollector().getValue(index); }
public String getValue(int index) { if (index < mAttrCount) { return (index < 0) ? null : mAttrCollector.getValue(index); } index -= mAttrCount; if (index < mNsCount) { /* As discussed in <code>fireStartTag</code>, we must use * element stack, not attribute collector: */ //String uri = mAttrCollector.getNsURI(index); String uri = mElemStack.getLocalNsURI(index); return (uri == null) ? "" : uri; } return null; }
/** * Method that basically serializes the specified (read-in) attribute * using Writers provided. Serialization is done by * writing out (fully-qualified) name * of the attribute, followed by the equals sign and quoted value. */ public void writeAttribute(int index, XmlWriter xw) throws IOException, XMLStreamException { // Note: here we assume index checks have been done by caller Attribute attr = mAttributes[index]; String ln = attr.mLocalName; String prefix = attr.mPrefix; if (prefix == null || prefix.length() == 0) { xw.writeAttribute(ln, getValue(index)); } else { xw.writeAttribute(prefix, ln, getValue(index)); } }
public void getAttributeAs(int index, TypedValueDecoder tvd) throws XMLStreamException { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } try { mAttrCollector.decodeValue(index, tvd); } catch (IllegalArgumentException iae) { throw _constructTypeException(iae, mAttrCollector.getValue(index)); } }
raw[ix+1] = attr.mNamespaceURI; raw[ix+2] = attr.mPrefix; raw[ix+3] = getValue(i);
@Override public String getAttributeValue(int index) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } return mAttrCollector.getValue(index); }
public String getAttributeValue(int index) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } return mAttrCollector.getValue(index); }
public String getAttributeValue(String nsURI, String localName) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } return mAttrCollector.getValue(nsURI, localName); }
public String getAttributeValue(String nsURI, String localName) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } return mAttrCollector.getValue(nsURI, localName); }
public String getAttributeValue(int index) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } return mAttrCollector.getValue(index); }
public String getAttributeValue(String nsURI, String localName) { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } return mAttrCollector.getValue(nsURI, localName); }
public void getAttributeAs(int index, TypedValueDecoder tvd) throws XMLStreamException { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } try { mAttrCollector.decodeValue(index, tvd); } catch (IllegalArgumentException iae) { throw _constructTypeException(iae, mAttrCollector.getValue(index)); } }
@Override public void getAttributeAs(int index, TypedValueDecoder tvd) throws XMLStreamException { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } try { mAttrCollector.decodeValue(index, tvd); } catch (IllegalArgumentException iae) { throw _constructTypeException(iae, mAttrCollector.getValue(index)); } }
@Override public void getAttributeAs(int index, TypedValueDecoder tvd) throws XMLStreamException { if (mCurrToken != START_ELEMENT) { throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM); } try { mAttrCollector.decodeValue(index, tvd); } catch (IllegalArgumentException iae) { throw _constructTypeException(iae, mAttrCollector.getValue(index)); } }