public class JSAPConfig extends 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,
URL jsapXML)
Loads a JSAP configuration from the xml at the specified URL, and configures
the specified JSAP object accordingly
|
String |
getHelp() |
String |
getUsage() |
Iterator |
parameters() |
void |
setHelp(String help) |
void |
setUsage(String usage) |
public static void configure(JSAP jsapToConfigure, URL jsapXML) throws IOException, JSAPException
jsapToConfigure
- the JSAP to configurejsapXML
- the configurationIOException
- if an I/O error occursJSAPException
- if the configuration is not validpublic String getHelp()
public void setHelp(String help)
public String getUsage()
public void setUsage(String usage)
public void addParameter(com.martiansoftware.jsap.xml.ParameterConfig config)
public Iterator parameters()
Copyright © 2015. All rights reserved.