public boolean isPrefixLocallyDeclared(String internedPrefix) { if (internedPrefix != null && internedPrefix.length() == 0) { // default ns internedPrefix = null; } int offset = mCurrElement.mNsOffset; for (int len = mNamespaces.size(); offset < len; offset += 2) { // both interned, can use identity comparison String thisPrefix = mNamespaces.getString(offset); if (thisPrefix == internedPrefix) { return true; } } return false; }
public final String getLocalNsURI(int index) { int offset = mCurrElement.mNsOffset; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index + 1); }
public final String getLocalNsPrefix(int index) { int offset = mCurrElement.mNsOffset; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index); }
public String getPrefix(int index) { if (index < 0 || index >= mAttrCount) { throwIndex(index); } return mAttrNames.getString(index << 1); }
public String getPrefix(int index) { if (index < 0 || index >= mAttrCount) { throwIndex(index); } return mAttrNames.getString(index << 1); }
public String getLocalName(int index) { if (index < 0 || index >= mAttrCount) { throwIndex(index); } return mAttrNames.getString((index << 1) + 1); }
public String getLocalName(int index) { if (index < 0 || index >= mAttrCount) { throwIndex(index); } return mAttrNames.getString(index); }
public String getLocalName(int index) { if (index < 0 || index >= mAttrCount) { throwIndex(index); } return mAttrNames.getString(index); }
public String getLocalName(int index) { if (index < 0 || index >= mAttrCount) { throwIndex(index); } return mAttrNames.getString((index << 1) + 1); }
public final String getLocalNsPrefix(int index) { int offset = mCurrElement.mNsOffset; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index); }
public final String getLocalNsPrefix(int index) { int offset = mCurrElement.mNsOffset; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index); }
public final String getLocalNsURI(int index) { int offset = mCurrElement.mNsOffset; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index + 1); }
public final String getLocalNsURI(int index) { int offset = mNsCounts[(mSize-1) >> 2]; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index + 1); }
/** * Method that basically serializes the specified (read-in) attribute * using Writers provided */ public void writeAttribute(int index, XmlWriter xw) throws IOException, XMLStreamException { // Note: here we assume index checks have been done by caller String ln = mAttrNames.getString(index); xw.writeAttribute(ln, getValue(index)); }
public final String getLocalNsPrefix(int index) { int offset = mNsCounts[(mSize-1) >> 2]; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index); }
public final String getLocalNsURI(int index) { int offset = mCurrElement.mNsOffset; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index + 1); }
public final String getLocalNsPrefix(int index) { int offset = mNsCounts[(mSize-1) >> 2]; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index); }
public final String getLocalNsURI(int index) { int offset = mNsCounts[(mSize-1) >> 2]; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index + 1); }
public final String getLocalNsURI(int index) { int offset = mNsCounts[(mSize-1) >> 2]; int localCount = (mNamespaces.size() - offset); index <<= 1; // 2 entries, prefix/URI for each NS if (index < 0 || index >= localCount) { throwIllegalIndex(index >> 1, localCount >> 1); } return mNamespaces.getString(offset + index + 1); }
/** * Method that basically serializes the specified (read-in) attribute * using Writers provided */ public void writeAttribute(int index, XmlWriter xw) throws IOException, XMLStreamException { // Note: here we assume index checks have been done by caller String ln = mAttrNames.getString(index); xw.writeAttribute(ln, getValue(index)); }