public class PackInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BLACK
black colour
|
int |
colour
The color of the node.
|
private java.util.List |
executables
Executable files in this Pack.
|
private java.util.Map |
files
Files of the Pack.
|
static int |
GREY
grey colour
|
private Pack |
pack
The pack object serialized in the installer.
|
private java.util.List |
parsables
Parsables files in this Pack.
|
private java.util.List |
updateChecks
Update check specifications in this Pack.
|
static int |
WHITE
white colour
|
Modifier | Constructor and Description |
---|---|
protected |
PackInfo(java.lang.String name,
java.lang.String id,
java.lang.String description,
boolean required,
boolean loose)
Constructor with required info.
|
Modifier and Type | Method and Description |
---|---|
void |
addDependency(java.lang.String dependency)
The packs that this file depends on
|
void |
addExecutable(ExecutableFile executable)
Executables files have their executable flag set, may be executed, and optionally, deleted
when finished executing.
|
void |
addFile(java.io.File file,
java.lang.String targetfile,
java.util.List osList,
int override,
java.util.Map additionals)
Add a file or directory to be installed.
|
void |
addInstallGroup(java.lang.String group)
Add an install group to the pack.
|
void |
addParsable(ParsableFile parsable)
Parsable files have variables substituted after installation.
|
void |
addUpdateCheck(UpdateCheck updateCheck)
Executables files have their executable flag set, may be executed, and optionally, deleted
when finished executing.
|
java.util.List |
getDependencies() |
java.util.List |
getExecutables()
List of parsables for this Pack.
|
java.io.File |
getFile(PackFile packFile)
The file described by the specified PackFile.
|
java.lang.String |
getGroup()
Get the pack group.
|
java.util.Set |
getInstallGroups()
Get the install group names.
|
java.util.List |
getOsConstraints(java.util.List osConstraints) |
Pack |
getPack() |
java.util.Set |
getPackFiles()
Set of PackFile objects for this Pack.
|
java.util.List |
getParsables()
List of parsables for this Pack.
|
java.util.List |
getUpdateChecks()
List of update checks for this Pack.
|
boolean |
hasInstallGroup(java.lang.String group)
See if the pack is associated with the given install group.
|
boolean |
isPreselected() |
void |
setDependencies(java.util.List dependencies)
Attributes of the Pack
|
void |
setGroup(java.lang.String group)
Set the pack group.
|
void |
setOsConstraints(java.util.List osConstraints) |
void |
setPreselected(boolean preselected) |
java.lang.String |
toString() |
private Pack pack
public int colour
public static final int WHITE
public static final int GREY
public static final int BLACK
private java.util.Map files
private java.util.List parsables
private java.util.List executables
private java.util.List updateChecks
protected PackInfo(java.lang.String name, java.lang.String id, java.lang.String description, boolean required, boolean loose)
public void setDependencies(java.util.List dependencies)
public void setOsConstraints(java.util.List osConstraints)
public java.util.List getOsConstraints(java.util.List osConstraints)
public void setPreselected(boolean preselected)
public boolean isPreselected()
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
group
- the group to associate the pack with.public void addInstallGroup(java.lang.String group)
group
- the install group to associate the pack with.public boolean hasInstallGroup(java.lang.String group)
group
- the install group name to checkpublic java.util.Set getInstallGroups()
public Pack getPack()
public void addFile(java.io.File file, java.lang.String targetfile, java.util.List osList, int override, java.util.Map additionals) throws java.io.FileNotFoundException
file
- the file or basedir to be installed.targetfile
- path file will be installed to.osList
- the target operation system(s) of this pack.override
- what to do if the file already exists when installingjava.io.FileNotFoundException
- if the file specified does not exist. The file is not read
until the Packager.createInstaller(java.io.File)
is invoked, thus a FileNotFoundEception will occur
then, if the file is deleted in between.public java.util.Set getPackFiles()
public java.io.File getFile(PackFile packFile)
getPackFiles()
.public void addParsable(ParsableFile parsable)
public java.util.List getParsables()
public void addExecutable(ExecutableFile executable)
public java.util.List getExecutables()
public void addUpdateCheck(UpdateCheck updateCheck)
public java.util.List getUpdateChecks()
public void addDependency(java.lang.String dependency)
public java.util.List getDependencies()
public java.lang.String toString()
toString
in class java.lang.Object