Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Method Summary
`Address` | `getTarget()`
`void` | `setTarget(Address theTarget)` Set the target of this link.
`String` | `toString()`

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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

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 String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.