|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.xml.IndexManager
public class IndexManager
Uses an XMLProcessor to provide indexing features on XHTML documents.
Note that this processor will optionally alter the document by fixing any
mismatch between the id and name attributes (when
ALink.fix is true and both attributes are specified).
It will also fill in a missing id attribute if the name
attribute is specified.
XMLProcessor| Field Summary | |
|---|---|
protected Vector |
m_alinks
|
protected String |
m_doctitle
|
| Constructor Summary | |
|---|---|
IndexManager(XMLProcessor xmlproc)
Constructor provided an XMLProcessor xmlproc to be used for processing XML and XHTML Documents. |
|
| Method Summary | |
|---|---|
Iterator |
getBodyText()
Returns an Iterator over the Text objects in the current DOM document's <body> Element. |
Iterator |
getLinks(String classAttr)
Returns an Iterator over the ALinks (those containing 'href' attributes) of the provided Document, from an already processed Document. |
Iterator |
getTargets(String classAttr)
Returns an Iterator over the ALink targets of the provided Document, from an already processed Document. |
void |
index(Document doc)
Processes the provided Document, building an index. |
void |
index(XNode xnode)
Processes the provided XNode's content, building an index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Vector m_alinks
protected String m_doctitle
| Constructor Detail |
|---|
public IndexManager(XMLProcessor xmlproc)
| Method Detail |
|---|
public void index(XNode xnode)
public Iterator getLinks(String classAttr)
public Iterator getTargets(String classAttr)
public Iterator getBodyText()
public void index(Document doc)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||