노드
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.note.INode
public abstract class Node implements INode
Aspose.Note 문서의 모든 노드에 대한 기본 클래스입니다.
메서드
| 메서드 | 설명 |
|---|---|
| accept(DocumentVisitor visitor) | 노드의 방문자를 수락합니다. |
| getDocument() | 노드의 문서를 가져옵니다. |
| getNextSibling() | 같은 노드 트리 레벨에 있는 다음 노드를 가져옵니다. |
| getNodeId() | 노드의 ID를 가져옵니다. |
| getNodeType() | 노드 유형을 가져옵니다. |
| getParentNode() | 부모 노드를 가져옵니다. |
| getPreviousSibling() | 같은 노드 트리 레벨에 있는 이전 노드를 가져옵니다. |
| isComposite() | 이 노드가 복합 노드인지 여부를 나타내는 값을 가져옵니다. |
accept(DocumentVisitor visitor)
public abstract void accept(DocumentVisitor visitor)
노드의 방문자를 수락합니다.
Parameters:
| 매개변수 | 유형 | 설명 |
|---|---|---|
| visitor | DocumentVisitor | DocumentVisitor에서 파생된 클래스의 객체. |
getDocument()
public Document getDocument()
노드의 문서를 가져옵니다.
값: 문서.
Returns: Document
getNextSibling()
public INode getNextSibling()
같은 노드 트리 레벨에 있는 다음 노드를 가져옵니다.
값: 다음 형제.
Returns: INode
getNodeId()
public ExtendedGuid getNodeId()
노드의 ID를 가져옵니다.
Returns: ExtendedGuid
getNodeType()
public int getNodeType()
노드 유형을 가져옵니다.
Returns: int
getParentNode()
public ICompositeNode getParentNode()
부모 노드를 가져옵니다.
Returns: ICompositeNode
getPreviousSibling()
public INode getPreviousSibling()
같은 노드 트리 레벨에 있는 이전 노드를 가져옵니다.
값: 이전 형제.
Returns: INode
isComposite()
public boolean isComposite()
이 노드가 복합 노드인지 여부를 나타내는 값을 가져옵니다. true인 경우 노드는 자식 노드를 가질 수 있습니다.
Returns: boolean