Package org.apache.uima.pear.tools
Class SimplePackageSelector
java.lang.Object
org.apache.uima.pear.tools.SimplePackageSelector
- All Implemented Interfaces:
InstallationController.PackageSelector
The
SimplePackageSelector
class provides simple command line dialog for selecting
root directories of installed PEAR packages, as well as PEAR package files, which contain
components that need to be installed.-
Constructor Summary
ConstructorDescriptionDefault constructor.SimplePackageSelector
(PrintWriter stdOut, PrintWriter stdErr) Constructor that takes given standard console streams writers. -
Method Summary
Modifier and TypeMethodDescriptionselectPackageDirectory
(String componentId) Allows entering the installation directory path for a given component from the console window.selectPackageFile
(String componentId) Allows entering the PEAR file path for a given component from the console window.selectPackageUrl
(String componentId) Allows entering the PEAR package URL for a given component from the console window.
-
Constructor Details
-
SimplePackageSelector
Constructor that takes given standard console streams writers.- Parameters:
stdOut
- The given standard output stream writer.stdErr
- The given standard error stream writer.
-
SimplePackageSelector
public SimplePackageSelector()Default constructor.
-
-
Method Details
-
selectPackageDirectory
Allows entering the installation directory path for a given component from the console window.- Specified by:
selectPackageDirectory
in interfaceInstallationController.PackageSelector
- Parameters:
componentId
- The given component ID.- Returns:
- The installation directory for the given component or
null
, if the entered string is empty.
-
selectPackageFile
Allows entering the PEAR file path for a given component from the console window.- Specified by:
selectPackageFile
in interfaceInstallationController.PackageSelector
- Parameters:
componentId
- The given component ID.- Returns:
- The PEAR file for the given component or
null
, if the entered string is empty.
-
selectPackageUrl
Allows entering the PEAR package URL for a given component from the console window.- Specified by:
selectPackageUrl
in interfaceInstallationController.PackageSelector
- Parameters:
componentId
- The given component ID.- Returns:
- The PEAR package URL for the given component or
null
, if the entered string is empty.
-