01: package example.nz.org.take.compiler.userv.generated;
02:
03: import nz.org.take.rt.*;
04:
05: /**
06: * Class generated by the take compiler.
07: * @version Mon Feb 11 13:49:17 NZDT 2008
08: */
09: @SuppressWarnings("unchecked")
10: class KBFragement_isSedan_1 {
11: /**
12: * Method generated for query isSedan[in]
13: * @param slot1 input parameter generated from slot 0
14: * @return an iterator for instances of isSedan
15: */
16: public static ResultSet<isSedan> isSedan_1(
17: final example.nz.org.take.compiler.userv.domainmodel.Car slot1) {
18: DerivationController _derivation = new DefaultDerivationController();
19: ResultSet<isSedan> _result = new ResultSet(
20: KBFragement_isSedan_1.isSedan_1(slot1, _derivation),
21: _derivation);
22:
23: return _result;
24: }
25:
26: /**
27: * Method generated for query isSedan[in]
28: * @param source
29: * @param target
30: * @return an iterator
31: * code generated using velocity template JPredicate_11.vm
32: */
33: static ResourceIterator<isSedan> isSedan_1(
34: final example.nz.org.take.compiler.userv.domainmodel.Car slot1,
35: final DerivationController _derivation) {
36: _derivation
37: .log(
38: "public boolean example.nz.org.take.compiler.userv.domainmodel.Car.isSedan()",
39: DerivationController.JAVA_METHOD);
40:
41: if (slot1.isSedan()) {
42: isSedan result = new isSedan();
43: result.slot1 = slot1;
44:
45: return new SingletonIterator<isSedan>(result);
46: }
47:
48: return EmptyIterator.DEFAULT;
49: }
50: }
|