Java Doc for PackInfo.java in  » Installer » IzPack » com » izforge » izpack » compiler » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Installer » IzPack » com.izforge.izpack.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.izforge.izpack.compiler.PackInfo

PackInfo
public class PackInfo (Code)
Temporary holding place for Pack information as the Packager is built. The packager is used by the compiler to collect info about an installer, and finally create the actual installer files.
author:
   Chadwick McHenry


Field Summary
final public static  intBLACK
    
final public static  intGREY
    
final public static  intWHITE
    
public  intcolour
     The color of the node.

Constructor Summary
public  PackInfo(String name, String id, String description, boolean required, boolean loose, String excludegroup, boolean uninstall)
     Constructor with required info.

Method Summary
public  voidaddDependency(String dependency)
    
public  voidaddExecutable(ExecutableFile executable)
     Executables files have their executable flag set, may be executed, and optionally, deleted when finished executing.
public  voidaddFile(File baseDir, File file, String targetfile, List<OsConstraint> osList, int override, Map additionals, String condition)
     Add a file or directory to be installed.
Parameters:
  file - the file or basedir to be installed.
Parameters:
  targetfile - path file will be installed to.
Parameters:
  osList - the target operation system(s) of this pack.
Parameters:
  override - what to do if the file already exists when installing
Parameters:
  condition -
throws:
  FileNotFoundException - if the file specified does not exist.
public  voidaddInstallGroup(String group)
     Add an install group to the pack.
public  voidaddParsable(ParsableFile parsable)
     Parsable files have variables substituted after installation.
public  voidaddUpdateCheck(UpdateCheck updateCheck)
     Executables files have their executable flag set, may be executed, and optionally, deleted when finished executing.
public  StringgetCondition()
    
public  List<String>getDependencies()
    
public  ListgetExecutables()
     List of parsables for this Pack.
public  FilegetFile(PackFile packFile)
     The file described by the specified PackFile.
public  StringgetGroup()
     Get the pack group.
public  Set<String>getInstallGroups()
     Get the install group names.
public  List<OsConstraint>getOsConstraints(List osConstraints)
    
public  PackgetPack()
    
public  SetgetPackFiles()
     Set of PackFile objects for this Pack.
public  StringgetParent()
    
public  ListgetParsables()
     List of parsables for this Pack.
public  ListgetUpdateChecks()
     List of update checks for this Pack.
public  booleanhasInstallGroup(String group)
     See if the pack is associated with the given install group.
public  booleanisPreselected()
    
public  voidsetCondition(String condition)
    
public  voidsetDependencies(List<String> dependencies)
    
public  voidsetExcludeGroup(String group)
     Set the name of the group which contains the packs which exludes mutual.
public  voidsetGroup(String group)
     Set the pack group.
public  voidsetOsConstraints(List<OsConstraint> osConstraints)
    
public  voidsetPackImgId(String packImgId)
    
public  voidsetParent(String p)
    
public  voidsetPreselected(boolean preselected)
    
public  StringtoString()
    

Field Detail
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



colour
public int colour(Code)
The color of the node. This is used for the dependency graph algorithms




Constructor Detail
PackInfo
public PackInfo(String name, String id, String description, boolean required, boolean loose, String excludegroup, boolean uninstall)(Code)
Constructor with required info.
Parameters:
  name - name of the pack
Parameters:
  id - id of the pack e.g. to resolve I18N
Parameters:
  description - descripton in English
Parameters:
  required - pack is required or not
Parameters:
  loose - files of pack should be stored separatly or not
Parameters:
  excludegroup - name of the exclude group
Parameters:
  uninstall - pack must be uninstalled




Method Detail
addDependency
public void addDependency(String dependency)(Code)
The packs that this file depends on



addExecutable
public void addExecutable(ExecutableFile executable)(Code)
Executables files have their executable flag set, may be executed, and optionally, deleted when finished executing.



addFile
public void addFile(File baseDir, File file, String targetfile, List<OsConstraint> osList, int override, Map additionals, String condition) throws FileNotFoundException(Code)
Add a file or directory to be installed.
Parameters:
  file - the file or basedir to be installed.
Parameters:
  targetfile - path file will be installed to.
Parameters:
  osList - the target operation system(s) of this pack.
Parameters:
  override - what to do if the file already exists when installing
Parameters:
  condition -
throws:
  FileNotFoundException - if the file specified does not exist. The file is not readuntil the Packager.createInstaller is invoked, thus a FileNotFoundEception will occurthen, if the file is deleted in between.



addInstallGroup
public void addInstallGroup(String group)(Code)
Add an install group to the pack.
Parameters:
  group - the install group to associate the pack with.



addParsable
public void addParsable(ParsableFile parsable)(Code)
Parsable files have variables substituted after installation.



addUpdateCheck
public void addUpdateCheck(UpdateCheck updateCheck)(Code)
Executables files have their executable flag set, may be executed, and optionally, deleted when finished executing.



getCondition
public String getCondition()(Code)
the condition



getDependencies
public List<String> getDependencies()(Code)



getExecutables
public List getExecutables()(Code)
List of parsables for this Pack.



getFile
public File getFile(PackFile packFile)(Code)
The file described by the specified PackFile. Returns null if the PackFile did not come from the set returned by PackInfo.getPackFiles() .



getGroup
public String getGroup()(Code)
Get the pack group. Get the pack group, null if there is no group.



getInstallGroups
public Set<String> getInstallGroups()(Code)
Get the install group names. Set for the install groups



getOsConstraints
public List<OsConstraint> getOsConstraints(List osConstraints)(Code)



getPack
public Pack getPack()(Code)



getPackFiles
public Set getPackFiles()(Code)
Set of PackFile objects for this Pack.



getParent
public String getParent()(Code)



getParsables
public List getParsables()(Code)
List of parsables for this Pack.



getUpdateChecks
public List getUpdateChecks()(Code)
List of update checks for this Pack.



hasInstallGroup
public boolean hasInstallGroup(String group)(Code)
See if the pack is associated with the given install group.
Parameters:
  group - the install group name to check true if the given group is associated with the pack.



isPreselected
public boolean isPreselected()(Code)



setCondition
public void setCondition(String condition)(Code)

Parameters:
  condition - the condition to set



setDependencies
public void setDependencies(List<String> dependencies)(Code)
Attributes of the Pack



setExcludeGroup
public void setExcludeGroup(String group)(Code)
Set the name of the group which contains the packs which exludes mutual.
Parameters:
  group - name of the mutal exclude group



setGroup
public void setGroup(String group)(Code)
Set the pack group.
Parameters:
  group - the group to associate the pack with.



setOsConstraints
public void setOsConstraints(List<OsConstraint> osConstraints)(Code)



setPackImgId
public void setPackImgId(String packImgId)(Code)



setParent
public void setParent(String p)(Code)



setPreselected
public void setPreselected(boolean preselected)(Code)



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.