private void processAttributes ( final XMLExtendedStreamReader reader , AttributeProcessor < Integer , Attribute > attributeProcessorCallback ) throws XMLStreamException { final int count = reader . getAttributeCount ( ) ; for ( int i = 0 ; i < count ; i ++ ) { ParseUtils . requireNoNamespaceAttribute ( reader , i ) ; // final String value = reader.getAttributeValue(i); final Attribute attribute = Attribute . forName ( reader . getAttributeLocalName ( i ) ) ; attributeProcessorCallback . process ( i , attribute ) ; } }
Iterating over all attributes got from the reader parameter .