public abstract class Package
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
| Constructor and Description | 
|---|
| Package() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract java.lang.Object | clone() | 
| boolean | equals(Package toCompare)Compare the supplied package to this package. | 
| abstract java.util.List<Dependency> | getBaseSystemDependency()Gets the dependency on the base system that this package requires. | 
| abstract java.util.List<Dependency> | getDependencies()Get the list of packages that this package depends on. | 
| abstract java.util.List<Dependency> | getIncompatibleDependencies()Gets a list of installed packages that this package depends on that are
 currently incompatible with this package. | 
| abstract java.util.List<Dependency> | getIncompatibleDependencies(java.util.List<Package> packages)Gets those packages from the supplied list that this package depends on and
 are currently incompatible with this package. | 
| abstract java.util.List<Dependency> | getMissingDependencies()Gets a list of packages that this package depends on that are not currently
 installed. | 
| abstract java.util.List<Dependency> | getMissingDependencies(java.util.List<Package> packages)Gets a list of packages that this package depends on that are not in the
 supplied list of packages. | 
| abstract java.lang.String | getName()Convenience method to return the name of this package. | 
| java.util.Map<?,?> | getPackageMetaData()Get the meta data for this package. | 
| java.lang.Object | getPackageMetaDataElement(java.lang.Object key)Gets the package meta data element associated with the supplied key. | 
| abstract java.net.URL | getPackageURL()Convenience method that returns the URL to the package (i.e the provider's
 URL). | 
| abstract java.util.List<Package> | getPrecludedPackages(java.util.List<Package> packages)Compares this package's precluded list (if any) against the list of
 supplied packages. | 
| abstract void | install()Install this package. | 
| abstract boolean | isCompatibleBaseSystem()Returns true if this package is compatible with the currently installed
 version of the base system. | 
| abstract boolean | isInstalled()Returns true if this package is already installed | 
| void | setPackageMetaData(java.util.Map<?,?> metaData)Set the meta data for this package. | 
| abstract void | setPackageMetaDataElement(java.lang.Object key,
                         java.lang.Object value)Adds a key, value pair to the meta data map. | 
public void setPackageMetaData(java.util.Map<?,?> metaData)
metaData - the meta data for this package.public java.util.Map<?,?> getPackageMetaData()
public abstract java.lang.String getName()
public abstract java.net.URL getPackageURL()
                                    throws java.lang.Exception
java.lang.Exception - if the URL can't be retrieved for some reasonpublic boolean equals(Package toCompare)
toCompare - the package to compare against.public abstract java.util.List<Dependency> getDependencies() throws java.lang.Exception
java.lang.Exception - if a problem occurs while getting the list of
           dependencies.public abstract boolean isInstalled()
public abstract void install()
                      throws java.lang.Exception
java.lang.Exception - if something goes wrong during installation.public abstract boolean isCompatibleBaseSystem()
                                        throws java.lang.Exception
java.lang.Exception - if a problem occurs while checking compatibility.public abstract java.util.List<Dependency> getBaseSystemDependency() throws java.lang.Exception
java.lang.Exception - if the base system dependency can't be determined for
           some reason.public abstract java.util.List<Dependency> getMissingDependencies() throws java.lang.Exception
java.lang.Exceptionpublic abstract java.util.List<Dependency> getMissingDependencies(java.util.List<Package> packages) throws java.lang.Exception
packages - a list of packages to compare this package's dependencies
          against.java.lang.Exception - if the list of missing depenencies can't be determined
           for some reason.public abstract java.util.List<Dependency> getIncompatibleDependencies() throws java.lang.Exception
java.lang.Exceptionpublic abstract java.util.List<Package> getPrecludedPackages(java.util.List<Package> packages) throws java.lang.Exception
packages - a list of packages to compare against those in this
          package's precluded listjava.lang.Exception - if a problem occurspublic abstract java.util.List<Dependency> getIncompatibleDependencies(java.util.List<Package> packages) throws java.lang.Exception
packages - a list of packages to compare this package's dependencies
          againstjava.lang.Exception - if the list of incompatible dependencies can't be
           generated for some reason.public java.lang.Object getPackageMetaDataElement(java.lang.Object key)
key - the key to use to look up a value in the meta datapublic abstract void setPackageMetaDataElement(java.lang.Object key,
                                               java.lang.Object value)
                                        throws java.lang.Exception
key - the keyvalue - the value to addjava.lang.Exception - if there is no meta data map to add to.public abstract java.lang.Object clone()
clone in class java.lang.Object