public class CollectionItem extends Object
Represents a collection item class. The collection item contains the data described by the collection schema.
Modifier and Type | Class and Description |
---|---|
static class |
CollectionItem.Value<T>
Represents a class for a value of collection item.
|
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.Collections.Generic.IGenericCollection<String> |
getAllNames()
Gets a collection of all the names of collection item values.
|
boolean |
hasName(String name)
Checks if the given name exists in the collection item.
|
boolean |
isEmpty()
Gets a value indicating whether the collection item is empty.
|
boolean |
tryGetDateTimeValue(String name,
CollectionItem.Value<com.aspose.ms.System.DateTime>[] value)
Tries to get the value of type DateTime from the collection item by the specified name.
|
boolean |
tryGetDoubleValue(String name,
CollectionItem.Value<Double>[] value)
Tries to get the double value for the specified name from the collection item.
|
boolean |
tryGetIntValue(String name,
CollectionItem.Value<Integer>[] value)
Tries to get the integer value for a specified name from the collection item.
|
boolean |
tryGetTextValue(String name,
CollectionItem.Value<String>[] value)
Tries to get the text value with the specified name from the collection item.
|
public final boolean isEmpty()
Gets a value indicating whether the collection item is empty.
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.
public final boolean hasName(String name)
Checks if the given name exists in the collection item.
name
- The name to check.public final com.aspose.ms.System.Collections.Generic.IGenericCollection<String> getAllNames()
Gets a collection of all the names of collection item values.
public final boolean tryGetIntValue(String name, CollectionItem.Value<Integer>[] value)
Tries to get the integer value for a specified name from the collection item.
name
- The name of the value to retrieve.value
- When this method returns, contains the value associated with the specified name, if the name is found; otherwise, null.public final boolean tryGetDoubleValue(String name, CollectionItem.Value<Double>[] value)
Tries to get the double value for the specified name from the collection item.
name
- The name of the value to retrieve.value
- When this method returns, contains the double value associated with the specified name, if the name is found; otherwise, null. This parameter is passed uninitialized.public final boolean tryGetTextValue(String name, CollectionItem.Value<String>[] value)
Tries to get the text value with the specified name from the collection item.
name
- The name of the text value.value
- When this method returns, contains the text value associated with the specified name, if the name is found; otherwise, null.public final boolean tryGetDateTimeValue(String name, CollectionItem.Value<com.aspose.ms.System.DateTime>[] value)
Tries to get the value of type DateTime from the collection item by the specified name.
name
- The name of the value to retrieve.value
- When this method returns, contains the value associated with the specified name, if the name is found; otherwise, null. This parameter is passed uninitialized.Copyright © 2025 Aspose. All Rights Reserved.