Modifier and Type | Method and Description |
---|---|
Resource |
add()
Adds new resource at the last position of a project resources collection.
|
Resource |
add(String resourceName)
Adds new resource at the last position of a project resources collection.
|
Resource |
add(String resourceName,
int beforeResourceId)
Adds new resource at the specified position of a project resources collection.
|
Resource |
getById(int id)
Returns a resource with the specified id.
|
Resource |
getByUid(int uid)
Returns a resource with the specified Uid.
|
int |
getCount()
Gets the number of elements contained in the ResourceCollection.
|
Project |
getParentProject()
Gets the parent project of the ResourceCollection object.
|
Iterator<Resource> |
iterator() |
List<Resource> |
toList()
Converts the ResourceCollection object to a list of
Resource objects. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int getCount()
Gets the number of elements contained in the ResourceCollection.
Read-only int
.
public Project getParentProject()
Gets the parent project of the ResourceCollection object.
public Resource add()
Adds new resource at the last position of a project resources collection.
public Resource add(String resourceName)
Adds new resource at the last position of a project resources collection.
resourceName
- Name of a resource.public Resource add(String resourceName, int beforeResourceId)
Adds new resource at the specified position of a project resources collection.
resourceName
- Name of a resource.beforeResourceId
- Position of a resource in a project resources collection.public List<Resource> toList()
Converts the ResourceCollection object to a list of Resource
objects.
Resource
objects.public Resource getById(int id)
Returns a resource with the specified id.
id
- The specified id.
O(1) complexity operation.
public Resource getByUid(int uid)
Returns a resource with the specified Uid.
uid
- The specified uid.
O(1) complexity operation.
Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.