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 queries 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 1.9
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_1_1 extends GenericDriver {
30:
31: /**
32: * Constructor.
33: */
34: public XKBDriver_1_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 1.1";
45: }
46:
47: /**
48: * Initialize the object.
49: */
50: protected void initialize() {
51: install(new XMLAdapter4ComplexTerms());
52: install(new XMLAdapter4ConstantTerms());
53: install(new XMLAdapter4Facts());
54: install(new XMLAdapter4KnowledgeBases());
55: install(new XMLAdapter4MandaraxLibFunctions());
56: install(new XMLAdapter4MandaraxLibPredicates());
57: install(new XMLAdapter4Methods());
58: install(new XMLAdapter4Objects());
59: install(new XMLAdapter4Rules());
60: install(new XMLAdapter4SimplePredicates());
61: install(new XMLAdapter4SQLClauseSets());
62: install(new XMLAdapter4SQLPredicates());
63: install(new XMLAdapter4SQLFunctions());
64: install(new XMLAdapter4Types());
65: install(new XMLAdapter4VariableTerms());
66: install(new XMLAdapter4DataSources());
67: install(new XMLAdapter4JFunctions());
68: install(new XMLAdapter4DynaBeanFunctions());
69: install(new XMLAdapter4JPredicates());
70: install(new XMLAdapter4Queries());
71: }
72:
73: /**
74: * Indicates whether the driver (and the underlying xml format (=dtd))
75: * supports queries.
76: * @return a boolean
77: */
78: public boolean supportsQueries() {
79: return true;
80: }
81: }
|