01: package org.andromda.repositories.mdr;
02:
03: import javax.jmi.reflect.RefPackage;
04:
05: import org.netbeans.api.xmi.XMIReferenceResolver;
06: import org.netbeans.lib.jmi.xmi.InputConfig;
07:
08: /**
09: * @author Matthias Bohlen
10: * @author Chad Brandon
11: */
12: public class MDRXmiReferenceResolver extends InputConfig {
13: private XMIReferenceResolver referenceResolver;
14:
15: /**
16: * Constructs an instance of this class.
17: *
18: * @param extents
19: */
20: public MDRXmiReferenceResolver(RefPackage[] extents,
21: String[] moduleSearchPath) {
22: this .referenceResolver = new MDRXmiReferenceResolverContext(
23: extents, this , moduleSearchPath);
24: }
25:
26: /**
27: * @see org.netbeans.api.xmi.XMIInputConfig#setReferenceResolver(org.netbeans.api.xmi.XMIReferenceResolver)
28: */
29: public void setReferenceResolver(XMIReferenceResolver arg0) {
30: throw new IllegalStateException(
31: "MDRXmiReferenceResolver.setReferenceResolver must not be implemented!");
32: }
33:
34: /**
35: * @see org.netbeans.api.xmi.XMIInputConfig#getReferenceResolver()
36: */
37: public XMIReferenceResolver getReferenceResolver() {
38: return referenceResolver;
39: }
40: }
|