Package org.kohsuke.args4j
Class Config
- java.lang.Object
-
- org.kohsuke.args4j.Config
-
public class Config extends java.lang.Object
Metadataconfiguration. This class holds all metadata for a class, mainly a list of @Options and @Arguments.- Author:
- Jan Materne
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Config.ConfigHandler
SAX-Handler for reading the configuration file.
-
Field Summary
Fields Modifier and Type Field Description java.util.List<ConfigElement>
arguments
All @Arguments.java.util.List<ConfigElement>
options
All @Options.
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Config
parse(org.xml.sax.InputSource xml)
Parses a XML file and returns a Config object holding the information.
-
-
-
Field Detail
-
options
public java.util.List<ConfigElement> options
All @Options.
-
arguments
public java.util.List<ConfigElement> arguments
All @Arguments.
-
-
Method Detail
-
parse
public static Config parse(org.xml.sax.InputSource xml) throws java.io.IOException, org.xml.sax.SAXException
Parses a XML file and returns a Config object holding the information.- Parameters:
xml
- source of the xml data- Returns:
- Throws:
java.io.IOException
org.xml.sax.SAXException
-
-