fr.inria.edelweiss.extractor.webpage
Class Header
java.lang.Object
fr.inria.edelweiss.extractor.webpage.ContentBlock
fr.inria.edelweiss.extractor.webpage.Header
public class Header
- extends ContentBlock
reprensents the HTML elements <h1> ... <h6> and provides the getters for their attributes.
- Version:
- 1.1
- Author:
- Fabien Gandon
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Header
public Header()
Header
public Header(java.lang.String text)
toString
public java.lang.String toString()
- Overrides:
toString
in class ContentBlock
getLevel
public final short getLevel()
- Returns:
- level of the header e.g. 1 for H1, 2 for H2, etc.
setLevel
public final void setLevel(short level)
toRDFXML
public org.w3c.dom.Element toRDFXML(org.w3c.dom.Document doc)
- Overrides:
toRDFXML
in class ContentBlock