Node
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.note.INode
public abstract class Node implements INode
The base class for all nodes of an Aspose.Note document.
Methods
| Method | Description |
|---|---|
| accept(DocumentVisitor visitor) | Accepts the visitor of the node. |
| getDocument() | Gets the document of the node. |
| getNextSibling() | Gets the next node at the same node tree level. |
| getNodeId() | Gets the node’s ID. |
| getNodeType() | Gets the node type. |
| getParentNode() | Gets the parent node. |
| getPreviousSibling() | Gets the previous node at the same node tree level. |
| isComposite() | Gets a value indicating whether this node is composite. |
accept(DocumentVisitor visitor)
public abstract void accept(DocumentVisitor visitor)
Accepts the visitor of the node.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| visitor | DocumentVisitor | The object of a class derived from the DocumentVisitor. |
getDocument()
public Document getDocument()
Gets the document of the node.
Value: The document.
Returns: Document
getNextSibling()
public INode getNextSibling()
Gets the next node at the same node tree level.
Value: The next sibling.
Returns: INode
getNodeId()
public ExtendedGuid getNodeId()
Gets the node’s ID.
Returns: ExtendedGuid
getNodeType()
public int getNodeType()
Gets the node type.
Returns: int
getParentNode()
public ICompositeNode getParentNode()
Gets the parent node.
Returns: ICompositeNode
getPreviousSibling()
public INode getPreviousSibling()
Gets the previous node at the same node tree level.
Value: The previous sibling.
Returns: INode
isComposite()
public boolean isComposite()
Gets a value indicating whether this node is composite. If true the node can have child nodes.
Returns: boolean