public boolean hasMoreAttributeReaders() { if (!root.isStartElement()) { return false; } return currentAttribute < root.getAttributeCount(); }
public boolean hasMoreAttributeReaders() { if (!root.isStartElement()) { return false; } return currentAttribute < root.getAttributeCount(); }
/** * Checks the index range for the current attributes set. * If the attributes are not indexed for the current element context, they * will be indexed. * @param index */ private void checkAttributeIndexRange(int index) { if (!attributesIndexed) { attributesIndexes.clear(); final int c = super.getAttributeCount(); for (int i = 0; i < c; i++) { QName aname = super.getAttributeName(i); QName expected = inAttributesMap.get(aname); if (expected == null || !TransformUtils.isEmptyQName(expected)) { attributesIndexes.add(i); } } attributesIndexed = true; } if (index >= attributesIndexes.size()) { throwIndexException(index, attributesIndexes.size()); } }
/** * Checks the index range for the current attributes set. * If the attributes are not indexed for the current element context, they * will be indexed. * @param index */ private void checkAttributeIndexRange(int index) { if (!attributesIndexed) { attributesIndexes.clear(); final int c = super.getAttributeCount(); for (int i = 0; i < c; i++) { QName aname = super.getAttributeName(i); QName expected = inAttributesMap.get(aname); if (expected == null || !TransformUtils.isEmptyQName(expected)) { attributesIndexes.add(i); } } attributesIndexed = true; } if (index >= attributesIndexes.size()) { throwIndexException(index, attributesIndexes.size()); } }
/** * Checks the index range for the current attributes set. * If the attributes are not indexed for the current element context, they * will be indexed. * @param index */ private void checkAttributeIndexRange(int index) { if (!attributesIndexed) { attributesIndexes.clear(); final int c = super.getAttributeCount(); for (int i = 0; i < c; i++) { QName aname = super.getAttributeName(i); QName expected = inAttributesMap.get(aname); if (expected == null || !TransformUtils.isEmptyQName(expected)) { attributesIndexes.add(i); } } attributesIndexed = true; } if (index >= attributesIndexes.size()) { throwIndexException(index, attributesIndexes.size()); } }
/** * Checks the index range for the current attributes set. * If the attributes are not indexed for the current element context, they * will be indexed. * @param index */ private void checkAttributeIndexRange(int index) { if (!attributesIndexed) { attributesIndexes.clear(); final int c = super.getAttributeCount(); for (int i = 0; i < c; i++) { QName aname = super.getAttributeName(i); QName expected = inAttributesMap.get(aname); if (expected == null || !TransformUtils.isEmptyQName(expected)) { attributesIndexes.add(i); } } attributesIndexed = true; } if (index >= attributesIndexes.size()) { throwIndexException(index, attributesIndexes.size()); } }
/** * Checks the index range for the current attributes set. * If the attributes are not indexed for the current element context, they * will be indexed. * @param index */ private void checkAttributeIndexRange(int index) { if (!attributesIndexed) { attributesIndexes.clear(); final int c = super.getAttributeCount(); for (int i = 0; i < c; i++) { QName aname = super.getAttributeName(i); QName expected = inAttributesMap.get(aname); if (expected == null || !TransformUtils.isEmptyQName(expected)) { attributesIndexes.add(i); } } attributesIndexed = true; } if (index >= attributesIndexes.size()) { throwIndexException(index, attributesIndexes.size()); } }