|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.bot.browse.range.DocumentRange
public class DocumentRange
Base class that represents a document range. A document range is a collection of tags that all apply to one "concept". For example, a Form, or a Link. This allows the form to collect the elements inside the form, or a link to collect the text along with the link tag.
Constructor Summary | |
---|---|
DocumentRange(WebPage theSource)
Construct a document range from the specified WebPage. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentRange(WebPage theSource)
theSource
- The web page that this range belongs to.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |