|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.l3s.boilerpipe.document.TextDocument
public class TextDocument
A text document, consisting of one or more TextBlock
s.
Constructor Summary | |
---|---|
TextDocument(java.util.List<TextBlock> textBlocks)
Creates a new TextDocument with given TextBlock s, and no
title. |
|
TextDocument(java.lang.String title,
java.util.List<TextBlock> textBlocks)
Creates a new TextDocument with given TextBlock s and
given title. |
Method Summary | |
---|---|
java.lang.String |
debugString()
Returns detailed debugging information about the contained TextBlock s. |
java.lang.String |
getContent()
Returns the TextDocument 's content. |
java.lang.String |
getText(boolean includeContent,
boolean includeNonContent)
Returns the TextDocument 's content, non-content or both |
java.util.List<TextBlock> |
getTextBlocks()
Returns the TextBlock s of this document. |
java.lang.String |
getTitle()
Returns the "main" title for this document, or null if no
such title has ben set. |
void |
setTitle(java.lang.String title)
Updates the "main" title for this document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextDocument(java.util.List<TextBlock> textBlocks)
TextDocument
with given TextBlock
s, and no
title.
textBlocks
- The text blocks of this document.public TextDocument(java.lang.String title, java.util.List<TextBlock> textBlocks)
TextDocument
with given TextBlock
s and
given title.
title
- The "main" title for this text document.textBlocks
- The text blocks of this document.Method Detail |
---|
public java.util.List<TextBlock> getTextBlocks()
TextBlock
s of this document.
TextBlock
s, in sequential order of appearance.public java.lang.String getTitle()
null
if no
such title has ben set.
public void setTitle(java.lang.String title)
title
- public java.lang.String getContent()
TextDocument
's content.
public java.lang.String getText(boolean includeContent, boolean includeNonContent)
TextDocument
's content, non-content or both
includeContent
- Whether to include TextBlocks marked as "content".includeNonContent
- Whether to include TextBlocks marked as "non-content".
public java.lang.String debugString()
TextBlock
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |