|
CS 1705 Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcs1705.web.OldWebBot.HeadingDescriptor
public static class OldWebBot.HeadingDescriptor
Represents the content of an HTML heading entry. Headings are
immutable once created. This class is used to build an iterator
over selected headings using OldWebBot.getHeadings() and its relatives.
| Constructor Summary | |
|---|---|
OldWebBot.HeadingDescriptor(int level,
String text)
Creates a new heading descriptor. |
|
| Method Summary | |
|---|---|
int |
getLevel()
Get this heading's level (1-6). |
String |
getText()
Get this heading's text (title). |
String |
toString()
Get a printable version of this heading. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OldWebBot.HeadingDescriptor(int level,
String text)
level - The level number of this heading (1-6)text - The text content of this heading| Method Detail |
|---|
public String getText()
public int getLevel()
public String toString()
toString in class Object
|
Last updated: Wed, Apr 1, 2009 12:29 AM EDT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||