com.konakart.app
Class NameValue

java.lang.Object
  extended by com.konakart.app.NameValue
All Implemented Interfaces:
NameValueIf

public class NameValue
extends java.lang.Object
implements NameValueIf

Used to contain a name value pair


Constructor Summary
NameValue()
          Constructor
NameValue(java.lang.String name, int value)
          Constructor
NameValue(java.lang.String name, java.lang.String value)
          Constructor
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getValue()
           
 void setName(java.lang.String name)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
          Returns a string containing the attributes of the NameValue object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameValue

public NameValue()
Constructor


NameValue

public NameValue(java.lang.String name,
                 java.lang.String value)
Constructor

Parameters:
name -
value -

NameValue

public NameValue(java.lang.String name,
                 int value)
Constructor

Parameters:
name -
value -
Method Detail

toString

public java.lang.String toString()
Returns a string containing the attributes of the NameValue object

Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Specified by:
getName in interface NameValueIf
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Specified by:
setName in interface NameValueIf
Parameters:
name - The name to set.

getValue

public java.lang.String getValue()
Specified by:
getValue in interface NameValueIf
Returns:
Returns the value.

setValue

public void setValue(java.lang.String value)
Specified by:
setValue in interface NameValueIf
Parameters:
value - The value to set.


Copyright © 2011 DS Data Systems UK Ltd.