Class Connection
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.site.classes.SiteData
-
- edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
-
- edu.isi.pegasus.planner.catalog.site.classes.Connection
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Connection extends AbstractSiteData
This data class describes a connection property for replica catalog.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Constructor Summary
Constructors Constructor Description Connection()The default constructor.Connection(java.lang.String key, java.lang.String value)The overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SiteDataVisitor visitor)Accept method for the SiteData classes that accepts a visitorjava.lang.Objectclone()Returns the clone of the object.java.lang.StringgetKey()Returns the connection key.java.lang.StringgetValue()Returns the key value.voidinitialize(java.lang.String key, java.lang.String value)Initializes the object.voidsetKey(java.lang.String key)Returns the connection key.voidsetValue(java.lang.String value)Returns the key value.voidtoXML(java.io.Writer writer, java.lang.String indent)Writes out the xml description of the object.-
Methods inherited from class edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
toString, toXML, writeAttribute
-
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.String key, java.lang.String value)Initializes the object.- Parameters:
key- the keyvalue- the key value
-
getKey
public java.lang.String getKey()
Returns the connection key.- Returns:
- key
-
getValue
public java.lang.String getValue()
Returns the key value.- Returns:
- value.
-
setKey
public void setKey(java.lang.String key)
Returns the connection key.- Parameters:
key- the key
-
setValue
public void setValue(java.lang.String value)
Returns the key value.- Parameters:
value- the value.
-
toXML
public void toXML(java.io.Writer writer, java.lang.String indent) throws java.io.IOExceptionWrites out the xml description of the object.- Specified by:
toXMLin classAbstractSiteData- Parameters:
writer- is a Writer opened and ready for writing. This can also be a StringWriter for efficient output.indent- the indent to be used.- Throws:
java.io.IOException- if something fishy happens to the stream.
-
clone
public java.lang.Object clone()
Returns the clone of the object.- Overrides:
clonein classAbstractSiteData- Returns:
- the clone
-
accept
public void accept(SiteDataVisitor visitor)
Description copied from class:AbstractSiteDataAccept method for the SiteData classes that accepts a visitor- Specified by:
acceptin classAbstractSiteData- Parameters:
visitor- the visitor to be used
-
-