Package com.datalogics.PDFL
Class Collection
java.lang.Object
com.datalogics.PDFL.Collection
Allows for manipulation of PDF collections, or portfolios. The class illustrates how to process a collection's schema. It also describes sorting of a portfolio.
-
Method Summary
Modifier and TypeMethodDescriptionvoidSetCollectionView sets view mode value to the Collection.voiddelete()GetSchema allows to obtain Schema object for current Collection.getSort()GetSort gets sort parameters for the Collection.voidsetSort(List<CollectionSortItem> sort) SetSort allows to set field/fields to sort by as well as sort order (ascending or descending).
-
Method Details
-
delete
public void delete() -
getSchema
GetSchema allows to obtain Schema object for current Collection. The Schema object does not have constructor. Only Collection is able to create Schema.- Returns:
- Schema object.
-
changeCollectionViewMode
SetCollectionView sets view mode value to the Collection.- Parameters:
view- one of the members of CollectionViewMode enum.split- enum of split mode (selector)
-
getSort
GetSort gets sort parameters for the Collection.- Returns:
- the list of CollectionSortItem, which contains field/fields name to sort Collection by and sort order.
-
setSort
SetSort allows to set field/fields to sort by as well as sort order (ascending or descending).- Parameters:
sort- the list of CollectionSortItem.
-