public class ModelStructuredHandler extends StructuredHandler
Represents a handler for extracting a structured text from the document as Model.
Constructor and Description |
---|
ModelStructuredHandler()
Initializes a new instance of the
ModelStructuredHandler class. |
Modifier and Type | Method and Description |
---|---|
ModelNode |
getRootNode()
Gets a root node of the document's model.
|
protected void |
onEndElement()
Starts to process the closing of the element.
|
protected void |
onStartElement(StructuredElementProperties properties)
Starts to process the element.
|
protected void |
onText(TextProperties properties,
String value)
Starts to process the element's text.
|
endElement, get_Item, getDepth, onLineBreak, onStartDocument, onStartGroup, onStartHyperlink, onStartingElement, onStartList, onStartListItem, onStartPage, onStartParagraph, onStartSection, onStartSlide, onStartTable, onStartTableCell, onStartTableRow, startElement, text
public ModelStructuredHandler()
Initializes a new instance of the ModelStructuredHandler
class.
public ModelNode getRootNode()
Gets a root node of the document's model.
ModelNode
.protected void onStartElement(StructuredElementProperties properties)
Starts to process the element.
onStartElement
in class StructuredHandler
properties
- Properties of the element.protected void onEndElement()
Starts to process the closing of the element.
onEndElement
in class StructuredHandler
protected void onText(TextProperties properties, String value)
Starts to process the element's text.
onText
in class StructuredHandler
properties
- Properties of the element's text.value
- A text of the element.Copyright © 2019. All rights reserved.