public class JSAPConfig
extends java.lang.Object
JSAP.JSAP(URL)
Constructor and Description |
---|
JSAPConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(com.martiansoftware.jsap.xml.ParameterConfig config) |
static void |
configure(JSAP jsapToConfigure,
java.net.URL jsapXML)
Loads a JSAP configuration from the xml at the specified URL, and configures
the specified JSAP object accordingly
|
java.lang.String |
getHelp() |
java.lang.String |
getUsage() |
java.util.Iterator |
parameters() |
void |
setHelp(java.lang.String help) |
void |
setUsage(java.lang.String usage) |
public static void configure(JSAP jsapToConfigure, java.net.URL jsapXML) throws java.io.IOException, JSAPException
jsapToConfigure
- the JSAP to configurejsapXML
- the configurationjava.io.IOException
- if an I/O error occursJSAPException
- if the configuration is not validpublic java.lang.String getHelp()
public void setHelp(java.lang.String help)
public java.lang.String getUsage()
public void setUsage(java.lang.String usage)
public void addParameter(com.martiansoftware.jsap.xml.ParameterConfig config)
public java.util.Iterator parameters()
Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap