code: public String getType(int i) {
          if (i < 0 || i >= types.size()) {
              return null;
          }
          return types.get(i);
      }
docs: Get the type of an attribute (by position).
  
  @param i The position of the attribute in the list.
  @return The attribute type as a string ("NMTOKEN" for an
  enumeration, and "CDATA" if no declaration was
  read), or null if there is no attribute at
  that position.
  @see org.xml.sax.AttributeList#getType(int)