Module org.htmlunit

Interface HyperlinkElement

All Known Implementing Classes:
HtmlAnchor, HtmlArea

public interface HyperlinkElement
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Marker/accessor interface implemented by the two elements the HTML spec defines as "hyperlink elements" - HtmlAnchor (a) and HtmlArea (area). Both share the same click/navigation-related attribute set (href, target, rel, ping, download); HyperlinkElementSupport operates on this interface to avoid duplicating that logic across the two implementations.
Author:
Ronald Brill
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the download attribute, or an empty string if not defined.
    Returns the value of the href attribute, or an empty string if not defined.
    Returns the value of the ping attribute, or an empty string if not defined.
    Returns the value of the rel attribute, or an empty string if not defined.
    Returns the value of the target attribute, or an empty string if not defined.
  • Method Details

    • getHrefAttribute

      String getHrefAttribute()
      Returns the value of the href attribute, or an empty string if not defined.
      Returns:
      the value of the href attribute, or an empty string if not defined
    • getTargetAttribute

      String getTargetAttribute()
      Returns the value of the target attribute, or an empty string if not defined.
      Returns:
      the value of the target attribute, or an empty string if not defined
    • getRelAttribute

      String getRelAttribute()
      Returns the value of the rel attribute, or an empty string if not defined.
      Returns:
      the value of the rel attribute, or an empty string if not defined
    • getPingAttribute

      String getPingAttribute()
      Returns the value of the ping attribute, or an empty string if not defined.
      Returns:
      the value of the ping attribute, or an empty string if not defined
    • getDownloadAttribute

      String getDownloadAttribute()
      Returns the value of the download attribute, or an empty string if not defined.
      Returns:
      the value of the download attribute, or an empty string if not defined