public class Connection extends AbstractSiteData
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
mKey
The connection key.
|
private java.lang.String |
mValue
The value of the connection key.
|
| Constructor and Description |
|---|
Connection()
The default constructor.
|
Connection(java.lang.String key,
java.lang.String value)
The overloaded constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SiteDataVisitor visitor)
Accept method for the SiteData classes that accepts a visitor
|
java.lang.Object |
clone()
Returns the clone of the object.
|
java.lang.String |
getKey()
Returns the connection key.
|
java.lang.String |
getValue()
Returns the key value.
|
void |
initialize(java.lang.String key,
java.lang.String value)
Initializes the object.
|
void |
setKey(java.lang.String key)
Returns the connection key.
|
void |
setValue(java.lang.String value)
Returns the key value.
|
void |
toXML(java.io.Writer writer,
java.lang.String indent)
Writes out the xml description of the object.
|
toString, toXML, writeAttributeprivate java.lang.String mKey
private java.lang.String mValue
public Connection()
public Connection(java.lang.String key,
java.lang.String value)
key - the keyvalue - the key valuepublic void initialize(java.lang.String key,
java.lang.String value)
key - the keyvalue - the key valuepublic java.lang.String getKey()
public java.lang.String getValue()
public void setKey(java.lang.String key)
key - the keypublic void setValue(java.lang.String value)
value - the value.public void toXML(java.io.Writer writer,
java.lang.String indent)
throws java.io.IOException
toXML in class AbstractSiteDatawriter - is a Writer opened and ready for writing. This can also
be a StringWriter for efficient output.indent - the indent to be used.java.io.IOException - if something fishy happens to the stream.public java.lang.Object clone()
clone in class AbstractSiteDatapublic void accept(SiteDataVisitor visitor)
AbstractSiteDataaccept in class AbstractSiteDatavisitor - the visitor to be used