org.encog.bot.browse.range
Class Link
java.lang.Object
org.encog.bot.browse.range.DocumentRange
org.encog.bot.browse.range.Link
public class Link
- extends DocumentRange
A document range that represents a hyperlink, and any embedded tags and text.
- Author:
- jheaton
Constructor Summary |
Link(WebPage source)
Construct a link from the specified web page. |
Methods inherited from class org.encog.bot.browse.range.DocumentRange |
addElement, getBegin, getClassAttribute, getElements, getEnd, getIdAttribute, getParent, getSource, getTextOnly, setBegin, setClassAttribute, setEnd, setIdAttribute, setParent, setSource |
Link
public Link(WebPage source)
- Construct a link from the specified web page.
- Parameters:
source
- The web page this link is from.
getTarget
public final Address getTarget()
- Returns:
- The target of this link.
setTarget
public final void setTarget(Address theTarget)
- Set the target of this link.
- Parameters:
theTarget
- The link target.
toString
public final String toString()
-
- Overrides:
toString
in class Object
Copyright © 2014. All Rights Reserved.