org.encog.bot.browse.range
public class DocumentRange extends Object
Constructor and Description |
---|
DocumentRange(WebPage theSource)
Construct a document range from the specified WebPage.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(DocumentRange element)
Add an element.
|
int |
getBegin() |
String |
getClassAttribute() |
List<DocumentRange> |
getElements() |
int |
getEnd() |
String |
getIdAttribute() |
DocumentRange |
getParent() |
WebPage |
getSource() |
String |
getTextOnly()
Get the text from this range.
|
void |
setBegin(int theBegin)
Set the beginning index.
|
void |
setClassAttribute(String theClassAttribute) |
void |
setEnd(int theEnd)
Set the ending index.
|
void |
setIdAttribute(String id) |
void |
setParent(DocumentRange theParent)
Set the parent.
|
void |
setSource(WebPage theSource)
Set the source web page.
|
public DocumentRange(WebPage theSource)
theSource
- The web page that this range belongs to.public final void addElement(DocumentRange element)
element
- The element to add.public final int getBegin()
public final String getClassAttribute()
public final List<DocumentRange> getElements()
public final int getEnd()
public final String getIdAttribute()
public final DocumentRange getParent()
public final WebPage getSource()
public final String getTextOnly()
public final void setBegin(int theBegin)
theBegin
- The beginning index.public final void setClassAttribute(String theClassAttribute)
theClassAttribute
- the classAttribute to setpublic final void setEnd(int theEnd)
theEnd
- The ending index.public final void setIdAttribute(String id)
id
- the idAttribute to setpublic final void setParent(DocumentRange theParent)
theParent
- The parent.public final void setSource(WebPage theSource)
theSource
- The source web page.Copyright © 2014. All Rights Reserved.