org.kohsuke.args4j
Class Config

java.lang.Object
  extended by 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 Mat���rne

Nested Class Summary
 class Config.ConfigElement
          The ConfigElement is an <option> or <argument> tag in the xml configuration file.
 class Config.ConfigHandler
          SAX-Handler for reading the configuration file.
 
Field Summary
 List<Config.ConfigElement> arguments
          All @Arguments.
 List<Config.ConfigElement> options
          All @Options.
 
Constructor Summary
Config()
           
 
Method Summary
static Config parse(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 List<Config.ConfigElement> options
All @Options.


arguments

public List<Config.ConfigElement> arguments
All @Arguments.

Constructor Detail

Config

public Config()
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


Copyright © 2003-2011 Kohsuke Kawaguchi. All Rights Reserved.