01: /*
02: * Copyright 2007 Bastian Schenke Licensed under the Apache License, Version 2.0 (the "License");
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
05: * Unless required by applicable law or agreed to in writing, software distributed under the
06: * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
07: * either express or implied. See the License for the specific language governing permissions
08: * and limitations under the License.
09: */
10: package nz.org.take.r2ml;
11:
12: /**
13: * @author Bastian Schenke (bastian.schenke@googlemail.com)
14: *
15: */
16: public class DataValueHandler implements XmlTypeHandler {
17:
18: /**
19: * Map a DataValue to a Fact.
20: *
21: * The "inner" lists represent disjuncts of the original condition and there
22: * elements are suppossed to be conjuncted Prerequisites. This is neccessary
23: * hence take doesnt support Disjunctions in rule bodies. Each disjunct is
24: * represented by a single take rule with the same head.
25: *
26: * @param obj
27: * a Condition
28: * @return a List of Lists that contain Prerequisites
29: *
30: * @see nz.org.take.r2ml.XmlTypeHandler#importObject(java.lang.Object,
31: * nz.org.take.r2ml.R2MLDriver)
32: */
33: public Object importObject(Object obj) throws R2MLException {
34:
35: //DataValue
36: return null;
37: }
38:
39: }
|