|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.pkg.client.Manifest
public class Manifest
A Manifest
is a list of actions within a package.
Constructor Summary | |
---|---|
Manifest(Image img,
Fmri pi)
|
Method Summary | ||
---|---|---|
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. |
|
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Manifest(Image img, Fmri pi) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public <T extends Action> java.util.List<T> getActionsByType(java.lang.Class<T> actionClass)
actionClass
- - the desired type of operation
public 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()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |