net.gdface.codegen.generic.GenericInferfaceConfiguration Maven / Gradle / Ivy
package net.gdface.codegen.generic;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import net.gdface.codegen.generator.GeneratorConfiguration;
public class GenericInferfaceConfiguration extends GeneratorConfiguration{
private Class> refClass;
private Class> interfaceClass;
private Class> shellInterface;
@Override
public void loadConfig(Options options, CommandLine cmd) throws ParseException {
super.loadConfig(options, cmd);
interfaceClass = getProperty(INTERFACE_CLASS_OPTION_LONG);
refClass = getProperty(REFERENCE_CLASS_OPTION_LONG);
shellInterface = getProperty(SHELL_INTERFACE_OPTION_LONG);
}
/**
* @return refClass
*/
public Class> getRefClass() {
return refClass;
}
/**
* @return interfaceClass
*/
public Class> getInterfaceClass() {
return interfaceClass;
}
/**
* @return shellInterface
*/
public Class> getShellInterface() {
return shellInterface;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy