public class AddOnCollection extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AddOnCollection.Platform |
Constructor and Description |
---|
AddOnCollection(File[] dirs) |
AddOnCollection(ZapXmlConfiguration config,
AddOnCollection.Platform platform) |
AddOnCollection(ZapXmlConfiguration config,
AddOnCollection.Platform platform,
boolean allowAddOnsWithDependencyIssues) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAddOn(AddOn ao) |
AddOn |
getAddOn(String id) |
List<AddOn> |
getAddOns()
Gets all add-ons of this add-on collection.
|
List<AddOn> |
getInstalledAddOns()
Gets all installed add-ons of this add-on collection, that is, the add-ons whose installation
status is
INSTALLED . |
List<AddOn> |
getNewAddOns(AddOnCollection aoc)
Returns a list of addons from the supplied collection that are newer than the equivalent ones
in this collection
|
List<AddOn> |
getUpdatedAddOns(AddOnCollection aoc)
Returns a list of addons from the supplied collection that are newer than the equivalent ones
in this collection
|
ZapRelease |
getZapRelease() |
boolean |
includesAddOn(String id) |
boolean |
removeAddOn(AddOn ao) |
public AddOnCollection(ZapXmlConfiguration config, AddOnCollection.Platform platform)
public AddOnCollection(ZapXmlConfiguration config, AddOnCollection.Platform platform, boolean allowAddOnsWithDependencyIssues)
public AddOnCollection(File[] dirs)
public List<AddOn> getAddOns()
List
with all add-ons of the collectiongetInstalledAddOns()
public List<AddOn> getInstalledAddOns()
INSTALLED
.List
with all installed add-ons of the collectiongetAddOns()
,
AddOn.InstallationStatus.INSTALLED
public List<AddOn> getUpdatedAddOns(AddOnCollection aoc)
aoc
- the collection to compare withpublic List<AddOn> getNewAddOns(AddOnCollection aoc)
aoc
- the collection to compare withpublic ZapRelease getZapRelease()
public boolean includesAddOn(String id)
public boolean addAddOn(AddOn ao)
public boolean removeAddOn(AddOn ao)