net.sf.taverna.raven.appconfig.bootstrap
Class ProfileListSelector

java.lang.Object
  extended by net.sf.taverna.raven.appconfig.bootstrap.ProfileListSelector

public class ProfileListSelector
extends java.lang.Object

When provided with a URL to the XML that defines a Profile list, the XML is parsed to produce a list of Profile Definitions. Its possible to store the first profile in the list to a local File, which is used when Taverna is first run and no local profile is defined.

Author:
Stuart Owen

Constructor Summary
ProfileListSelector(java.net.URL listURL)
           
 
Method Summary
 java.util.List<net.sf.taverna.raven.appconfig.bootstrap.ProfileListSelector.ProfileDef> getProfileList()
          Provides a list of the Profile definitions listed, ordered by version ascending
 void storeFirst(java.io.File destinationFile)
          Stores the first profile version in the list to the destination
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileListSelector

public ProfileListSelector(java.net.URL listURL)
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getProfileList

public java.util.List<net.sf.taverna.raven.appconfig.bootstrap.ProfileListSelector.ProfileDef> getProfileList()
Provides a list of the Profile definitions listed, ordered by version ascending

Returns:

storeFirst

public void storeFirst(java.io.File destinationFile)
                throws java.lang.Exception
Stores the first profile version in the list to the destination

Parameters:
destinationFile -
Throws:
java.lang.Exception