Class 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.
    • 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.
      • 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