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
`class` `Config.ConfigHandler` SAX-Handler for reading the configuration file.

### Field Summary

Fields
`java.util.List<ConfigElement>` `arguments` All @Arguments.
`java.util.List<ConfigElement>` `options` All @Options.

### Constructor Summary

Constructors
`Config()`

### Method Summary

All Methods Static Methods Concrete Methods
`static Config` `parse​(org.xml.sax.InputSource xml)` Parses a XML file and returns a Config object holding the information.

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Field Detail

#### options

    public java.util.List<ConfigElement> options

All @Options.

#### arguments

    public java.util.List<ConfigElement> arguments

All @Arguments.

### Constructor Detail

#### Config

    public Config()

### 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`