/** * Finds the next valid undeclared attribute in the map. */ private Attribute findNextUndeclaredAttribute() { if (attributeIterator != null) { while (attributeIterator.hasNext()) { Entry<QName, Attribute> entry = attributeIterator.next(); Attribute attribute = entry.getValue(); if (isUndeclared(attribute.getAttributeKey())) { return entry.getValue(); } } // No more attributes, turn the iterator off. attributeIterator = null; } // Go back and check for any remaining declared attributes if needed. mode = metadataIterator != null && metadataIterator.hasNext() ? Mode.DECLARED : Mode.DONE; return null; }
/** * Finds the next valid undeclared attribute in the map. */ private Attribute findNextUndeclaredAttribute() { if (attributeIterator != null) { while (attributeIterator.hasNext()) { Entry<QName, Attribute> entry = attributeIterator.next(); Attribute attribute = entry.getValue(); if (isUndeclared(attribute.getAttributeKey())) { return entry.getValue(); } } // No more attributes, turn the iterator off. attributeIterator = null; } // Go back and check for any remaining declared attributes if needed. mode = metadataIterator != null && metadataIterator.hasNext() ? Mode.DECLARED : Mode.DONE; return null; }
/** * Finds the next valid undeclared attribute in the map. */ private Attribute findNextUndeclaredAttribute() { if (attributeIterator != null) { while (attributeIterator.hasNext()) { Entry<QName, Attribute> entry = attributeIterator.next(); Attribute attribute = entry.getValue(); if (isUndeclared(attribute.getAttributeKey())) { return entry.getValue(); } } // No more attributes, turn the iterator off. attributeIterator = null; } // Go back and check for any remaining declared attributes if needed. mode = metadataIterator != null && metadataIterator.hasNext() ? Mode.DECLARED : Mode.DONE; return null; }