BaselineCollection
Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList
All Implemented Interfaces: com.aspose.tasks.IBaselineCollection
public class BaselineCollection extends AbstractList<Baseline> implements IBaselineCollection
Represents a collection of Baseline objects.
Methods
| Method | Description |
|---|---|
| add(Baseline item) | This is the stub implementation of ICollection’s Add method, that only throws NotSupportedException |
| get(int index) | Returns the baseline at the specified position. |
| getBaselineByType(int baselineType) | Gets the resource baseline with the specified type. |
| getByType(int baselineType) | Gets the resource baseline with the specified type. |
| getParentResource() | Gets the parent Resource for this collection. |
| remove(int index) | Removes the element at the specified position in this list. |
| remove(Object item) | Removes baseline from this collection. |
| size() | Gets the number of objects contained in this BaselineCollection object. |
| toList() | Converts the BaselineCollection object to a list of Baseline objects. |
add(Baseline item)
public final boolean add(Baseline item)
This is the stub implementation of ICollection’s Add method, that only throws NotSupportedException
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | Baseline | The item to remove. |
Returns: boolean - {@inheritDoc}
get(int index)
public Baseline get(int index)
Returns the baseline at the specified position.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | index of the element to return. |
Returns: Baseline - the baseline at the specified position.
getBaselineByType(int baselineType)
public final Baseline getBaselineByType(int baselineType)
Gets the resource baseline with the specified type.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| baselineType | int | the specified baseline type. |
Returns:
Baseline - the resource baseline with the specified type, or null if no matching baseline is found.
getByType(int baselineType)
public final Baseline getByType(int baselineType)
Gets the resource baseline with the specified type.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| baselineType | int | the specified baseline type. |
Returns:
Baseline - the resource baseline with the specified type, or null if no matching baseline is found.
getParentResource()
public final Resource getParentResource()
Gets the parent Resource for this collection.
Returns: Resource - the parent Resource for this collection.
remove(int index)
public Baseline remove(int index)
Removes the element at the specified position in this list.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | {@inheritDoc} |
Returns: Baseline - {@inheritDoc}
remove(Object item)
public final boolean remove(Object item)
Removes baseline from this collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | java.lang.Object | Baseline instance to remove. |
Returns: boolean - true if Baseline instance has been removed successfully; otherwise, false
size()
public final int size()
Gets the number of objects contained in this BaselineCollection object.
Returns: int - the number of objects contained in this BaselineCollection object.
toList()
public final List<Baseline> toList()
Converts the BaselineCollection object to a list of Baseline objects.
Returns: java.util.List<com.aspose.tasks.Baseline> - List of Baseline objects.