public class Manifest
extends java.lang.Object
Manifest
is a list of actions within a package.Modifier and Type | Method and Description |
---|---|
int |
filterByVariants(java.util.Map<java.lang.String,java.lang.String> imageVariants)
Remove all actions that are not selected by the image Variants
Returns # of actions removed
|
Action[] |
findDuplicates()
If this package has a duplicate action, return one such pair.
|
<T extends Action> |
getActionsByType(java.lang.Class<T> actionClass)
Obtain the actions of a given type.
|
java.lang.String |
getAttribute(java.lang.String name)
Returns a package attribute defined by a set action.
|
int |
getPackageSize()
Returns the size of the package.
|
public <T extends Action> java.util.List<T> getActionsByType(java.lang.Class<T> actionClass)
actionClass
- - the desired type of operationpublic Action[] findDuplicates()
Actions are considered duplicates if they are equal based on the Action.equal method, but if they are different. The idea here is to catch broken manifests that are inconsistent within itself.
public int filterByVariants(java.util.Map<java.lang.String,java.lang.String> imageVariants)
public java.lang.String getAttribute(java.lang.String name)
public int getPackageSize()