net.sf.taverna.update.profile
Class ProfileVersions
java.lang.Object
net.sf.taverna.update.profile.ProfileVersions
public class ProfileVersions
- extends java.lang.Object
Reads a profile list from an XML document to retreive a list of ProfileVersion
XML should be of the form:
1.5.0
A Profile
http://url to profile
- Author:
- Stuart Owen
|
Method Summary |
static java.util.List<ProfileVersion> |
getProfileVersions(java.io.InputStream profileListStream,
java.net.URL sourceURL)
Provides a list of available profiles read from a stream, provided by an external xml source (usually http hosted). |
static java.util.List<ProfileVersion> |
getProfileVersions(java.net.URL profileListUrl)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProfileVersions
public ProfileVersions()
getProfileVersions
public static java.util.List<ProfileVersion> getProfileVersions(java.net.URL profileListUrl)
getProfileVersions
public static java.util.List<ProfileVersion> getProfileVersions(java.io.InputStream profileListStream,
java.net.URL sourceURL)
- Provides a list of available profiles read from a stream, provided by an external xml source (usually http hosted).
If the sourceURL is not null then this can be used to resolve the partial URL's of profile locations based on the assumption that they are hosted
at the same place.
The list is ordered according to the version number, ascending
- Parameters:
profileListStream - the stream to the profile versions XML documentsourceURL - if not null, then this URL is used to resolve partial URL's within the profile version XML document to their full path
- Returns: