org.argouml.profile
Class URLModelLoader

java.lang.Object
  extended by org.argouml.profile.URLModelLoader
All Implemented Interfaces:
ProfileModelLoader
Direct Known Subclasses:
FileModelLoader, ResourceModelLoader

public class URLModelLoader
extends java.lang.Object
implements ProfileModelLoader

Abstract ProfileModelLoader which loads models from a URL.


Constructor Summary
URLModelLoader()
           
 
Method Summary
 java.util.Collection loadModel(ProfileReference reference)
          Load a profile from a ProfileReference.
 java.util.Collection loadModel(java.net.URL url, java.net.URL publicId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLModelLoader

public URLModelLoader()
Method Detail

loadModel

public java.util.Collection loadModel(java.net.URL url,
                                      java.net.URL publicId)
                               throws ProfileException
Parameters:
url - the url/system id to load
publicId - the publicId for which the model will be known - must be equal in different machines in order to be possible to load the model.
Returns:
a collection of top level elements in the profile (usually a single package stereotyped <>
Throws:
ProfileException - if the XMIReader couldn't read the profile

loadModel

public java.util.Collection loadModel(ProfileReference reference)
                               throws ProfileException
Load a profile from a ProfileReference.

Specified by:
loadModel in interface ProfileModelLoader
Parameters:
reference - ProfileReference for desired profile
Returns:
a collection of top level elements in the profile (usually a single package stereotyped <>
Throws:
ProfileException - if the XMIReader couldn't read the profile


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook