Java Doc for Pack.java in  » Installer » IzPack » com » izforge » izpack » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.izforge.izpack.Pack

Pack
public class Pack implements Serializable(Code)
Represents a Pack.
author:
   Julien Ponge


Field Summary
final public static  intBLACK
    
final public static  intGREY
    
final public static  intWHITE
    
public  intcolor
     The color of the node.
public  List<String>dependencies
    
public  Stringdescription
     The pack description.
public  StringexcludeGroup
     All packs in the same excludeGroup are mutually exclusive.
public  Stringgroup
     The group the pack is associated with.
public  Stringid
    
public  Set<String>installGroups
     An association of this pack to zero or more installation groups.
public  booleanloose
    
public  Stringname
     The pack name.
public  longnbytes
     The bumber of bytes contained in the pack.
public  List<OsConstraint>osConstraints
    
public  StringpackImgId
    
public  Stringparent
    
public  booleanpreselected
     Whether this pack is suggested (preselected for installation).
public  booleanrequired
     True if the pack is required.
public  List<String>revDependencies
    
final static  longserialVersionUID
    
public  booleanuninstall
     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.

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.

Method Summary
public  voidaddRevDep(String name0)
     This adds a reverse dependency.
public  StringdepString()
    
public  StringgetCondition()
    
public  List<String>getDependencies()
    
public  booleanhasCondition()
    
public  voidsetCondition(String condition)
    
public static  StringtoByteUnitsString(long bytes)
     Convert bytes into appropiate mesaurements.
Parameters:
  bytes - A number of bytes to convert to a String.
public  StringtoString()
     To a String (usefull for JLists).

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



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.



id
public String id(Code)
The langpack id



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



name
public String name(Code)
The pack name.



nbytes
public long nbytes(Code)
The bumber of bytes contained in the pack.



osConstraints
public List<OsConstraint> osConstraints(Code)
The target operation system of this 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.




Constructor Detail
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.




Method Detail
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.



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.