Package com.martiansoftware.jsap.xml
Class JSAPConfig
java.lang.Object
com.martiansoftware.jsap.xml.JSAPConfig
Provides support for loading JSAP configurations at runtime
via an xml file. You don't need to access this class directly;
instead, use JSAP's constructors that support xml.
- Author:
- Marty Lamb
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(com.martiansoftware.jsap.xml.ParameterConfig config) static void
Loads a JSAP configuration from the xml at the specified URL, and configures the specified JSAP object accordinglygetHelp()
getUsage()
void
void
-
Constructor Details
-
JSAPConfig
public JSAPConfig()
-
-
Method Details
-
configure
Loads a JSAP configuration from the xml at the specified URL, and configures the specified JSAP object accordingly- Parameters:
jsapToConfigure
- the JSAP to configurejsapXML
- the configuration- Throws:
IOException
- if an I/O error occursJSAPException
- if the configuration is not valid
-
getHelp
-
setHelp
-
getUsage
-
setUsage
-
addParameter
public void addParameter(com.martiansoftware.jsap.xml.ParameterConfig config) -
parameters
-