Package com.sun.xml.rpc.util
Class ToolBase
- java.lang.Object
-
- com.sun.xml.rpc.util.ToolBase
-
- Direct Known Subclasses:
CompileTool,DeployTool,JavaCompilerHelper
public abstract class ToolBase extends Object
A base class for command-line tools.- Author:
- JAX-RPC Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringFALSEprotected Localizerlocalizerprotected LocalizableMessageFactorymessageFactoryprotected OutputStreamoutprotected Stringprogramprotected static StringTRUE
-
Constructor Summary
Constructors Constructor Description ToolBase(OutputStream out, String program)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetGenericErrorMessage()LocalizablegetMessage(String key)LocalizablegetMessage(String key, Localizable localizable)LocalizablegetMessage(String key, Object[] args)LocalizablegetMessage(String key, String arg)LocalizablegetMessage(String key, String arg1, String arg2)LocalizablegetMessage(String key, String arg1, String arg2, String arg3)protected abstract StringgetResourceBundleName()protected voidinitialize()protected abstract booleanparseArguments(String[] args)voidprintStackTrace(Throwable t)protected voidreport(Localizable msg)protected voidreport(String msg)protected abstract voidrun()booleanrun(String[] args)booleanwasSuccessful()
-
-
-
Field Detail
-
out
protected OutputStream out
-
program
protected String program
-
localizer
protected Localizer localizer
-
messageFactory
protected LocalizableMessageFactory messageFactory
-
TRUE
protected static final String TRUE
- See Also:
- Constant Field Values
-
FALSE
protected static final String FALSE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToolBase
public ToolBase(OutputStream out, String program)
-
-
Method Detail
-
initialize
protected void initialize()
-
run
public boolean run(String[] args)
-
wasSuccessful
public boolean wasSuccessful()
-
parseArguments
protected abstract boolean parseArguments(String[] args)
-
getGenericErrorMessage
protected abstract String getGenericErrorMessage()
-
getResourceBundleName
protected abstract String getResourceBundleName()
-
printStackTrace
public void printStackTrace(Throwable t)
-
report
protected void report(String msg)
-
report
protected void report(Localizable msg)
-
getMessage
public Localizable getMessage(String key)
-
getMessage
public Localizable getMessage(String key, String arg)
-
getMessage
public Localizable getMessage(String key, String arg1, String arg2)
-
getMessage
public Localizable getMessage(String key, String arg1, String arg2, String arg3)
-
getMessage
public Localizable getMessage(String key, Localizable localizable)
-
getMessage
public Localizable getMessage(String key, Object[] args)
-
-