public class WebPage
extends java.lang.Object
| Constructor and Description |
|---|
WebPage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(DocumentRange span)
Add to the content collection.
|
void |
addDataUnit(DataUnit unit)
Add a data unit to the collection.
|
DocumentRange |
find(java.lang.Class<?> c,
int index)
Find the specified DocumentRange subclass in the contents list.
|
Link |
findLink(java.lang.String str)
Find the link that contains the specified string.
|
java.util.List<DocumentRange> |
getContents() |
java.util.List<DataUnit> |
getData() |
int |
getDataSize()
Get the number of data items in this collection.
|
DataUnit |
getDataUnit(int i)
Get the DataUnit unit at the specified index.
|
DocumentRange |
getTitle()
Get the title for this document.
|
void |
setTitle(DocumentRange theTitle)
Set the title of this document.
|
java.lang.String |
toString() |
public final void addContent(DocumentRange span)
span - The range to add to the collection.public final void addDataUnit(DataUnit unit)
unit - The data unit to load.public final DocumentRange find(java.lang.Class<?> c, int index)
c - The class type to search for.index - The index to search from.public final Link findLink(java.lang.String str)
str - The string to search for.public final java.util.List<DocumentRange> getContents()
public final java.util.List<DataUnit> getData()
public final int getDataSize()
public final DataUnit getDataUnit(int i)
i - The index to use.public final DocumentRange getTitle()
public final void setTitle(DocumentRange theTitle)
theTitle - The DocumentRange that specifies the title.public final java.lang.String toString()
toString in class java.lang.Object