public interface PackageInfo extends Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addCategoriesAsString(String categoriesString)
Deprecated.
|
void |
addFileToCopy(File file)
Deprecated.
use InstallManager.getPackageInfoFiles
|
void |
checkSignature(byte[] pkgdata)
Deprecated.
do nothing
|
void |
clearFilesToCopy()
Deprecated.
use InstallManager.getPackageInfoFiles
|
File |
downloadFile()
Deprecated.
use InstallManager
|
File |
downloadFile(SimpleTaskStatus taskStatus)
Deprecated.
use InstallManager
|
StringWithAlias |
getAllCodes()
Deprecated.
|
String |
getAntScript()
Deprecated.
use
#getPostInstallScript() |
Version |
getApplicationVersion()
Deprecated.
Returns the supported application version.
|
String |
getArchitecture()
Deprecated.
Returns the supported hardware architecture.
|
int |
getBuild()
Deprecated.
use
getVersion() .getBuild() |
List |
getCategories()
Deprecated.
|
String |
getCategoriesAsString()
Deprecated.
|
String |
getCode()
Deprecated.
|
Dependencies |
getDependencies()
Deprecated.
|
String |
getDescription()
Deprecated.
|
URL |
getDownloadURL()
Deprecated.
Returns the package bundle download
URL . |
URL |
getDownloadURL(URL baseURL)
Deprecated.
use InstallManager
|
String |
getDownloadURLAsString()
Deprecated.
|
List |
getFilesToCopy()
Deprecated.
use InstallManager.getPackageInfoFiles
|
File |
getFileToCopy(int i)
Deprecated.
use InstallManager.getPackageInfoFiles
|
String |
getGvSIGVersion()
Deprecated.
|
String |
getID()
Deprecated.
|
String |
getJavaVM()
Deprecated.
Returns the supported java vm version.
|
String |
getModelVersion()
Deprecated.
Returns the package info model version.
|
String |
getName()
Deprecated.
|
String |
getOperatingSystem()
Deprecated.
Returns the supported operating system.
|
String |
getOperatingSystemFamily()
Deprecated.
|
String |
getOperatingSystemName()
Deprecated.
|
String |
getOperatingSystemVersion()
Deprecated.
|
String |
getOwner()
Deprecated.
|
URL |
getOwnerURL()
Deprecated.
Returns the owner's url
URL . |
URL |
getSourcesURL()
Deprecated.
Returns the package source files url
URL . |
String |
getState()
Deprecated.
|
String |
getType()
Deprecated.
|
Version |
getVersion()
Deprecated.
|
URL |
getWebURL()
Deprecated.
Returns the package web url
URL . |
boolean |
hasThisCode(String code)
Deprecated.
|
boolean |
hasThisCode(StringWithAlias code)
Deprecated.
|
boolean |
isBroken()
Deprecated.
|
boolean |
isOfficial()
Deprecated.
|
boolean |
isSigned()
Deprecated.
always return true
|
boolean |
matchID(String string)
Deprecated.
|
boolean |
removeFilesFolder(File folder)
Deprecated.
use InstallManager.getPackageInfoFiles
|
void |
removeFileToCopy(File file)
Deprecated.
use InstallManager.getPackageInfoFiles
|
boolean |
removeInstallFolder(File folder)
Deprecated.
use InstallManager.getPackageInfoFiles
|
void |
setAntScript(String antScript)
Deprecated.
use
#setPostInstallScript(String) |
void |
setApplicationVersion(Version version)
Deprecated.
Sets the supported application version.
|
void |
setArchitecture(String architecture)
Deprecated.
Sets the supported hardware architecture.
|
void |
setBuild(int build)
Deprecated.
use
getVersion() |
void |
setCategories(List categoriesList)
Deprecated.
|
void |
setCode(String code)
Deprecated.
|
void |
setDependencies(Dependencies dependencies)
Deprecated.
|
void |
setDependencies(String dependencies)
Deprecated.
|
void |
setDescription(String description)
Deprecated.
|
void |
setDownloadURL(String defaultDownloadURL)
Deprecated.
|
void |
setDownloadURL(URL defaultURL)
Deprecated.
Sets the package bundle download
URL . |
void |
setGvSIGVersion(String gvSIGVersion)
Deprecated.
use
#setApplicationVersion(org.gvsig.tools.packageutils.Version) |
void |
setJavaVM(String javaVM)
Deprecated.
Sets the supported java vm version.
|
void |
setModelVersion(String modelVersion)
Deprecated.
Sets the package info model version.
|
void |
setName(String name)
Deprecated.
|
void |
setOfficial(boolean official)
Deprecated.
|
void |
setOperatingSystem(String operatingSystem)
Deprecated.
Sets the supported operating system.
|
void |
setOperatingSystemFamily(String operatingSystemFamily)
Deprecated.
|
void |
setOperatingSystemName(String operatingSystemName)
Deprecated.
|
void |
setOperatingSystemVersion(String operatingSystemVersion)
Deprecated.
|
void |
setOwner(String owner)
Deprecated.
Sets the package owner.
|
void |
setOwnerURL(URL sources)
Deprecated.
Sets the package owner's url.
|
void |
setSourcesURL(URL sources)
Deprecated.
Sets the package sources.
|
void |
setState(String state)
Deprecated.
Sets the state of the package
|
void |
setType(String type)
Deprecated.
|
void |
setVersion(String version)
Deprecated.
|
void |
setVersion(Version version)
Deprecated.
|
void |
setWebURL(URL webURL)
Deprecated.
Sets the package web url
URL . |
String |
toStringCompact()
Deprecated.
|
String getCode()
void setCode(String code)
StringWithAlias getAllCodes()
boolean hasThisCode(String code)
boolean hasThisCode(StringWithAlias code)
String getID()
String getName()
void setName(String name)
String getDescription()
void setDescription(String description)
Version getVersion()
void setVersion(Version version)
String getState()
PackageManager.STATE
void setState(String state)
state
- PackageManager.STATE
boolean isOfficial()
void setOfficial(boolean official)
String getType()
void setType(String type)
String getOperatingSystem()
PackageManager.OS
void setOperatingSystem(String operatingSystem)
operatingSystem
- the supported operating systemPackageManager.OS
String getOperatingSystemFamily()
String getOperatingSystemName()
String getOperatingSystemVersion()
void setOperatingSystemFamily(String operatingSystemFamily)
void setOperatingSystemName(String operatingSystemName)
void setOperatingSystemVersion(String operatingSystemVersion)
String getArchitecture()
PackageManager.ARCH
void setArchitecture(String architecture)
architecture
- the supported hardware architecturePackageManager.ARCH
String getJavaVM()
PackageManager.JVM
void setJavaVM(String javaVM)
javaVM
- the supported java vm versionPackageManager.JVM
Version getApplicationVersion()
void setApplicationVersion(Version version)
verion
- the supported application versionURL getDownloadURL()
URL
.
May be null if there is no remote URL to download the bundle.URL
String getDownloadURLAsString()
void setDownloadURL(URL defaultURL)
URL
. Optional.defaultURL
- the package bundle download URL
void setDownloadURL(String defaultDownloadURL)
String getModelVersion()
void setModelVersion(String modelVersion)
modelVersion
- the package info model versionString getOwner()
void setOwner(String owner)
owner
- the package ownervoid setOwnerURL(URL sources)
sources
- the package owner's urlURL getSourcesURL()
URL
.URL
void setSourcesURL(URL sources)
sources
- the package sourcesURL getWebURL()
URL
.URL
void setWebURL(URL webURL)
URL
.webURL
- the package web url URL
boolean matchID(String string)
string
- Dependencies getDependencies()
void setDependencies(String dependencies)
void setDependencies(Dependencies dependencies)
String toStringCompact()
List getCategories()
void setCategories(List categoriesList)
String getCategoriesAsString()
void addCategoriesAsString(String categoriesString)
boolean isBroken()
void setVersion(String version)
setVersion(Version)
version
- int getBuild()
getVersion()
.getBuild()void setBuild(int build)
getVersion()
String getGvSIGVersion()
getApplicationVersion()
void setGvSIGVersion(String gvSIGVersion)
#setApplicationVersion(org.gvsig.tools.packageutils.Version)
gvSIGVersion
- the supported gvSIG versionURL getDownloadURL(URL baseURL)
URL
.
May be null if there is no remote URL to download the bundle.URL
String getAntScript()
#getPostInstallScript()
void setAntScript(String antScript)
#setPostInstallScript(String)
antScript
- The ant script to copy.File downloadFile() throws BaseException
BaseException
File downloadFile(SimpleTaskStatus taskStatus) throws BaseException
BaseException
void addFileToCopy(File file)
File getFileToCopy(int i)
void removeFileToCopy(File file)
void clearFilesToCopy()
List getFilesToCopy()
boolean removeInstallFolder(File folder)
boolean removeFilesFolder(File folder)
boolean isSigned()
void checkSignature(byte[] pkgdata)