org.andromda.repositories.mdr
Class MDRXmiReferenceResolverContext

java.lang.Object
  extended by org.netbeans.lib.jmi.xmi.XmiContext
      extended by org.andromda.repositories.mdr.MDRXmiReferenceResolverContext
All Implemented Interfaces:
org.netbeans.api.xmi.XMIReferenceResolver

public class MDRXmiReferenceResolverContext
extends org.netbeans.lib.jmi.xmi.XmiContext

This class supports the expansion of XML HREF references to other modules within a model. The result of the resolver should be a valid URL. This is necessary for Magic Draw as it doesn't have the entire model referenced but just the archived model.

Author:
Matthias Bohlen, Chad Brandon

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.lib.jmi.xmi.XmiContext
org.netbeans.lib.jmi.xmi.XmiContext.Client
 
Field Summary
protected static java.lang.String[] CLASSPATH_MODEL_SUFFIXES
          The suffixes to use when searching for referenced models on the classpath.
 
Fields inherited from class org.netbeans.lib.jmi.xmi.XmiContext
instancesCounter
 
Constructor Summary
MDRXmiReferenceResolverContext(javax.jmi.reflect.RefPackage[] extents, org.netbeans.api.xmi.XMIInputConfig config, java.lang.String[] moduleSearchPaths)
          Constructs an instance of this class.
 
Method Summary
 java.net.URL toURL(java.lang.String systemId)
           
 
Methods inherited from class org.netbeans.lib.jmi.xmi.XmiContext
absoluteSystemId, addOutermostObject, allReferencesResolved, countInstance, defaultValue, defaultValue, findProxy, finish, getCurrentDocId, getOutermostObjects, getQualifiedName, getReference, getReference, getTagValue, getUnresolvedRefId, ignoreUnknownElements, instanceAttributes, instanceElementByName, instanceReferences, isMultivalued, labelPrefix, putReference, readExternalDocument, receiveHeader, register, registerUnresolvedExternalRef, registerUnresolvedRef, resolve, resolveCorbaType, resolveDifferences, resolveElementName, resolveEnumerationValue, resolveExternalReferences, resolveInstanceOrReference, resolvePrimitiveValue, resolveValue, setVersion, staticAttributeByName, staticAttributes, structureFields, toXMIReference, unknownElementFound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSPATH_MODEL_SUFFIXES

protected static final java.lang.String[] CLASSPATH_MODEL_SUFFIXES
The suffixes to use when searching for referenced models on the classpath.

Constructor Detail

MDRXmiReferenceResolverContext

public MDRXmiReferenceResolverContext(javax.jmi.reflect.RefPackage[] extents,
                                      org.netbeans.api.xmi.XMIInputConfig config,
                                      java.lang.String[] moduleSearchPaths)
Constructs an instance of this class.

Parameters:
extents - the extents.
config - the xml input config.
moduleSearchPaths - the paths to search for modules
Method Detail

toURL

public java.net.URL toURL(java.lang.String systemId)
Overrides:
toURL in class org.netbeans.lib.jmi.xmi.XmiContext
See Also:
XmiContext.toURL(java.lang.String)


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.