public class Connection extends AbstractSiteData
Modifier and Type | Field and Description |
---|---|
private String |
mKey
The connection key.
|
private String |
mValue
The value of the connection key.
|
Constructor and Description |
---|
Connection()
The default constructor.
|
Connection(String key,
String value)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
toString, toXML, writeAttribute
private String mKey
private String mValue
public void initialize(String key, String value)
key
- the keyvalue
- the key valuepublic String getKey()
public String getValue()
public void setKey(String key)
key
- the keypublic void setValue(String value)
value
- the value.public void toXML(Writer writer, String indent) throws IOException
toXML
in class AbstractSiteData
writer
- is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.indent
- the indent to be used.IOException
- if something fishy happens to the stream.public Object clone()
clone
in class AbstractSiteData
Copyright © 2011 The University of Southern California. All Rights Reserved.