CollectionItem
Inheritance: java.lang.Object, com.aspose.pdf.CollectionItem
public class CollectionItem extends Object
Represents a collection item class. The collection item contains the data described by the collection schema.
Methods
| Method | Description |
|---|---|
| getAllNames | Gets a collection of all the names of collection item values. |
| hasName | Checks if the given name exists in the collection item. |
| isEmpty | Gets a value indicating whether the collection item is empty. |
| tryGetDateTimeValue | Tries to get the value of type DateTime from the collection item by the specified name. |
| tryGetDoubleValue | Tries to get the double value for the specified name from the collection item. |
| tryGetIntValue | Tries to get the integer value for a specified name from the collection item. |
| tryGetTextValue | Tries to get the text value with the specified name from the collection item. |
getAllNames
public final com.aspose.ms.System.Collections.Generic.IGenericCollection< String > getAllNames()
Gets a collection of all the names of collection item values.
Returns: list of String
hasName
Checks if the given name exists in the collection item.
isEmpty
public final boolean isEmpty()
Gets a value indicating whether the collection item is empty.
Returns: true if the collection item is empty; otherwise, false. This property returns true if the collection item does not contain any values, including string values, double values, integer values, and date values. If any of these value types are present in the collection item, this property returns false.
tryGetDateTimeValue
Tries to get the value of type DateTime from the collection item by the specified name.
tryGetDoubleValue
Tries to get the double value for the specified name from the collection item.
tryGetIntValue
Tries to get the integer value for a specified name from the collection item.
tryGetTextValue
Tries to get the text value with the specified name from the collection item.