01: package org.mandarax.xkb.framework;
02:
03: /**
04: * Copyright (C) 1999-2004 Jens Dietrich (mailto:mandarax@jbdietrich.com)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: */
20:
21: /**
22: * Default driver. We keep a version name in the class name since we will maintain
23: * drivers in order to migrate data between drivers. Support for comparators has been added.
24: * @author <A href="http://www-ist.massey.ac.nz/JBDietrich" target="_top">Jens Dietrich</A>
25: * @version 3.4 <7 March 05>
26: * @since 2.1
27: * @deprecated from v 3.4 - support for new features such as validation will not be added to XKB, please use ZKB instead
28: */
29: public class XKBDriver_2_1 extends GenericDriver {
30:
31: /**
32: * Constructor.
33: */
34: public XKBDriver_2_1() {
35: super ();
36: initialize();
37: }
38:
39: /**
40: * Get the name of the driver.
41: * @return a text
42: */
43: public String getName() {
44: return "Mandarax XKB Driver 2.1";
45: }
46:
47: /**
48: * Initialize the object.
49: */
50: protected void initialize() {
51: install(new XMLAdapter4ComplexTerms());
52: install(new XMLAdapter4ConstantTerms());
53: install(new XMLAdapter4Facts2());
54: install(new XMLAdapter4KnowledgeBases2());
55: install(new XMLAdapter4MandaraxLibFunctions());
56: install(new XMLAdapter4MandaraxLibPredicates());
57: install(new XMLAdapter4Methods());
58: install(new XMLAdapter4Objects());
59: install(new XMLAdapter4Rules2());
60: install(new XMLAdapter4Prerequisites());
61: install(new XMLAdapter4SimplePredicates());
62: install(new XMLAdapter4SQLClauseSets2());
63: install(new XMLAdapter4SQLPredicates());
64: install(new XMLAdapter4SQLFunctions2());
65: install(new XMLAdapter4Types());
66: install(new XMLAdapter4VariableTerms());
67: install(new XMLAdapter4DataSources());
68: install(new XMLAdapter4JFunctions());
69: install(new XMLAdapter4DynaBeanFunctions());
70: install(new XMLAdapter4JPredicates());
71: install(new XMLAdapter4Queries2());
72: install(new XMLAdapter4Comparators());
73: }
74:
75: /**
76: * Indicates whether the driver (and the underlying xml format (=dtd))
77: * supports queries.
78: * @return a boolean
79: */
80: public boolean supportsQueries() {
81: return true;
82: }
83:
84: /**
85: * Indicates whether the driver (and the underlying xml format (=dtd))
86: * supports negation as failure.
87: * @return a boolean
88: */
89: public boolean supportsNegationAsFailure() {
90: return true;
91: }
92: }
|