Code example for Element

Methods: hasAttribute

0
   * @param name 
   *          Name of the attribute. 
   * @return <code>true</code> if this element has an attribute with the specified name. 
   */ 
  public boolean hasAttribute ( String name ) {
    return e.hasAttribute( name );
  } 
 
  /** 
   * Returns the attribute value to a given attribute name or <code>null</code> if the attribute doesn't exist. 
   *  
   * @param name 
   *          The attribute's name 
   * @return Attribute value or <code>null</code> 
   */ 
  public String getAttribute ( String name ) {
    return e.hasAttribute( name ) ? e.getAttribute( name ) : null;
  } 
 
  /** 
   * @return the text content of the element