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 Address getTarget()
- Returns:
- The target of this link.
setTarget
public void setTarget(Address target)
- Set the target of this link.
- Parameters:
target - The link target.
toString
public String toString()
-
- Overrides:
toString in class DocumentRange
Copyright © 2011. All Rights Reserved.