public class DefaultPackageInfo extends java.lang.Object implements PackageInfo
| Modifier and Type | Class and Description |
|---|---|
static interface |
DefaultPackageInfo.PACKAGE_FILE_NAME_FIELDS |
| Constructor and Description |
|---|
DefaultPackageInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategoriesAsString(java.lang.String categoriesString) |
void |
addFileToCopy(java.io.File file) |
void |
checkSignature(byte[] pkgdata) |
void |
clearFilesToCopy() |
java.lang.Object |
clone()
Creates a copy of the object.
|
java.io.File |
downloadFile() |
java.io.File |
downloadFile(SimpleTaskStatus taskStatus) |
boolean |
equals(java.lang.Object obj) |
StringWithAlias |
getAllCodes() |
java.lang.String |
getAntScript()
Gets the ant script that has to be executed in the installation process.
|
Version |
getApplicationVersion()
Returns the supported application version.
|
java.lang.String |
getArchitecture()
Returns the supported hardware architecture.
|
int |
getBuild() |
java.util.List |
getCategories() |
java.lang.String |
getCategoriesAsString() |
java.lang.String |
getCode() |
Dependencies |
getDependencies() |
java.lang.String |
getDescription() |
java.net.URL |
getDownloadURL()
Returns the package bundle download
URL. |
java.net.URL |
getDownloadURL(java.net.URL baseURL)
Returns the package bundle download
URL. |
java.lang.String |
getDownloadURLAsString() |
java.util.List |
getFilesToCopy() |
java.io.File |
getFileToCopy(int i) |
java.lang.String |
getGvSIGVersion()
Returns the supported gvSIG version.
|
java.lang.String |
getID() |
java.lang.String |
getJavaVM()
Returns the supported java vm version.
|
java.lang.String |
getModelVersion()
Returns the package info model version.
|
java.lang.String |
getName() |
java.lang.String |
getOperatingSystem()
Returns the supported operating system.
|
java.lang.String |
getOperatingSystemFamily() |
java.lang.String |
getOperatingSystemName() |
java.lang.String |
getOperatingSystemVersion() |
java.lang.String |
getOwner() |
java.net.URL |
getOwnerURL()
Returns the owner's url
URL. |
java.lang.String |
getPostInstallScript() |
java.lang.String |
getPreferedPackageFileName() |
java.net.URL |
getSourcesURL()
Returns the package source files url
URL. |
java.lang.String |
getState() |
java.lang.String |
getType() |
java.lang.Object |
getValue(java.lang.String name) |
Version |
getVersion() |
java.net.URL |
getWebURL()
Returns the package web url
URL. |
boolean |
hasThisCode(java.lang.String code) |
boolean |
hasThisCode(StringWithAlias code) |
boolean |
isBroken() |
boolean |
isOfficial() |
boolean |
isSigned() |
boolean |
matchID(java.lang.String string) |
boolean |
removeFilesFolder(java.io.File folder) |
void |
removeFileToCopy(java.io.File file) |
boolean |
removeInstallFolder(java.io.File folder) |
void |
setAntScript(java.lang.String antScript)
Sets the ant script that can be executed in the installation process.
|
void |
setApplicationVersion(Version applicationVersion)
Sets the supported application version.
|
void |
setArchitecture(java.lang.String architecture)
Sets the supported hardware architecture.
|
protected void |
setBroken(boolean broken) |
void |
setBuild(int build) |
void |
setCategories(java.util.List categoriesList) |
void |
setCode(java.lang.String code) |
void |
setDependencies(Dependencies dependencies) |
void |
setDependencies(java.lang.String dependencies) |
void |
setDescription(java.lang.String description) |
void |
setDownloadURL(java.lang.String defaultDownloadURL) |
void |
setDownloadURL(java.net.URL defaultDownloadURL)
Sets the package bundle download
URL. |
void |
setGvSIGVersion(java.lang.String gvSIGVersion)
Sets the supported gvSIG version.
|
void |
setJavaVM(java.lang.String javaVM)
Sets the supported java vm version.
|
void |
setModelVersion(java.lang.String modelVersion)
Sets the package info model version.
|
void |
setName(java.lang.String name) |
void |
setOfficial(boolean official) |
void |
setOperatingSystem(java.lang.String operatingSystem)
Sets the supported operating system.
|
void |
setOperatingSystemFamily(java.lang.String operatingSystemFamily) |
void |
setOperatingSystemName(java.lang.String operatingSystemName) |
void |
setOperatingSystemVersion(java.lang.String operatingSystemVersion) |
void |
setOwner(java.lang.String owner)
Sets the package owner.
|
void |
setOwnerURL(java.net.URL sources)
Sets the package owner's url.
|
void |
setPostInstallScript(java.lang.String script) |
void |
setSourcesURL(java.net.URL sources)
Sets the package sources.
|
void |
setState(java.lang.String state)
Sets the state of the package
|
void |
setType(java.lang.String type) |
void |
setValue(java.lang.String name,
java.lang.Object value) |
void |
setVersion(java.lang.String version) |
void |
setVersion(Version version) |
void |
setWebURL(java.net.URL webURL)
Sets the package web url
URL. |
java.lang.String |
toString() |
java.lang.String |
toStringCompact() |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloneQuietly, cloneQuietlypublic java.lang.String getCode()
getCode in interface PackageInfopublic StringWithAlias getAllCodes()
getAllCodes in interface PackageInfopublic boolean hasThisCode(java.lang.String code)
hasThisCode in interface PackageInfopublic boolean hasThisCode(StringWithAlias code)
hasThisCode in interface PackageInfopublic java.lang.String getID()
getID in interface PackageInfopublic java.lang.String getName()
getName in interface PackageInfopublic java.lang.String getDescription()
getDescription in interface PackageInfopublic Version getVersion()
getVersion in interface PackageInfopublic java.lang.String getState()
getState in interface PackageInfoSTATEpublic boolean isOfficial()
isOfficial in interface PackageInfopublic void setCode(java.lang.String code)
setCode in interface PackageInfopublic void setName(java.lang.String name)
setName in interface PackageInfopublic void setDescription(java.lang.String description)
setDescription in interface PackageInfopublic void setVersion(Version version)
setVersion in interface PackageInfopublic void setState(java.lang.String state)
PackageInfosetState in interface PackageInfoSTATEpublic void setOfficial(boolean official)
setOfficial in interface PackageInfopublic java.lang.String getOperatingSystem()
PackageInfogetOperatingSystem in interface PackageInfoOSpublic void setOperatingSystem(java.lang.String operatingSystem)
PackageInfosetOperatingSystem in interface PackageInfooperatingSystem - the supported operating systemOSpublic java.lang.String getOperatingSystemFamily()
getOperatingSystemFamily in interface PackageInfopublic java.lang.String getOperatingSystemName()
getOperatingSystemName in interface PackageInfopublic java.lang.String getOperatingSystemVersion()
getOperatingSystemVersion in interface PackageInfopublic void setOperatingSystemFamily(java.lang.String operatingSystemFamily)
setOperatingSystemFamily in interface PackageInfopublic void setOperatingSystemName(java.lang.String operatingSystemName)
setOperatingSystemName in interface PackageInfopublic void setOperatingSystemVersion(java.lang.String operatingSystemVersion)
setOperatingSystemVersion in interface PackageInfopublic java.lang.String getArchitecture()
PackageInfogetArchitecture in interface PackageInfoARCHpublic void setArchitecture(java.lang.String architecture)
PackageInfosetArchitecture in interface PackageInfoarchitecture - the supported hardware architectureARCHpublic java.lang.String getJavaVM()
PackageInfogetJavaVM in interface PackageInfoJVMpublic void setJavaVM(java.lang.String javaVM)
PackageInfosetJavaVM in interface PackageInfojavaVM - the supported java vm versionJVMpublic java.lang.String getType()
getType in interface PackageInfopublic void setType(java.lang.String type)
setType in interface PackageInfopublic Version getApplicationVersion()
PackageInfogetApplicationVersion in interface PackageInfopublic void setApplicationVersion(Version applicationVersion)
PackageInfosetApplicationVersion in interface PackageInfopublic java.net.URL getDownloadURL()
PackageInfoURL.
May be null if there is no remote URL to download the bundle.getDownloadURL in interface PackageInfoURLpublic java.lang.String getDownloadURLAsString()
getDownloadURLAsString in interface PackageInfopublic void setDownloadURL(java.net.URL defaultDownloadURL)
PackageInfoURL. Optional.setDownloadURL in interface PackageInfodefaultDownloadURL - the package bundle download URLpublic void setDownloadURL(java.lang.String defaultDownloadURL)
setDownloadURL in interface PackageInfopublic java.lang.String getModelVersion()
PackageInfogetModelVersion in interface PackageInfopublic void setModelVersion(java.lang.String modelVersion)
PackageInfosetModelVersion in interface PackageInfomodelVersion - the package info model versionpublic java.lang.String getOwner()
getOwner in interface PackageInfopublic void setOwner(java.lang.String owner)
PackageInfosetOwner in interface PackageInfoowner - the package ownerpublic java.net.URL getOwnerURL()
PackageInfoURL.getOwnerURL in interface PackageInfoURLpublic void setOwnerURL(java.net.URL sources)
PackageInfosetOwnerURL in interface PackageInfosources - the package owner's urlpublic java.net.URL getSourcesURL()
PackageInfoURL.getSourcesURL in interface PackageInfoURLpublic void setSourcesURL(java.net.URL sources)
PackageInfosetSourcesURL in interface PackageInfosources - the package sourcespublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringCompact()
toStringCompact in interface PackageInfopublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - 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 boolean matchID(java.lang.String string)
matchID in interface PackageInfopublic Dependencies getDependencies()
getDependencies in interface PackageInfopublic void setDependencies(Dependencies dependencies)
setDependencies in interface PackageInfopublic void setDependencies(java.lang.String dependencies)
setDependencies in interface PackageInfopublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.net.URL getWebURL()
PackageInfoURL.getWebURL in interface PackageInfoURLpublic void setWebURL(java.net.URL webURL)
PackageInfoURL.setWebURL in interface PackageInfowebURL - the package web url URLpublic java.util.List getCategories()
getCategories in interface PackageInfopublic void setCategories(java.util.List categoriesList)
setCategories in interface PackageInfopublic java.lang.String getCategoriesAsString()
getCategoriesAsString in interface PackageInfopublic void addCategoriesAsString(java.lang.String categoriesString)
addCategoriesAsString in interface PackageInfopublic boolean isBroken()
isBroken in interface PackageInfopublic java.lang.String getPostInstallScript()
public void setPostInstallScript(java.lang.String script)
protected void setBroken(boolean broken)
public void setValue(java.lang.String name,
java.lang.Object value)
public java.lang.Object getValue(java.lang.String name)
public java.lang.String getPreferedPackageFileName()
public int getBuild()
getBuild in interface PackageInfopublic void setBuild(int build)
setBuild in interface PackageInfopublic java.lang.String getGvSIGVersion()
PackageInfogetGvSIGVersion in interface PackageInfopublic void setGvSIGVersion(java.lang.String gvSIGVersion)
PackageInfosetGvSIGVersion in interface PackageInfogvSIGVersion - the supported gvSIG versionpublic java.net.URL getDownloadURL(java.net.URL baseURL)
PackageInfoURL.
May be null if there is no remote URL to download the bundle.getDownloadURL in interface PackageInfoURLpublic java.lang.String getAntScript()
PackageInfogetAntScript in interface PackageInfopublic void setAntScript(java.lang.String antScript)
PackageInfosetAntScript in interface PackageInfoantScript - The ant script to copy.public java.io.File downloadFile()
throws BaseException
downloadFile in interface PackageInfoBaseExceptionpublic java.io.File downloadFile(SimpleTaskStatus taskStatus) throws BaseException
downloadFile in interface PackageInfoBaseExceptionpublic void addFileToCopy(java.io.File file)
addFileToCopy in interface PackageInfopublic java.io.File getFileToCopy(int i)
getFileToCopy in interface PackageInfopublic void removeFileToCopy(java.io.File file)
removeFileToCopy in interface PackageInfopublic void clearFilesToCopy()
clearFilesToCopy in interface PackageInfopublic java.util.List getFilesToCopy()
getFilesToCopy in interface PackageInfopublic boolean removeInstallFolder(java.io.File folder)
removeInstallFolder in interface PackageInfopublic boolean removeFilesFolder(java.io.File folder)
removeFilesFolder in interface PackageInfopublic boolean isSigned()
isSigned in interface PackageInfopublic void checkSignature(byte[] pkgdata)
checkSignature in interface PackageInfopublic void setVersion(java.lang.String version)
setVersion in interface PackageInfo