uk.ac.man.documentparser.dataholders
Class Section
java.lang.Object
uk.ac.man.documentparser.dataholders.Section
- All Implemented Interfaces:
- java.io.Serializable
public class Section
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
Section(java.lang.String title,
java.lang.String content,
Section[] subSections)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
title
private java.lang.String title
content
private java.lang.String content
subSections
private Section[] subSections
Section
public Section(java.lang.String title,
java.lang.String content,
Section[] subSections)
toString
public static java.lang.String toString(Section[] sections)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toHTML
public java.lang.String toHTML(int level)
getLength
public int getLength()
getTitle
public java.lang.String getTitle()
getContent
public java.lang.String getContent()
getSubSections
public Section[] getSubSections()
getContentsRecursive
public java.lang.String getContentsRecursive()