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.
-
-
Constructor Summary
Constructors Constructor and Description Link(WebPage source)Construct a link from the specified web page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AddressgetTarget()voidsetTarget(Address theTarget)Set the target of this link.java.lang.StringtoString()-
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
-
-
-
-
Constructor Detail
-
Link
public Link(WebPage source)
Construct a link from the specified web page.- Parameters:
source- The web page this link is from.
-
-
Method Detail
-
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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG