Code example for Attributes

Methods: getType

0
   * @return The attribute type as a string, or null if the attribute is not in 
   *         the list or if Namespace processing is not being performed. 
   */ 
  public String getType(final String uri, final String localName)
  { 
    final String type = attributes.getType(uri, localName);
    if (type != null)
    { 
      return type;
    } 
    if (defaultNSUri.equals(uri))
    { 
      final String type1 = attributes.getType("", localName);
      if (type1 != null)
      { 
        return type1;
      } 
      try 
      { 
        final String value2 = attributes.getType(null, localName);
        if (value2 != null)
        { 
          return value2;
        } 
      } 
      catch (Exception e)
      { 
        // ignore. Heck, Xerces breaks the SAX-Specs so we have to take weird steps to mess around their mess. 
      } 
 
      return attributes.getType(localName);
    } 
    return null; 
 
  }