Uses of Class
com.postman.collection.Collection
Package
Description
Encapsulates a Postman JSON collection and emulates functionality of the Postman SDK.
-
Uses of Collection in com.postman.collection
Modifier and TypeMethodDescriptionCollectionElement.getCollection()
Traverse the chain of parent elements upwards until a Collection is reached, or null if this element is not part of a collection.static Collection
Collection.pmcFactory()
Static factory method to create the new collection.static Collection
Collection.pmcFactory
(PostmanID id) static Collection
Collection.pmcFactory
(File jsonFile) Static factory method to create a new Collection from a Postman collection JSON file.static Collection
Collection.pmcFactory
(String json) static Collection
Collection.pmcFactory
(URL collectionURL) Create a collection via the Postman APIModifier and TypeMethodDescriptionvoid
Collection.addCollection
(Collection newColl) Add another collection and it's array ofitem
,variable
, andevent
arrays to this collection in a new Folder.void
Collection.addCollection
(Collection newColl, boolean copyScripts, boolean copyVariables) Add another collection and it's array ofitem
, optionallyvariable
, and optionallyevent
arrays to this collection as children of a new Folder child item of this collection.void
Collection.addCollection
(Collection newColl, ItemGroup parent) Add another collection and it's array ofitem
,variable
, andevent
arrays to this collection as children ofparent
void
Collection.addCollection
(Collection newColl, ItemGroup parent, boolean copyScripts, boolean copyVariables) Add another collection and it's array ofitem
, optionallyvariable
, and optionallyevent
arrays to this collection as children of the specified parent. -
Uses of Collection in com.postman.collection.adapter
Modifier and TypeMethodDescriptioncom.google.gson.JsonElement
CollectionSerializer.serialize
(Collection src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)