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: import java.util.List;
13:
14: import nz.org.take.Fact;
15: import nz.org.take.r2ml.reference.AssociationAsReferenceResolvPolicy;
16: import nz.org.take.r2ml.reference.SimpleAssociationResolvPolicy;
17:
18: import de.tu_cottbus.r2ml.AssociationAtom;
19:
20: public interface AssociationResolvPolicy {
21:
22: /**
23: * Associations are interpretted as simple Predicates.
24: */
25: public static AssociationResolvPolicy SIMPLE_ASSOCIATION_RESOLV_POLICY = new SimpleAssociationResolvPolicy();
26:
27: /**
28: * Associations are interpreted as references between objects.
29: */
30: public static AssociationAsReferenceResolvPolicy ASSOCIATION_AS_REFERENCE_RESOLV_POLICY = new AssociationAsReferenceResolvPolicy();
31:
32: public Fact resolv(AssociationAtom atom) throws R2MLException;
33:
34: }
|