|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threerings.jpkg.debian.PackageInfo
public class PackageInfo
Stores meta information needed to create a new Debian package.
Field Summary | |
---|---|
static PackagePriority |
DEFAULT_PRIORITY
The default package priority. |
static PackageSection |
DEFAULT_SECTION
The default package section. |
Constructor Summary | |
---|---|
PackageInfo(PackageName name,
PackageVersion version,
PackageArchitecture architecture,
PackageMaintainer maintainer,
PackageDescription description)
Construct a PackageInfo object with the supplied data. |
|
PackageInfo(PackageName name,
PackageVersion version,
PackageArchitecture architecture,
PackageMaintainer maintainer,
PackageDescription description,
PackageSection section,
PackagePriority priority)
Construct a fully populated PackageInfo with all required fields. |
Method Summary | |
---|---|
void |
addConflict(PackageConflict conflict)
Add a package conflict for this package. |
void |
addDependency(PackageDependency dependency)
Add a package dependency for this package. |
void |
addDependencyAlternative(DependencyAlternatives alternative)
Add a dependency alternative for this package. |
void |
addPathPermissions(String path,
PathPermissions permissions)
Add a PathPermissions object associated with a given path. |
void |
addReplacement(PackageReplacement replacement)
Add a package replacement for this package. |
InternetHeaders |
getControlHeaders()
Add the defined package data to an RFC822 formatted header formatted for a Debian package control file. |
Map<MaintainerScript.Type,MaintainerScript> |
getMaintainerScripts()
Returns the MaintainerScripts defined for this package. |
PermissionsMap |
getPermissionsMap()
Return the PermissionsMap modifying the package referred to by this PackageInfo. |
void |
setMaintainerScript(MaintainerScript script)
Sets a maintainer script for this package, replacing any existing script for that type. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PackageSection DEFAULT_SECTION
public static final PackagePriority DEFAULT_PRIORITY
Constructor Detail |
---|
public PackageInfo(PackageName name, PackageVersion version, PackageArchitecture architecture, PackageMaintainer maintainer, PackageDescription description)
PackageInfo
object with the supplied data.
Default values will be set for the package section and priority.
DEFAULT_SECTION
,
DEFAULT_PRIORITY
public PackageInfo(PackageName name, PackageVersion version, PackageArchitecture architecture, PackageMaintainer maintainer, PackageDescription description, PackageSection section, PackagePriority priority)
PackageInfo
with all required fields.
Method Detail |
---|
public void addPathPermissions(String path, PathPermissions permissions)
PathPermissions
object associated with a given path.
InvalidPathException
- If the supplied path is invalid.PermissionsMap.addPathPermissions(String, PathPermissions)
public void addDependency(PackageDependency dependency)
public void addDependencyAlternative(DependencyAlternatives alternative)
public void addConflict(PackageConflict conflict)
public void addReplacement(PackageReplacement replacement)
public InternetHeaders getControlHeaders()
public PermissionsMap getPermissionsMap()
public void setMaintainerScript(MaintainerScript script)
public Map<MaintainerScript.Type,MaintainerScript> getMaintainerScripts()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |