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
  { 
    jndiName = attrs.getValue(getUri(), "jndiName");
    driverClass = attrs.getValue(getUri(), "driverClass");
    connectionString = attrs.getValue(getUri(), "connectionString");
    username = attrs.getValue(getUri(), "userName");
    password = attrs.getValue(getUri(), "password");
  } 
 
  /** 
   * Returns the object for this element or null, if this element does 
   * not create an object. 
   * 
   * @return the object. 
   * @throws SAXException if an parser error occured. 
   */ 
  public Object getObject() throws SAXException
  {