net.sf.taverna.update.plugin
Class PluginSite

java.lang.Object
  extended by net.sf.taverna.update.plugin.PluginSite
Direct Known Subclasses:
TavernaPluginSite

public class PluginSite
extends java.lang.Object

Author:
David Withers

Constructor Summary
PluginSite(java.lang.String name, java.net.URL url)
          Constructs an instance of PluginSite.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static PluginSite fromXml(org.jdom.Element pluginSiteElement)
          Creates a PluginSite from an XML element.
 java.lang.String getName()
          Returns the name.
 java.net.URL getUrl()
          Returns the url.
 int hashCode()
           
 java.lang.String toString()
           
 org.jdom.Element toXml()
          Creates an XML element from this PluginSite.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginSite

public PluginSite(java.lang.String name,
                  java.net.URL url)
Constructs an instance of PluginSite.

Parameters:
name - the name of the plugin site
url - the url of the plugin site
Method Detail

getName

public java.lang.String getName()
Returns the name.

Returns:
the name

getUrl

public java.net.URL getUrl()
Returns the url.

Returns:
the url

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fromXml

public static PluginSite fromXml(org.jdom.Element pluginSiteElement)
                          throws java.net.MalformedURLException
Creates a PluginSite from an XML element.

Parameters:
pluginSiteElement - the XML element
Returns:
a new PluginSite
Throws:
java.net.MalformedURLException

toXml

public org.jdom.Element toXml()
Creates an XML element from this PluginSite.

Returns:
an XML element for this PluginSite

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object