1 package org.andromda.core.mdr;
2
3 import javax.jmi.reflect.RefPackage;
4
5 import org.netbeans.api.xmi.XMIReferenceResolver;
6 import org.netbeans.lib.jmi.xmi.InputConfig;
7
8 /***
9 * @author Matthias Bohlen
10 * @author Chad Brandon
11 */
12 public class MDRXmiReferenceResolver
13 extends InputConfig
14 {
15
16 private XMIReferenceResolver referenceResolver;
17
18 /***
19 * Constructs an instance of this class.
20 *
21 * @param extents
22 */
23 public MDRXmiReferenceResolver(
24 RefPackage extents[],
25 String[] moduleSearchPath)
26 {
27 this.referenceResolver = new MDRXmiReferenceResolverContext(
28 extents,
29 this,
30 moduleSearchPath);
31 }
32
33 /***
34 * @see org.netbeans.api.xmi.XMIInputConfig#setReferenceResolver(org.netbeans.api.xmi.XMIReferenceResolver)
35 */
36 public void setReferenceResolver(XMIReferenceResolver arg0)
37 {
38 throw new IllegalStateException(
39 "MDRXmiReferenceResolver.setReferenceResolver must not be implemented!");
40 }
41
42 /***
43 * @see org.netbeans.api.xmi.XMIInputConfig#getReferenceResolver()
44 */
45 public XMIReferenceResolver getReferenceResolver()
46 {
47 return referenceResolver;
48 }
49
50 }