// OO jDREW - An Object Oriented extension of the Java Deductive Reasoning Engine for the Web
// Copyright (C) 2005 Marcel Ball
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
package org.ruleml.oojdrew.tests;
import java.util.prefs.PreferenceChangeListener;
import org.apache.log4j.Level;
import org.ruleml.oojdrew.Configuration;
import org.ruleml.oojdrew.parsing.RuleMLFormat;
public class MockConfiguration implements Configuration {
private int uiFontSize;
private boolean linkFontSizes;
private String lookAndFeelClassName;
private RuleMLFormat rmlFormat;
private Level logLevel;
public int getUiPreferenceChangeCount() {
throw new UnsupportedOperationException();
}
public void decreaseUiPreferenceChangeCount() {
throw new UnsupportedOperationException();
}
public int getTextAreaFontSize() {
throw new UnsupportedOperationException();
}
public void setTextAreaFontSize(int newSize) {
throw new UnsupportedOperationException();
}
public int getHttpConnectionTimeout() {
throw new UnsupportedOperationException();
}
public void setHttpConnectionTimeout(int timeoutInMilliseconds) {
throw new UnsupportedOperationException();
}
public void addPreferenceChangeListener(PreferenceChangeListener listener) {
}
public int getUIFontSize() {
return uiFontSize;
}
public void setUIFontSize(int newSize) {
uiFontSize = newSize;
}
public void setLookAndFeel(String lafClassName) {
lookAndFeelClassName = lafClassName;
}
public String getLookAndFeel() {
return lookAndFeelClassName;
}
public RuleMLFormat getRuleMLFormat() {
return rmlFormat;
}
public void setSelectedRuleMLFormat(RuleMLFormat rmlFormat) {
this.rmlFormat = rmlFormat;
}
public boolean getLinkFontSizes() {
return linkFontSizes;
}
public void setLinkFontSizes(boolean linkFontSizes) {
this.linkFontSizes = linkFontSizes;
}
public Level getLogLevel() {
return logLevel;
}
public void setLogLevel(Level logLevel) {
this.logLevel = logLevel;
}
}