001package net.gdface.codegen.generic;
002
003import org.apache.commons.cli.CommandLine;
004import org.apache.commons.cli.Options;
005import org.apache.commons.cli.ParseException;
006
007import net.gdface.codegen.generator.GeneratorConfiguration;
008
009public class GenericInferfaceConfiguration extends GeneratorConfiguration{
010
011        private Class<?> refClass;
012        private Class<?> interfaceClass;
013        private Class<?> shellInterface;
014
015        @Override
016        public void loadConfig(Options options, CommandLine cmd) throws ParseException {
017                super.loadConfig(options, cmd);
018                interfaceClass = getProperty(INTERFACE_CLASS_OPTION_LONG);
019                refClass = getProperty(REFERENCE_CLASS_OPTION_LONG);
020                shellInterface = getProperty(SHELL_INTERFACE_OPTION_LONG);
021        }
022
023
024        /**
025         * @return refClass
026         */
027        public Class<?> getRefClass() {
028                return refClass;
029        }
030
031        /**
032         * @return interfaceClass
033         */
034        public Class<?> getInterfaceClass() {
035                return interfaceClass;
036        }
037
038
039        /**
040         * @return shellInterface
041         */
042        public Class<?> getShellInterface() {
043                return shellInterface;
044        }
045}