CustomXmlPartCollection
Overview
CustomXmlPartCollection is a class in Aspose.Words FOSS for Java.
Inherits from: Iterable<CustomXmlPart>.
Represents a collection of Custom XML Parts.
Edition status of its 10 listed members (a property and its accessor methods are listed separately, overloads once): 10 not yet exercised by a verified example.
This class declares 10 methods for CustomXmlPartCollection objects in Java programs.
Available methods include: add, clear, deepClone, get, getById, getCount, iterator, removeAt, set.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of elements contained in the collection. |
Methods
| Signature | Description |
|---|---|
getCount() → int | Gets the number of elements contained in the collection. |
get(index: int) → CustomXmlPart | Gets or sets an item at the specified index. |
set(index: int, value: CustomXmlPart) | Calls set(index, value) on this CustomXmlPartCollection instance. |
iterator() → Iterator<CustomXmlPart> | Returns an iterator object that can be used to iterate over all items in the collection. |
add(part: CustomXmlPart) | Adds an item to the collection. |
add(id: String, xml: String) → CustomXmlPart | Creates a new XML part with the specified XML and adds it to the collection. |
removeAt(index: int) | Removes an item at the specified index. |
clear() | Removes all elements from the collection. |
getById(id: String) → CustomXmlPart | Finds and returns a custom XML part by its identifier. |
deepClone() → CustomXmlPartCollection | Makes a deep copy of this collection and its items. |