| java.lang.Object com.izforge.izpack.Pack
Pack | public class Pack implements Serializable(Code) | | Represents a Pack.
author: Julien Ponge |
Constructor Summary | |
public | Pack(String name, String id, String description, List<OsConstraint> osConstraints, List<String> dependencies, boolean required, boolean preselected, boolean loose, String excludegroup, boolean uninstall) The constructor.
Parameters: name - The pack name. Parameters: id - The id of the pack which is used e.g. |
BLACK | final public static int BLACK(Code) | | black colour
|
GREY | final public static int GREY(Code) | | grey colour
|
WHITE | final public static int WHITE(Code) | | white colour
|
color | public int color(Code) | | The color of the node. This is used for the dependency graph algorithms
|
dependencies | public List<String> dependencies(Code) | | The list of packs this pack depends on
|
description | public String description(Code) | | The pack description.
|
excludeGroup | public String excludeGroup(Code) | | All packs in the same excludeGroup are mutually exclusive. The excludeGroup
is a string and serves are key identifying each group of mutually
exclusive packs.
|
group | public String group(Code) | | The group the pack is associated with. The pack group identifies
packs with common functionality to allow for grouping of packs in a
tree in the TargetPanel for example.
|
installGroups | public Set<String> installGroups(Code) | | An association of this pack to zero or more installation groups. An
installation group is just a named collection of packs to allow for
different pack collections to be selected, for example: minimal,
default, all.
|
loose | public boolean loose(Code) | | Flag for store files of this pack outside the installation jar file
|
nbytes | public long nbytes(Code) | | The bumber of bytes contained in the pack.
|
packImgId | public String packImgId(Code) | | The id to use if we want to obtain this pack's image resource
|
parent | public String parent(Code) | | Parent pack name to display it in the TreePacksPanel (optional)
|
preselected | public boolean preselected(Code) | | Whether this pack is suggested (preselected for installation).
|
required | public boolean required(Code) | | True if the pack is required.
|
revDependencies | public List<String> revDependencies(Code) | | Reverse dependencies(childs)
|
serialVersionUID | final static long serialVersionUID(Code) | | |
uninstall | public boolean uninstall(Code) | | If true, all files of the pack will be deleted during uninstallation, if
false they are only removed if uninstaller force delete option is
activated.
|
Pack | public Pack(String name, String id, String description, List<OsConstraint> osConstraints, List<String> dependencies, boolean required, boolean preselected, boolean loose, String excludegroup, boolean uninstall)(Code) | | The constructor.
Parameters: name - The pack name. Parameters: id - The id of the pack which is used e.g. for I18N Parameters: description - The pack description. Parameters: osConstraints - the OS constraint (or null for any OS) Parameters: dependencies - dependencies of this pack Parameters: required - Indicates wether the pack is required or not. Parameters: preselected - This pack will be selected automatically. Parameters: loose - Flag for store files of this pack outside the installation jar file Parameters: excludegroup - associated exclude group Parameters: uninstall - If true, pack must be uninstalled. |
addRevDep | public void addRevDep(String name0)(Code) | | This adds a reverse dependency. With a reverse dependency we imply a child dependency or the
dependents on this pack
Parameters: name0 - The name of the pack that depents to this pack |
depString | public String depString()(Code) | | Creates a text list of all the packs it depend on
the created text |
getCondition | public String getCondition()(Code) | | the condition |
getDependencies | public List<String> getDependencies()(Code) | | getter method for dependencies
the dependencies list |
hasCondition | public boolean hasCondition()(Code) | | |
setCondition | public void setCondition(String condition)(Code) | | Parameters: condition - the condition to set |
toByteUnitsString | public static String toByteUnitsString(long bytes)(Code) | | Convert bytes into appropiate mesaurements.
Parameters: bytes - A number of bytes to convert to a String. The String-converted value. |
toString | public String toString()(Code) | | To a String (usefull for JLists).
The String representation of the pack. |
|
|