public class PackInfo extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
PackColor |
colour
The color of the node.
|
| Constructor and Description |
|---|
PackInfo(String name,
String id,
String description,
boolean required,
boolean loose,
String excludegroup,
boolean uninstall,
long size)
Constructor with required info.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(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(File baseDir,
File file,
String targetfile,
List<OsModel> osList,
OverrideType override,
String overrideRenameTo,
Blockable blockable,
Map additionals,
String condition,
Map<String,String> pack200Properties)
Add a file or directory to be installed.
|
void |
addInstallGroup(String group)
Add an install group to the pack.
|
void |
addOnDeselect(String name,
String condition)
Determines what packs to be selected or deselected when this pack is deselected.
|
void |
addOnSelect(String name,
String condition)
Determines what packs to be selected or deselected when this pack is selected.
|
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.
|
void |
addValidator(String validatorClassName) |
List<String> |
getDependencies() |
List<ExecutableFile> |
getExecutables()
List of parsables for this Pack.
|
File |
getFile(PackFile packFile)
The file described by the specified PackFile.
|
Pack |
getPack() |
Set<PackFile> |
getPackFiles()
Set of PackFile objects for this Pack.
|
Map<PackFile,File> |
getPackFilesMap()
Provides the complete ordered map of PackFile -> File objects for being able to override entries.
|
List<ParsableFile> |
getParsables()
List of parsables for this Pack.
|
List<UpdateCheck> |
getUpdateChecks()
List of update checks for this Pack.
|
void |
setCondition(String condition) |
void |
setGroup(String group)
Set the pack group.
|
void |
setHidden(boolean hidden) |
void |
setOsConstraints(List<OsModel> osConstraints) |
void |
setPackImgId(String packImgId) |
void |
setParent(String p) |
void |
setPreselected(boolean preselected) |
String |
toString() |
public transient PackColor colour
public PackInfo(String name, String id, String description, boolean required, boolean loose, String excludegroup, boolean uninstall, long size)
name - name of the packid - id of the pack e.g. to resolve I18Ndescription - description in Englishrequired - pack is required or notloose - files of pack should be stored separately or notexcludegroup - name of the exclude groupuninstall - pack must be uninstalledsize - the size of the pack, in bytespublic void setPreselected(boolean preselected)
public void setGroup(String group)
group - the group to associate the pack with.public void addInstallGroup(String group)
group - the install group to associate the pack with.public Pack getPack()
public void setHidden(boolean hidden)
public void addFile(File baseDir, File file, String targetfile, List<OsModel> osList, OverrideType override, String overrideRenameTo, Blockable blockable, Map additionals, String condition, Map<String,String> pack200Properties) throws IOException
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 installingcondition - the condition to decide whether the file should be extractedFileNotFoundException - if the file specified does not exist.IOExceptionpublic Map<PackFile,File> getPackFilesMap()
public File getFile(PackFile packFile)
getPackFiles().public void addParsable(ParsableFile parsable)
public List<ParsableFile> getParsables()
public void addExecutable(ExecutableFile executable)
public List<ExecutableFile> getExecutables()
public void addUpdateCheck(UpdateCheck updateCheck)
public List<UpdateCheck> getUpdateChecks()
public void addDependency(String dependency)
public void setParent(String p)
public void setPackImgId(String packImgId)
public void setCondition(String condition)
condition - the condition to setpublic void addValidator(String validatorClassName)
public void addOnSelect(String name, String condition)
name - name of a pack to be selected/deselectedcondition - select/deselect a pack when this pack is selected and condition is satisfied or nullpublic void addOnDeselect(String name, String condition)
name - name of a pack to be selected/deselectedcondition - select/deselect a pack when this pack is deselected and condition is satisfied or nullCopyright © 2001–2025. All rights reserved.