public class ProductList extends ListPackManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
Product |
createProduct(java.lang.String uid,
java.lang.String name)
Add a new product to this list.
|
Product |
getProduct(java.lang.String uid)
Returns the product instance for the given product UID.
|
java.util.List |
getProducts()
Returns all
Product instances of this list. |
java.util.List |
getProductUIDs()
Returns a list of
String instances representing the UIDs of the contained products. |
void |
removeProduct(Product product)
Removes the specified product from this list.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public Product createProduct(java.lang.String uid, java.lang.String name)
uid
- the UID of the productname
- the display name of the productpublic void removeProduct(Product product)
product
- the product to removepublic java.util.List getProductUIDs()
String
instances representing the UIDs of the contained products.String
of product UIDspublic java.util.List getProducts()
Product
instances of this list.Product
instanceswww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.