edu.isi.pegasus.planner.catalog.site.classes
Class Connection

java.lang.Object
  extended by edu.isi.pegasus.planner.catalog.site.classes.SiteData
      extended by edu.isi.pegasus.planner.catalog.site.classes.AbstractSiteData
          extended by edu.isi.pegasus.planner.catalog.site.classes.Connection
All Implemented Interfaces:
Cloneable

public class Connection
extends AbstractSiteData

This data class describes a connection property for replica catalog.

Version:
$Revision: 579 $
Author:
Karan Vahi

Field Summary
private  String mKey
          The connection key.
private  String mValue
          The value of the connection key.
 
Constructor Summary
Connection()
          The default constructor.
Connection(String key, String value)
          The overloaded constructor.
 
Method Summary
 Object clone()
          Returns the clone of the object.
 String getKey()
          Returns the connection key.
 String getValue()
          Returns the key value.
 void initialize(String key, String value)
          Initializes the object.
 void setKey(String key)
          Returns the connection key.
 void setValue(String value)
          Returns the key value.
 void toXML(Writer writer, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mKey

private String mKey
The connection key.


mValue

private String mValue
The value of the connection key.

Constructor Detail

Connection

public Connection()
The default constructor.


Connection

public Connection(String key,
                  String value)
The overloaded constructor.

Parameters:
key - the key
value - the key value
Method Detail

initialize

public void initialize(String key,
                       String value)
Initializes the object.

Parameters:
key - the key
value - the key value

getKey

public String getKey()
Returns the connection key.

Returns:
key

getValue

public String getValue()
Returns the key value.

Returns:
value.

setKey

public void setKey(String key)
Returns the connection key.

Parameters:
key - the key

setValue

public void setValue(String value)
Returns the key value.

Parameters:
value - the value.

toXML

public void toXML(Writer writer,
                  String indent)
           throws IOException
Writes out the xml description of the object.

Specified by:
toXML in class AbstractSiteData
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:
IOException - if something fishy happens to the stream.

clone

public Object clone()
Returns the clone of the object.

Overrides:
clone in class AbstractSiteData
Returns:
the clone


Copyright © 2011 The University of Southern California. All Rights Reserved.