public class DocumentRange
extends java.lang.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() |
java.lang.String |
getClassAttribute() |
java.util.List<DocumentRange> |
getElements() |
int |
getEnd() |
java.lang.String |
getIdAttribute() |
DocumentRange |
getParent() |
WebPage |
getSource() |
java.lang.String |
getTextOnly()
Get the text from this range.
|
void |
setBegin(int theBegin)
Set the beginning index.
|
void |
setClassAttribute(java.lang.String theClassAttribute) |
void |
setEnd(int theEnd)
Set the ending index.
|
void |
setIdAttribute(java.lang.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 java.lang.String getClassAttribute()
public final java.util.List<DocumentRange> getElements()
public final int getEnd()
public final java.lang.String getIdAttribute()
public final DocumentRange getParent()
public final WebPage getSource()
public final java.lang.String getTextOnly()
public final void setBegin(int theBegin)
theBegin - The beginning index.public final void setClassAttribute(java.lang.String theClassAttribute)
theClassAttribute - the classAttribute to setpublic final void setEnd(int theEnd)
theEnd - The ending index.public final void setIdAttribute(java.lang.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.