|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.dom.DefaultElementVisitor
org.odftoolkit.odfdom.incubator.doc.text.OdfTextExtractor
org.odftoolkit.odfdom.incubator.doc.text.OdfEditableTextExtractor
org.odftoolkit.simple.common.EditableTextExtractor in Simple API.
public class OdfEditableTextExtractor
It's a sub class of OdfTextExtractor. It provides a method to return all the text that the user can typically edit in a document, including text in cotent.xml, header and footer in styles.xml, meta data in meta.xml.
This function can be used by search engine, and text analytic operations.
| Field Summary |
|---|
| Fields inherited from class org.odftoolkit.odfdom.incubator.doc.text.OdfTextExtractor |
|---|
mTextBuilder, NewLineChar, TabChar |
| Method Summary | |
|---|---|
String |
getText()
Deprecated. Return the editable text content as a string |
static OdfEditableTextExtractor |
newOdfEditableTextExtractor(OdfDocument doc)
Deprecated. An instance of OdfEditableTextExtractor will be created to extract the editable text content of an ODF element. |
static OdfEditableTextExtractor |
newOdfEditableTextExtractor(OdfElement element)
Deprecated. An instance of OdfEditableTextExtractor will be created to extract the editable text content of an ODF element. |
void |
visit(DrawObjectElement element)
Deprecated. A method to visit "draw:object" elements |
void |
visit(TableTableElement ele)
Deprecated. A method to visit "table:table" elements |
void |
visit(TextAElement ele)
Deprecated. A method to visit "text:a" elements |
void |
visit(TextTrackedChangesElement ele)
Deprecated. A method to visit "text:tracked-changes" elements |
| Methods inherited from class org.odftoolkit.odfdom.incubator.doc.text.OdfTextExtractor |
|---|
appendElementText, newOdfTextExtractor, visit, visit, visit, visit, visit, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static OdfEditableTextExtractor newOdfEditableTextExtractor(OdfDocument doc)
doc - the ODF document whose text will be extracted.
public static OdfEditableTextExtractor newOdfEditableTextExtractor(OdfElement element)
element - the ODF element whose text will be extracted.
public void visit(DrawObjectElement element)
DefaultElementVisitor
visit in class DefaultElementVisitorelement - - an instance of DrawObjectElementpublic void visit(TextTrackedChangesElement ele)
DefaultElementVisitor
visit in class DefaultElementVisitorele - - an instance of TextTrackedChangesElementpublic void visit(TextAElement ele)
DefaultElementVisitor
visit in class DefaultElementVisitorele - - an instance of TextAElementpublic void visit(TableTableElement ele)
DefaultElementVisitor
visit in class DefaultElementVisitorele - - an instance of TableTableElementpublic String getText()
getText in class OdfTextExtractor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||