org.xoe.core.packages
Class InstallContext

java.lang.Object
  |
  +--org.xoe.core.packages.InstallContext
All Implemented Interfaces:
IPackageQueryHandler

public class InstallContext
extends Object
implements IPackageQueryHandler


Field Summary
static int MAX_DEPTH
           
 
Constructor Summary
InstallContext()
           
 
Method Summary
 void addPackage(PackageDescription pkg)
           
 Object clone()
           
 boolean conflictsWith(PackageDescription pkg)
           
 boolean contains(PackageDescription pkg)
           
static void dumpContextVector(Vector contexts)
           
static Vector getBatchContexts(String[] names)
           
static Vector getCandidateContexts(IPackageQuery q)
           
static Vector getCandidateContexts(PackageDescription desc)
           
static UninstallablePackage getFailure()
           
 PackageDescription[] getPackages()
           
 PackageDescription getPrimary()
           
 void performQuery(IPackageQuery in_q, Vector out_res)
          Performs the specified query and adds all matching packages to out_results
static void printUsage()
           
 void setPrimary(PackageDescription desc)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_DEPTH

public static final int MAX_DEPTH
Constructor Detail

InstallContext

public InstallContext()
Method Detail

getFailure

public static UninstallablePackage getFailure()

clone

public Object clone()
Overrides:
clone in class Object

setPrimary

public void setPrimary(PackageDescription desc)

getPrimary

public PackageDescription getPrimary()

performQuery

public void performQuery(IPackageQuery in_q,
                         Vector out_res)
Description copied from interface: IPackageQueryHandler
Performs the specified query and adds all matching packages to out_results
Specified by:
performQuery in interface IPackageQueryHandler

getPackages

public PackageDescription[] getPackages()

addPackage

public void addPackage(PackageDescription pkg)

contains

public boolean contains(PackageDescription pkg)

conflictsWith

public boolean conflictsWith(PackageDescription pkg)

getBatchContexts

public static Vector getBatchContexts(String[] names)

getCandidateContexts

public static Vector getCandidateContexts(IPackageQuery q)

getCandidateContexts

public static Vector getCandidateContexts(PackageDescription desc)

printUsage

public static void printUsage()

dumpContextVector

public static void dumpContextVector(Vector contexts)

toString

public String toString()
Overrides:
toString in class Object