|
||||||||||
| 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 source)
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 begin)
Set the beginning index. |
void |
setClassAttribute(String classAttribute)
|
void |
setEnd(int end)
Set the ending index. |
void |
setIdAttribute(String idAttribute)
|
void |
setParent(DocumentRange parent)
Set the parent. |
void |
setSource(WebPage source)
Set the source web page. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentRange(WebPage source)
source - The web page that this range belongs to.| Method Detail |
|---|
public void addElement(DocumentRange element)
element - The element to add.public int getBegin()
public String getClassAttribute()
public List<DocumentRange> getElements()
public int getEnd()
public String getIdAttribute()
public DocumentRange getParent()
public WebPage getSource()
public String getTextOnly()
public void setBegin(int begin)
begin - The beginning index.public void setClassAttribute(String classAttribute)
classAttribute - the classAttribute to setpublic void setEnd(int end)
end - The ending index.public void setIdAttribute(String idAttribute)
idAttribute - the idAttribute to setpublic void setParent(DocumentRange parent)
parent - The parent.public void setSource(WebPage source)
source - The source web page.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||