001: /*
002: * This file is part of PFIXCORE.
003: *
004: * PFIXCORE is free software; you can redistribute it and/or modify
005: * it under the terms of the GNU Lesser General Public License as published by
006: * the Free Software Foundation; either version 2 of the License, or
007: * (at your option) any later version.
008: *
009: * PFIXCORE is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: * GNU Lesser General Public License for more details.
013: *
014: * You should have received a copy of the GNU Lesser General Public License
015: * along with PFIXCORE; if not, write to the Free Software
016: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
017: */
018:
019: package de.schlund.pfixxml.config.impl;
020:
021: import de.schlund.pfixcore.generator.IWrapper;
022: import de.schlund.pfixxml.config.IWrapperConfig;
023:
024: /**
025: * Stores configuration for an IWrapper
026: *
027: * @author Sebastian Marsching <sebastian.marsching@1und1.de>
028: */
029: public class IWrapperConfigImpl implements IWrapperConfig {
030:
031: private String prefix = null;
032: private Class<? extends IWrapper> wrapperClass = null;
033: private boolean continueOnSubmit = false;
034: private boolean activeIgnore = false;
035: private boolean alwaysRetrieve = false;
036: private boolean dologging = false;
037:
038: /* (non-Javadoc)
039: * @see de.schlund.pfixxml.config.IWrapperConfig#getPrefix()
040: */
041: public String getPrefix() {
042: return this .prefix;
043: }
044:
045: public void setPrefix(String prefix) {
046: this .prefix = prefix;
047: }
048:
049: public void setWrapperClass(Class<? extends IWrapper> clazz) {
050: this .wrapperClass = clazz;
051: }
052:
053: /* (non-Javadoc)
054: * @see de.schlund.pfixxml.config.IWrapperConfig#getWrapperClass()
055: */
056: public Class<? extends IWrapper> getWrapperClass() {
057: return this .wrapperClass;
058: }
059:
060: public void setContinue(boolean continueOnSubmit) {
061: this .continueOnSubmit = continueOnSubmit;
062: }
063:
064: /* (non-Javadoc)
065: * @see de.schlund.pfixxml.config.IWrapperConfig#isContinue()
066: */
067: public boolean isContinue() {
068: return this .continueOnSubmit;
069: }
070:
071: public void setActiveIgnore(boolean ignore) {
072: this .activeIgnore = ignore;
073: }
074:
075: /* (non-Javadoc)
076: * @see de.schlund.pfixxml.config.IWrapperConfig#isActiveIgnore()
077: */
078: public boolean isActiveIgnore() {
079: return this .activeIgnore;
080: }
081:
082: public void setAlwaysRetrieve(boolean retrieve) {
083: this .alwaysRetrieve = retrieve;
084: }
085:
086: /* (non-Javadoc)
087: * @see de.schlund.pfixxml.config.IWrapperConfig#isAlwaysRetrieve()
088: */
089: public boolean isAlwaysRetrieve() {
090: return this .alwaysRetrieve;
091: }
092:
093: public void setLogging(boolean dologging) {
094: this .dologging = dologging;
095: }
096:
097: /* (non-Javadoc)
098: * @see de.schlund.pfixxml.config.IWrapperConfig#getLogging()
099: */
100: public boolean getLogging() {
101: return this.dologging;
102: }
103: }
|