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