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