Question: Constructor Details AnchorElement public AnchorElement ( java . lang.String url, java.lang.String linkText, java.lang.String attributes ) Initializes the tag with the provided parameters. For this project

Constructor Details
AnchorElement
public AnchorElement(java.lang.String url,
java.lang.String linkText,
java.lang.String attributes)
Initializes the tag with the provided parameters. For this project you can assume we will not update any of the attributes associated with this tag.
Parameters:
url -
linkText -
attributes -
Method Details
getLinkText
public java.lang.String getLinkText()
Returns the text used for the link.
Returns:
text
getUrlText
public java.lang.String getUrlText()
Returns the url associated with the link.
Returns:
url
genHTML
public java.lang.String genHTML(int indentation)
Description copied from interface: Element
Returns a string that represents the HTML associated with the element. The string is indented based on the parameter value.
Specified by:
genHTML in interface Element
Overrides:
genHTML in class TagElement
Returns:
HTML associated with the element.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!