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 |
---|---|
getDocument() | Gets the document of the node. |
isComposite() | Gets a value indicating whether this node is composite. |
getNodeType() | Gets the node type. |
getParentNode() | Gets the parent node. |
getPreviousSibling() | Gets the previous node at the same node tree level. |
getNextSibling() | Gets the next node at the same node tree level. |
accept(DocumentVisitor visitor) | Accepts the visitor of the node. |
getDocument()
public Document getDocument()
Gets the document of the node.
Value: The document.
Returns: Document
isComposite()
public boolean isComposite()
Gets a value indicating whether this node is composite. If true the node can have child nodes.
Returns: boolean
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
getNextSibling()
public INode getNextSibling()
Gets the next node at the same node tree level.
Value: The next sibling.
Returns: INode
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 . |