001 /*
002 *
003 * $Revision$ $Date$
004 *
005 * This file is part of *** M y C o R e ***
006 * See http://www.mycore.de/ for details.
007 *
008 * This program is free software; you can use it, redistribute it
009 * and / or modify it under the terms of the GNU General Public License
010 * (GPL) as published by the Free Software Foundation; either version 2
011 * of the License or (at your option) any later version.
012 *
013 * This program is distributed in the hope that it will be useful, but
014 * WITHOUT ANY WARRANTY; without even the implied warranty of
015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
016 * GNU General Public License for more details.
017 *
018 * You should have received a copy of the GNU General Public License
019 * along with this program, in a file called gpl.txt or license.txt.
020 * If not, write to the Free Software Foundation Inc.,
021 * 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA
022 */
023
024 package org.mycore.access.mcrimpl;
025
026 import org.jdom.Element;
027 import org.mycore.parsers.bool.MCRCondition;
028 import org.mycore.parsers.bool.MCRConditionVisitor;
029
030 /**
031 * Implementation of a dummy clause (useful for debugging)
032 *
033 * @author Matthias Kramm
034 */
035 class MCRDummyClause implements MCRCondition {
036 private String s;
037
038 MCRDummyClause(String s) {
039 this.s = s;
040 }
041
042 public boolean evaluate(Object o) {
043 //MCRAccessData data = (MCRAccessData) o;
044
045 return false;
046 }
047
048 public String toString() {
049 return "\"" + s + "\"";
050 }
051
052 public Element toXML() {
053 return null; /* TODO */
054 }
055
056 public Element info() {
057 return null; /* TODO */
058 }
059
060 public void accept(MCRConditionVisitor visitor) { /* TODO */
061 }
062 };