org.andromda.repositories.mdr
Class MDRXmiReferenceResolverContext

java.lang.Object
  extended byorg.netbeans.lib.jmi.xmi.XmiContext
      extended byorg.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 inherited from class org.netbeans.lib.jmi.xmi.XmiContext
org.netbeans.lib.jmi.xmi.XmiContext.Client
 
Field Summary
protected static 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, String[] moduleSearchPaths)
          Constructs an instance of this class.
 
Method Summary
 URL toURL(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 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,
                                      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 URL toURL(String systemId)
See Also:
XmiContext.toURL(java.lang.String)


Copyright © 2003-2006 The AndroMDA Team. All Rights Reserved.