001package net.gdface.codegen.webclient;
002
003import java.io.File;
004
005import org.apache.commons.cli.CommandLine;
006import org.apache.commons.cli.Options;
007import org.apache.commons.cli.ParseException;
008
009public class GSoapClientConfiguration extends WebClientConfiguration implements GSoapConstants {
010        private File stubFolder;
011        private String stubPrefix;
012        public GSoapClientConfiguration() {
013                // stubPrefix默认值为空
014                defaultValue.setProperty(GSOAP_STUBPREFIX_OPTION_LONG, "");
015        }
016
017        @Override
018        public void loadConfig(Options options, CommandLine cmd) throws ParseException {
019                super.loadConfig(options, cmd);
020                stubFolder = getProperty(GSOAP_STUB_FOLDER_OPTION_LONG);
021                stubPrefix = getProperty(GSOAP_STUBPREFIX_OPTION_LONG);
022        }
023
024        /**
025         * @return stubFolder
026         */
027        public File getStubFolder() {
028                return stubFolder;
029        }
030
031        /**
032         * @return stubPrefix
033         */
034        public String getStubPrefix() {
035                return stubPrefix;
036        }
037
038}