Package org.kohsuke.args4j
Class Config
- java.lang.Object
-
- org.kohsuke.args4j.Config
-
public class Config extends 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 List<ConfigElement>
arguments
All @Arguments.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(InputSource xml)
Parses a XML file and returns a Config object holding the information.
-
-
-
Field Detail
-
options
public List<ConfigElement> options
All @Options.
-
arguments
public List<ConfigElement> arguments
All @Arguments.
-
-
Method Detail
-
parse
public static Config parse(InputSource xml) throws IOException, SAXException
Parses a XML file and returns a Config object holding the information.- Parameters:
xml
- source of the xml data- Returns:
- Throws:
IOException
SAXException
-
-