Code example for Attributes

Methods: getValue

0
   * @param attrs the attributes. 
   * @throws SAXException if there is a parsing error. 
   */ 
  protected void startParsing(final Attributes attrs) throws SAXException
  { 
    userName = attrs.getValue(getUri(), "userName");
    password = attrs.getValue(getUri(), "password");
    driverClass = attrs.getValue(getUri(), "driverClass");
    sqlQuery = attrs.getValue(getUri(), "sqlQuery");
    connectionString = attrs.getValue(getUri(), "connectionString");
  } 
 
  /** 
   * Returns the handler for a child element. 
   * 
   * @param uri     the URI of the namespace of the current element. 
   * @param tagName the tag name. 
   * @param atts    the attributes. 
   * @return the handler or null, if the tagname is invalid. 
   * @throws SAXException if there is a parsing error. 
Stop searching for code, let great code find you!  Add Codota to your java IDE