public final int getIndex ( String qname ) { int index ; if ( super . getLength ( ) < MAX ) { // if we haven't got too many attributes let the // super class look it up index = super . getIndex ( qname ) ; return index ; } // we have too many attributes and the super class is slow // so find it quickly using our Hashtable. Integer i = ( Integer ) m_indexFromQName . get ( qname ) ; if ( i == null ) index = - 1 ; else index = i . intValue ( ) ; return index ; }
This method gets the index of an attribute given its qName .