org.anadix.html
Class BaseTag

java.lang.Object
  extended by org.anadix.html.HtmlElement
      extended by org.anadix.html.BaseTag
All Implemented Interfaces:
Comparable<HtmlElement>, Element

public class BaseTag
extends HtmlElement

Defines a default address or a default target for all links on a page. See w3schools.

Version:
$Id: $
Author:
tomason

Method Summary
 String getHref()
          Specifies a base URL for all relative URLs on a page.
 String getTarget()
          Specifies where to open all the links on a page
 
Methods inherited from class org.anadix.html.HtmlElement
compareTo, equals, getAttribute, getAttributes, getId, getName, getParent, getPosition, getSource, getTextContent, hashCode, setPosition, setSource, setTextContent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getHref

public String getHref()
Specifies a base URL for all relative URLs on a page. Note: The base URL must be an absolute URL!

Returns:
a base URL for all relative URLs on a page.

getTarget

public String getTarget()
Specifies where to open all the links on a page

Returns:
where to open all the links on a page


Copyright © 2012. All Rights Reserved.