public final class ModelNode extends Object
Provides data for a node of the document's model.
Constructor and Description |
---|
ModelNode(StructuredElementProperties properties)
Initializes a new instance of the
ModelNode class. |
ModelNode(TextProperties properties,
String text)
Initializes a new instance of the
ModelNode class. |
Modifier and Type | Method and Description |
---|---|
ModelNode |
get_Item(int index)
Gets a child node.
|
int |
getCount()
Gets a total number of the child nodes.
|
ModelNode |
getParentNode()
Gets a parent node.
|
StructuredElementProperties |
getProperties()
Gets an element's properties.
|
String |
getText()
Gets a text of the document's element.
|
public ModelNode(StructuredElementProperties properties)
Initializes a new instance of the ModelNode
class.
properties
- Properties of the document's element.public ModelNode(TextProperties properties, String text)
Initializes a new instance of the ModelNode
class.
properties
- Properties of the document's element.text
- A text of the document's element.public StructuredElementProperties getProperties()
Gets an element's properties.
StructuredElementProperties
.public ModelNode getParentNode()
Gets a parent node.
ModelNode
or null if it's top node.public String getText()
Gets a text of the document's element.
public int getCount()
Gets a total number of the child nodes.
public ModelNode get_Item(int index)
Gets a child node.
index
- A index of the child node.ModelNode
.Copyright © 2018. All rights reserved.