public class DefaultPackageInfo extends Object implements PackageInfo
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultPackageInfo.FileDownloadException |
| Constructor and Description |
|---|
DefaultPackageInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategoriesAsString(String categoriesString) |
void |
addFileToCopy(File file) |
void |
checkSignature(byte[] pkgdata) |
void |
clearFilesToCopy() |
Object |
clone()
Creates a copy of the object.
|
File |
downloadFile() |
File |
downloadFile(SimpleTaskStatus taskStatus) |
boolean |
equals(Object obj) |
StringWithAlias |
getAllCodes() |
String |
getAntScript()
Gets the ant script that has to be executed in the installation process.
|
Version |
getApplicationVersion()
Returns the supported application version.
|
String |
getArchitecture()
Returns the supported hardware architecture.
|
int |
getBuild() |
List<String> |
getCategories() |
String |
getCategoriesAsString() |
String |
getCode() |
Dependencies |
getDependencies() |
String |
getDescription() |
URL |
getDownloadURL()
Returns the package bundle download
URL. |
URL |
getDownloadURL(URL baseURL)
Returns the package bundle download
URL. |
String |
getDownloadURLAsString() |
List<File> |
getFilesToCopy() |
File |
getFileToCopy(int i) |
String |
getGvSIGVersion()
Returns the supported gvSIG version.
|
String |
getID() |
String |
getJavaVM()
Returns the supported java vm version.
|
String |
getModelVersion()
Returns the package info model version.
|
String |
getName() |
String |
getOperatingSystem()
Returns the supported operating system.
|
String |
getOperatingSystemFamily() |
String |
getOperatingSystemName() |
String |
getOperatingSystemVersion() |
String |
getOwner() |
URL |
getOwnerURL()
Returns the owner's url
URL. |
String |
getPreferedPackageFileName() |
URL |
getSourcesURL()
Returns the package source files url
URL. |
String |
getState() |
String |
getType() |
Object |
getValue(String name) |
Version |
getVersion() |
URL |
getWebURL()
Returns the package web url
URL. |
boolean |
hasThisCode(String code) |
boolean |
hasThisCode(StringWithAlias code) |
boolean |
isBroken() |
boolean |
isOfficial() |
boolean |
isSigned() |
boolean |
matchID(String string) |
boolean |
removeFilesFolder(File folder) |
void |
removeFileToCopy(File file) |
boolean |
removeInstallFolder(File folder) |
void |
setAntScript(String antScript)
Sets the ant script that can be executed in the installation process.
|
void |
setApplicationVersion(Version version)
Sets the supported application version.
|
void |
setArchitecture(String architecture)
Sets the supported hardware architecture.
|
void |
setBuild(int build) |
void |
setCategories(List categoriesList) |
void |
setCode(String code) |
void |
setDependencies(Dependencies dependencies) |
void |
setDependencies(String dependencies) |
void |
setDescription(String description) |
void |
setDownloadURL(String defaultDownloadURL) |
void |
setDownloadURL(URL defaultDownloadURL)
Sets the package bundle download
URL. |
void |
setGvSIGVersion(String gvSIGVersion)
Sets the supported gvSIG version.
|
void |
setJavaVM(String javaVM)
Sets the supported java vm version.
|
void |
setModelVersion(String modelVersion)
Sets the package info model version.
|
void |
setName(String name) |
void |
setOfficial(boolean official) |
void |
setOperatingSystem(String operatingSystem)
Sets the supported operating system.
|
void |
setOperatingSystemFamily(String operatingSystemFamily) |
void |
setOperatingSystemName(String operatingSystemName) |
void |
setOperatingSystemVersion(String operatingSystemVersion) |
void |
setOwner(String owner)
Sets the package owner.
|
void |
setOwnerURL(URL sources)
Sets the package owner's url.
|
void |
setSourcesURL(URL sources)
Sets the package sources.
|
void |
setState(String state)
Sets the state of the package
|
void |
setType(String type) |
void |
setValue(String name,
Object value) |
void |
setVersion(String version) |
void |
setVersion(Version version) |
void |
setWebURL(URL webURL)
Sets the package web url
URL. |
String |
toString() |
String |
toStringCompact() |
public String getCode()
getCode in interface PackageInfopublic StringWithAlias getAllCodes()
getAllCodes in interface PackageInfopublic boolean hasThisCode(String code)
hasThisCode in interface PackageInfopublic boolean hasThisCode(StringWithAlias code)
hasThisCode in interface PackageInfopublic String getID()
getID in interface PackageInfopublic String getName()
getName in interface PackageInfopublic String getDescription()
getDescription in interface PackageInfopublic Version getVersion()
getVersion in interface PackageInfopublic int getBuild()
getBuild in interface PackageInfopublic String getState()
getState in interface PackageInfoPackageManager.STATEpublic boolean isOfficial()
isOfficial in interface PackageInfopublic void setCode(String code)
setCode in interface PackageInfopublic void setName(String name)
setName in interface PackageInfopublic void setDescription(String description)
setDescription in interface PackageInfopublic void setVersion(String version)
setVersion in interface PackageInfopublic void setVersion(Version version)
setVersion in interface PackageInfopublic void setBuild(int build)
setBuild in interface PackageInfopublic void setState(String state)
PackageInfosetState in interface PackageInfoPackageManager.STATEpublic void setOfficial(boolean official)
setOfficial in interface PackageInfopublic String getOperatingSystem()
PackageInfogetOperatingSystem in interface PackageInfoPackageManager.OSpublic void setOperatingSystem(String operatingSystem)
PackageInfosetOperatingSystem in interface PackageInfooperatingSystem - the supported operating systemPackageManager.OSpublic String getOperatingSystemFamily()
getOperatingSystemFamily in interface PackageInfopublic String getOperatingSystemName()
getOperatingSystemName in interface PackageInfopublic String getOperatingSystemVersion()
getOperatingSystemVersion in interface PackageInfopublic void setOperatingSystemFamily(String operatingSystemFamily)
setOperatingSystemFamily in interface PackageInfopublic void setOperatingSystemName(String operatingSystemName)
setOperatingSystemName in interface PackageInfopublic void setOperatingSystemVersion(String operatingSystemVersion)
setOperatingSystemVersion in interface PackageInfopublic String getArchitecture()
PackageInfogetArchitecture in interface PackageInfoPackageManager.ARCHpublic void setArchitecture(String architecture)
PackageInfosetArchitecture in interface PackageInfoarchitecture - the supported hardware architecturePackageManager.ARCHpublic String getJavaVM()
PackageInfogetJavaVM in interface PackageInfoPackageManager.JVMpublic void setJavaVM(String javaVM)
PackageInfosetJavaVM in interface PackageInfojavaVM - the supported java vm versionPackageManager.JVMpublic String getAntScript()
PackageInfogetAntScript in interface PackageInfopublic void setAntScript(String antScript)
PackageInfosetAntScript in interface PackageInfoantScript - The ant script to copy.public String getType()
getType in interface PackageInfopublic void setType(String type)
setType in interface PackageInfopublic String getGvSIGVersion()
PackageInfogetGvSIGVersion in interface PackageInfopublic void setGvSIGVersion(String gvSIGVersion)
PackageInfosetGvSIGVersion in interface PackageInfogvSIGVersion - the supported gvSIG versionpublic URL getDownloadURL()
PackageInfoURL.
May be null if there is no remote URL to download the bundle.getDownloadURL in interface PackageInfoURLpublic URL getDownloadURL(URL baseURL)
PackageInfoURL.
May be null if there is no remote URL to download the bundle.getDownloadURL in interface PackageInfoURLpublic String getDownloadURLAsString()
getDownloadURLAsString in interface PackageInfopublic void setDownloadURL(URL defaultDownloadURL)
PackageInfoURL. Optional.setDownloadURL in interface PackageInfodefaultDownloadURL - the package bundle download URLpublic void setDownloadURL(String defaultDownloadURL)
setDownloadURL in interface PackageInfopublic String getModelVersion()
PackageInfogetModelVersion in interface PackageInfopublic void setModelVersion(String modelVersion)
PackageInfosetModelVersion in interface PackageInfomodelVersion - the package info model versionpublic String getOwner()
getOwner in interface PackageInfopublic void setOwner(String owner)
PackageInfosetOwner in interface PackageInfoowner - the package ownerpublic URL getOwnerURL()
PackageInfoURL.getOwnerURL in interface PackageInfoURLpublic void setOwnerURL(URL sources)
PackageInfosetOwnerURL in interface PackageInfosources - the package owner's urlpublic URL getSourcesURL()
PackageInfoURL.getSourcesURL in interface PackageInfoURLpublic void setSourcesURL(URL sources)
PackageInfosetSourcesURL in interface PackageInfosources - the package sourcespublic String toStringCompact()
toStringCompact in interface PackageInfopublic Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.public File downloadFile() throws InstallPackageServiceException
downloadFile in interface PackageInfoInstallPackageServiceExceptionpublic File downloadFile(SimpleTaskStatus taskStatus) throws InstallPackageServiceException
downloadFile in interface PackageInfoInstallPackageServiceExceptionpublic void addFileToCopy(File file)
addFileToCopy in interface PackageInfopublic File getFileToCopy(int i)
getFileToCopy in interface PackageInfopublic void removeFileToCopy(File file)
removeFileToCopy in interface PackageInfopublic void clearFilesToCopy()
clearFilesToCopy in interface PackageInfopublic List<File> getFilesToCopy()
getFilesToCopy in interface PackageInfopublic boolean removeInstallFolder(File folder)
removeInstallFolder in interface PackageInfopublic boolean removeFilesFolder(File folder)
removeFilesFolder in interface PackageInfopublic boolean matchID(String string)
matchID in interface PackageInfopublic Dependencies getDependencies()
getDependencies in interface PackageInfopublic void setDependencies(Dependencies dependencies)
setDependencies in interface PackageInfopublic void setDependencies(String dependencies)
setDependencies in interface PackageInfopublic URL getWebURL()
PackageInfoURL.getWebURL in interface PackageInfoURLpublic void setWebURL(URL webURL)
PackageInfoURL.setWebURL in interface PackageInfowebURL - the package web url URLpublic List<String> getCategories()
getCategories in interface PackageInfopublic void setCategories(List categoriesList)
setCategories in interface PackageInfopublic String getCategoriesAsString()
getCategoriesAsString in interface PackageInfopublic void addCategoriesAsString(String categoriesString)
addCategoriesAsString in interface PackageInfopublic void checkSignature(byte[] pkgdata)
checkSignature in interface PackageInfopublic boolean isBroken()
isBroken in interface PackageInfopublic boolean isSigned()
isSigned in interface PackageInfopublic Version getApplicationVersion()
PackageInfogetApplicationVersion in interface PackageInfopublic void setApplicationVersion(Version version)
PackageInfosetApplicationVersion in interface PackageInfopublic String getPreferedPackageFileName()