CompositeNode

Inheritance: java.lang.Object, com.aspose.note.Node, com.aspose.note.CompositeNodeBase

All Implemented Interfaces: com.aspose.note.ICompositeNodeT

public abstract class CompositeNode<T> extends CompositeNodeBase implements ICompositeNodeT<T>

The base generic class for nodes that can contain other nodes.

T: The type of elements in the composite node.

T :

Methods

MethodDescription
<T1>appendChildFirst(T1 newChild)इस नोड के चाइल्ड नोड्स की सूची के सामने नोड को जोड़ता है.
<T1>appendChildLast(T1 newChild)इस नोड के चाइल्ड नोड्स की सूची के अंत में नोड को जोड़ता है.
<T1>getChildNodes(Class<T1> typeParameterClass)Get all child nodes by the node type.
<T1>insertChild(int i, T1 newChild)इस नोड के चाइल्ड नोड्स की सूची में निर्दिष्ट स्थान पर नोड को सम्मिलित करता है.
<T1>removeChild(T1 oldChild)Removes the child node.
accept(DocumentVisitor visitor)Accepts the visitor of the node.
getFirstChild()इस नोड का पहला चाइल्ड नोड प्राप्त करता है.
getLastChild()इस नोड का अंतिम चाइल्ड नोड प्राप्त करता है.
insertChildrenRange(int i, T[] newChildren)इस नोड के चाइल्ड नोड्स की सूची में निर्दिष्ट स्थान से शुरू होकर नोड की क्रमबद्धता को सम्मिलित करता है.
insertChildrenRange(int i, Iterable<T> newChildren)इस नोड के चाइल्ड नोड्स की सूची में निर्दिष्ट स्थान से शुरू होकर नोड की क्रमबद्धता को सम्मिलित करता है.
isComposite()जाँचता है कि नोड सम्मिश्र (कॉम्पोजिट) है या नहीं.
iterator()CompositeNode\{T\} के चाइल्ड नोड्स के माध्यम से इटरैट करने वाला एनेमरेटर लौटाता है.

<T1>appendChildFirst(T1 newChild)

public T1 <T1>appendChildFirst(T1 newChild)

इस नोड के चाइल्ड नोड्स की सूची के सामने नोड को जोड़ता है.

Parameters:

ParameterTypeDescription
newChildT1The node to add.

Returns: T1 - जोड़ा गया नोड.

<T1>appendChildLast(T1 newChild)

public T1 <T1>appendChildLast(T1 newChild)

इस नोड के चाइल्ड नोड्स की सूची के अंत में नोड को जोड़ता है.

Parameters:

ParameterTypeDescription
newChildT1The node to add.

Returns: T1 - जोड़ा गया नोड.

<T1>getChildNodes(Class<T1> typeParameterClass)

public List<T1> <T1>getChildNodes(Class<T1> typeParameterClass)

Get all child nodes by the node type.

Parameters:

ParameterTypeDescription
typeParameterClassjava.lang.Class<T1>

Returns: java.util.List<T1> - A list of child nodes.

T1: The type of elements in the returned list.

<T1>insertChild(int i, T1 newChild)

public T1 <T1>insertChild(int i, T1 newChild)

इस नोड के चाइल्ड नोड्स की सूची में निर्दिष्ट स्थान पर नोड को सम्मिलित करता है.

Parameters:

ParameterTypeDescription
iintसम्मिलित करने का स्थान
newChildT1सम्मिलित करने के लिए नोड.

Returns: T1 - जोड़ा गया नोड.

<T1>removeChild(T1 oldChild)

public T1 <T1>removeChild(T1 oldChild)

Removes the child node.

Parameters:

ParameterTypeDescription
oldChildT1The node to remove.

Returns: T1 - हटाया गया नोड.

accept(DocumentVisitor visitor)

public void accept(DocumentVisitor visitor)

Accepts the visitor of the node.

Parameters:

ParameterTypeDescription
visitorDocumentVisitorThe object of a class derived from the DocumentVisitor.

getFirstChild()

public T getFirstChild()

इस नोड का पहला चाइल्ड नोड प्राप्त करता है.

Returns: T

getLastChild()

public T getLastChild()

इस नोड का अंतिम चाइल्ड नोड प्राप्त करता है.

Returns: T

insertChildrenRange(int i, T[] newChildren)

public final void insertChildrenRange(int i, T[] newChildren)

इस नोड के चाइल्ड नोड्स की सूची में निर्दिष्ट स्थान से शुरू होकर नोड की क्रमबद्धता को सम्मिलित करता है.

Parameters:

ParameterTypeDescription
iintसम्मिलित करने का स्थान
newChildrenT[]सम्मिलित किए जाने वाले नोड्स की क्रमबद्धता.

insertChildrenRange(int i, Iterable<T> newChildren)

public final void insertChildrenRange(int i, Iterable<T> newChildren)

इस नोड के चाइल्ड नोड्स की सूची में निर्दिष्ट स्थान से शुरू होकर नोड की क्रमबद्धता को सम्मिलित करता है.

Parameters:

ParameterTypeDescription
iintसम्मिलित करने का स्थान
newChildrenjava.lang.Iterable<T>सम्मिलित किए जाने वाले नोड्स की क्रमबद्धता.

isComposite()

public final boolean isComposite()

जाँचता है कि नोड संयुक्त है या नहीं। यदि सत्य है तो नोड के पास चाइल्ड नोड्स हो सकते हैं।

Returns: boolean

iterator()

public System.Collections.Generic.IGenericEnumerator<T> iterator()

CompositeNode\{T\} के चाइल्ड नोड्स के माध्यम से इटरैट करने वाला एनेमरेटर लौटाता है.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T> - एक T:IEnumerator1के लिएCompositeNode{T}`.