- 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" -
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 TypeMethodDescriptionReturns the value of thedownloadattribute, or an empty string if not defined.Returns the value of thehrefattribute, or an empty string if not defined.Returns the value of thepingattribute, or an empty string if not defined.Returns the value of therelattribute, or an empty string if not defined.Returns the value of thetargetattribute, or an empty string if not defined.
-
Method Details
-
getHrefAttribute
String getHrefAttribute()Returns the value of thehrefattribute, or an empty string if not defined.- Returns:
- the value of the
hrefattribute, or an empty string if not defined
-
getTargetAttribute
String getTargetAttribute()Returns the value of thetargetattribute, or an empty string if not defined.- Returns:
- the value of the
targetattribute, or an empty string if not defined
-
getRelAttribute
String getRelAttribute()Returns the value of therelattribute, or an empty string if not defined.- Returns:
- the value of the
relattribute, or an empty string if not defined
-
getPingAttribute
String getPingAttribute()Returns the value of thepingattribute, or an empty string if not defined.- Returns:
- the value of the
pingattribute, or an empty string if not defined
-
getDownloadAttribute
String getDownloadAttribute()Returns the value of thedownloadattribute, or an empty string if not defined.- Returns:
- the value of the
downloadattribute, or an empty string if not defined
-